diff --git a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.csproj b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.csproj index 1b7b45098b36..4be844e4c416 100644 --- a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.csproj +++ b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.csproj @@ -1,10 +1,44 @@ + - DnsResolver - DnsResolver + 0.2.9 + 7.1 + netstandard2.0 + Library + Az.DnsResolver.private + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver + true + false + ./bin + $(OutputPath) + Az.DnsResolver.nuspec + true + + + 1998, 1591 + true + + + + + false + TRACE;DEBUG;NETSTANDARD + + + + true + true + MSSharedLibKey.snk + TRACE;RELEASE;NETSTANDARD;SIGN - - + + + + + + + $(DefaultItemExcludes);resources/** + - + \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml index 5f44e91e893d..1c56dc294796 100644 --- a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml +++ b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml @@ -1,6 +1,50 @@ + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverDomainListsDeleteAcceptedResponseHeaders + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverDomainListsDeleteAcceptedResponseHeaders + + + + + + + + + + + + Location + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverDomainListsUpdateAcceptedResponseHeaders + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverDomainListsUpdateAcceptedResponseHeaders + + + + + + + + + + + + Location + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverIdentity @@ -11,12 +55,27 @@ + + + + + + + + + + + + + + + @@ -42,12 +101,27 @@ DnsForwardingRulesetName + + DnsResolverDomainListName + DnsResolverName + + DnsResolverPolicyName + + + DnsResolverPolicyVirtualNetworkLinkName + + + DnsSecurityRuleName + ForwardingRuleName + + Id + InboundEndpointName @@ -72,21 +146,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverPoliciesDeleteAcceptedResponseHeaders - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverPoliciesDeleteAcceptedResponseHeaders - + - Name + Location @@ -94,21 +168,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverPoliciesUpdateAcceptedResponseHeaders - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverPoliciesUpdateAcceptedResponseHeaders - + - Name + Location @@ -116,51 +190,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders - - - - - - - - - - - - - - - - + - CreatedAt - - - CreatedBy - - - CreatedByType - - - LastModifiedAt - - - LastModifiedBy - - - LastModifiedByType + Location @@ -168,15 +212,34 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders - + + + + + + + Location + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsSecurityRulesDeleteAcceptedResponseHeaders + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsSecurityRulesDeleteAcceptedResponseHeaders + + + @@ -185,8 +248,27 @@ - Name + Location + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsSecurityRulesUpdateAcceptedResponseHeaders + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.DnsSecurityRulesUpdateAcceptedResponseHeaders + + + + + + + + + + Location @@ -196,21 +278,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfo - + - Item + Type @@ -218,9 +300,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail @@ -252,33 +334,69 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ProxyResource - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ProxyResource - + - + + + + + + + + + + + + + + + + + + + - Location + Id Name - Etag + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type @@ -286,21 +404,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource - + + + + + + + - NextLink + Id + + + Name + + + Type @@ -308,21 +438,947 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData - + + + + + + + + + + + + + + + + + + + + + + + CreatedAt + + + CreatedBy + + + CreatedByType + + + LastModifiedAt + + + LastModifiedBy + + + LastModifiedByType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Id + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type + + + Location + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody + + + + + + + + + + + + + + + + + + Code + + + Message + + + Target + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Id + + + Location + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type + + + Etag + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetListResult + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetProperties + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetProperties + + + + + + + + + + + + + + + ProvisioningState + + + ResourceGuid + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Id + + + Location + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type + + + Etag + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Id + + + Location + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type + + + Etag + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties + + + + + + + + + + + + Domain + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties + + + + + + + + + + + + + + + + + + Domain + + + ProvisioningState + + + ResourceGuid + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListResult + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverListResult + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTags + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Id + + + Location + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type + + + Etag + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyListResult + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties + + + + + + + + + + + + + + + ProvisioningState + + + ResourceGuid + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Id + + + Location + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type + + + Etag + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkListResult + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties + + + + + - Item + ProvisioningState @@ -330,12 +1386,15 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverProperties + + + @@ -346,6 +1405,9 @@ + + DnsResolverState + ProvisioningState @@ -358,18 +1420,42 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule + + + + + + + + + + + + + + + + + + + + + + + + @@ -377,12 +1463,36 @@ + + Id + Location Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type + Etag @@ -392,9 +1502,37 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction + + + + + + + + + + + + + + + ActionType + + + BlockResponseCode + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleListResult @@ -414,9 +1552,37 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties + + + + + + + + + + + + + + + DnsSecurityRuleState + + + Priority + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags @@ -436,33 +1602,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties - + - + - + - DnsResolverState + DnsSecurityRuleState - ProvisioningState + Priority - ResourceGuid + ProvisioningState @@ -470,15 +1636,39 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule + + + + + + + + + + + + + + + + + + + + + + + + @@ -486,9 +1676,33 @@ + + Id + Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type + Etag @@ -498,9 +1712,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleListResult @@ -520,9 +1734,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchProperties @@ -542,9 +1756,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadata @@ -564,9 +1778,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleProperties @@ -598,9 +1812,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadata @@ -620,18 +1834,42 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint + + + + + + + + + + + + + + + + + + + + + + + + @@ -639,12 +1877,36 @@ + + Id + Location Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type + Etag @@ -654,9 +1916,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointListResult @@ -676,9 +1938,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTags @@ -698,9 +1960,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointProperties @@ -726,9 +1988,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration @@ -754,18 +2016,42 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint + + + + + + + + + + + + + + + + + + + + + + + + @@ -773,12 +2059,36 @@ + + Id + Location Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type + Etag @@ -788,9 +2098,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointListResult @@ -810,9 +2120,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTags @@ -832,9 +2142,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointProperties @@ -860,9 +2170,31 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource + + + + + + + + + + + + Id + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceListResult @@ -882,9 +2214,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer @@ -910,9 +2242,31 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRuleset + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRuleset + + + + + + + + + + + + Id + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRulesetListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRulesetListResult @@ -932,15 +2286,39 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink + + + + + + + + + + + + + + + + + + + + + + + + @@ -948,9 +2326,33 @@ + + Id + Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Type + Etag @@ -960,9 +2362,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkListResult @@ -982,9 +2384,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadata @@ -1004,9 +2406,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkProperties @@ -1026,9 +2428,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata diff --git a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.nuspec b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.nuspec new file mode 100644 index 000000000000..35efe2e0962b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.nuspec @@ -0,0 +1,32 @@ + + + + Az.DnsResolver + 0.2.9 + Microsoft Corporation + Microsoft Corporation + true + https://aka.ms/azps-license + https://github.com/Azure/azure-powershell + Microsoft Azure PowerShell: $(service-name) cmdlets + + Microsoft Corporation. All rights reserved. + Azure ResourceManager ARM PSModule $(service-name) + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 index 5f018fbe227a..1cca5ee40fec 100644 --- a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 +++ b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 @@ -1,7 +1,7 @@ @{ GUID = '88e239b3-f615-4018-adf3-f0952a0f46a8' RootModule = './Az.DnsResolver.psm1' - ModuleVersion = '0.2.1' + ModuleVersion = '0.2.9' CompatiblePSEditions = 'Core', 'Desktop' Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.DnsResolver.private.dll' FormatsToProcess = './Az.DnsResolver.format.ps1xml' - FunctionsToExport = 'Get-AzDnsForwardingRuleset', 'Get-AzDnsForwardingRulesetForwardingRule', 'Get-AzDnsForwardingRulesetVirtualNetworkLink', 'Get-AzDnsResolver', 'Get-AzDnsResolverInboundEndpoint', 'Get-AzDnsResolverOutboundEndpoint', 'New-AzDnsForwardingRuleset', 'New-AzDnsForwardingRulesetForwardingRule', 'New-AzDnsForwardingRulesetVirtualNetworkLink', 'New-AzDnsResolver', 'New-AzDnsResolverInboundEndpoint', 'New-AzDnsResolverIPConfigurationObject', 'New-AzDnsResolverOutboundEndpoint', 'New-AzDnsResolverTargetDnsServerObject', 'Remove-AzDnsForwardingRuleset', 'Remove-AzDnsForwardingRulesetForwardingRule', 'Remove-AzDnsForwardingRulesetVirtualNetworkLink', 'Remove-AzDnsResolver', 'Remove-AzDnsResolverInboundEndpoint', 'Remove-AzDnsResolverOutboundEndpoint', 'Update-AzDnsForwardingRuleset', 'Update-AzDnsForwardingRulesetForwardingRule', 'Update-AzDnsForwardingRulesetVirtualNetworkLink', 'Update-AzDnsResolver', 'Update-AzDnsResolverInboundEndpoint', 'Update-AzDnsResolverOutboundEndpoint', '*' + FunctionsToExport = 'Get-AzDnsForwardingRuleset', 'Get-AzDnsForwardingRulesetForwardingRule', 'Get-AzDnsForwardingRulesetVirtualNetworkLink', 'Get-AzDnsResolver', 'Get-AzDnsResolverDomainList', 'Get-AzDnsResolverInboundEndpoint', 'Get-AzDnsResolverOutboundEndpoint', 'Get-AzDnsResolverPolicy', 'Get-AzDnsResolverPolicyDnsSecurityRule', 'Get-AzDnsResolverPolicyVirtualNetworkLink', 'New-AzDnsForwardingRuleset', 'New-AzDnsForwardingRulesetForwardingRule', 'New-AzDnsForwardingRulesetVirtualNetworkLink', 'New-AzDnsResolver', 'New-AzDnsResolverDomainList', 'New-AzDnsResolverInboundEndpoint', 'New-AzDnsResolverIPConfigurationObject', 'New-AzDnsResolverOutboundEndpoint', 'New-AzDnsResolverPolicy', 'New-AzDnsResolverPolicyDnsSecurityRule', 'New-AzDnsResolverPolicyVirtualNetworkLink', 'New-AzDnsResolverTargetDnsServerObject', 'Remove-AzDnsForwardingRuleset', 'Remove-AzDnsForwardingRulesetForwardingRule', 'Remove-AzDnsForwardingRulesetVirtualNetworkLink', 'Remove-AzDnsResolver', 'Remove-AzDnsResolverDomainList', 'Remove-AzDnsResolverInboundEndpoint', 'Remove-AzDnsResolverOutboundEndpoint', 'Remove-AzDnsResolverPolicy', 'Remove-AzDnsResolverPolicyDnsSecurityRule', 'Remove-AzDnsResolverPolicyVirtualNetworkLink', 'Update-AzDnsForwardingRuleset', 'Update-AzDnsForwardingRulesetForwardingRule', 'Update-AzDnsForwardingRulesetVirtualNetworkLink', 'Update-AzDnsResolver', 'Update-AzDnsResolverDomainList', 'Update-AzDnsResolverInboundEndpoint', 'Update-AzDnsResolverOutboundEndpoint', 'Update-AzDnsResolverPolicy', 'Update-AzDnsResolverPolicyDnsSecurityRule', 'Update-AzDnsResolverPolicyVirtualNetworkLink', '*' AliasesToExport = '*' PrivateData = @{ PSData = @{ diff --git a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psm1 b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psm1 index d1ff8c66f7b0..13503c169f45 100644 --- a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psm1 +++ b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psm1 @@ -1,17 +1,9 @@ # region Generated # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- # Load required Az.Accounts module $accountsName = 'Az.Accounts' diff --git a/src/DnsResolver/DnsResolver.Autorest/MSSharedLibKey.snk b/src/DnsResolver/DnsResolver.Autorest/MSSharedLibKey.snk new file mode 100644 index 000000000000..695f1b38774e Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/MSSharedLibKey.snk differ diff --git a/src/DnsResolver/DnsResolver.Autorest/Properties/AssemblyInfo.cs b/src/DnsResolver/DnsResolver.Autorest/Properties/AssemblyInfo.cs deleted file mode 100644 index e9c50f37ed08..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,28 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System; -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("Microsoft Azure Powershell - DnsResolver")] -[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] -[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] -[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] - -[assembly: ComVisible(false)] -[assembly: CLSCompliant(false)] -[assembly: Guid("10c3cd78-7941-4170-ba02-f776e234c97c")] -[assembly: AssemblyVersion("1.0.0")] -[assembly: AssemblyFileVersion("1.0.0")] diff --git a/src/DnsResolver/DnsResolver.Autorest/README.md b/src/DnsResolver/DnsResolver.Autorest/README.md index d93edb2e4a4f..d33aea87e130 100644 --- a/src/DnsResolver/DnsResolver.Autorest/README.md +++ b/src/DnsResolver/DnsResolver.Autorest/README.md @@ -67,13 +67,14 @@ In this directory, run AutoRest: > see https://aka.ms/autorest ``` yaml -commit: 37072829f795ce840b8085035e8adf4721602f34 +commit: 6483dfe96c1a736ce3bc78e5ed4d6d0def271611 require: - - $(this-folder)/../../readme.azure.noprofile.md + - $(this-folder)/../../../tools/SwaggerCI/readme.azure.noprofile.md input-file: - - $(repo)/specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/dnsresolver.json + - C:\Git\azure-rest-api-specs\specification\dnsresolver\resource-manager\Microsoft.Network\preview\2023-07-01-preview\dnsresolver.json + - C:\Git\azure-rest-api-specs\specification\dnsresolver\resource-manager\Microsoft.Network\preview\2023-07-01-preview\dnsresolverpolicy.json -module-version: 0.2.1 +module-version: 0.2.9 title: DnsResolver subject-prefix: DnsResolver @@ -88,7 +89,23 @@ use-extension: directive: - where: - subject: ForwardingRule|VirtualNetworkLink + subject: DnsResolverPolicyVirtualNetworkLink + set: + subject-prefix: '' + - where: + subject: DnsResolverPolicy + set: + subject-prefix: '' + - where: + subject: DnsResolverDomainList + set: + subject-prefix: '' + - where: + subject: DnsSecurityRule + set: + subject-prefix: 'DnsResolverPolicy' + - where: + subject: ^(ForwardingRule|VirtualNetworkLink)$ set: subject-prefix: DnsForwardingRuleset - where: diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json index 9a5507651a41..f77a12a5b62e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json @@ -1,6 +1,6 @@ { "resourceType": "dnsForwardingRulesets/forwardingRules", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json index 5b97c00ecfb3..5caee06682fc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json @@ -1,6 +1,6 @@ { "resourceType": "dnsForwardingRulesets/virtualNetworkLinks", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json index bdf86afe41c0..d21009e56ef7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json @@ -1,6 +1,6 @@ { "resourceType": "dnsForwardingRulesets", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverDomainLists.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverDomainLists.json new file mode 100644 index 000000000000..bb05c13b53ff --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverDomainLists.json @@ -0,0 +1,85 @@ +{ + "resourceType": "dnsResolverDomainLists", + "apiVersion": "2023-07-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" + }, + "commands": [ + { + "name": "Get-AzDnsResolverDomainList", + "description": "Gets properties of a DNS resolver domain list.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets properties of a DNS resolver domain list.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.dnsResolverDomainListName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDnsResolverDomainList", + "description": "Deletes a DNS resolver domain list.\nWARNING: This operation cannot be undone.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.dnsResolverDomainListName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-dnsSecurityRules.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-dnsSecurityRules.json new file mode 100644 index 000000000000..4d4099244ddb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-dnsSecurityRules.json @@ -0,0 +1,95 @@ +{ + "resourceType": "dnsResolverPolicies/dnsSecurityRules", + "apiVersion": "2023-07-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" + }, + "commands": [ + { + "name": "Get-AzDnsResolverPolicyDnsSecurityRule", + "description": "Gets properties of a DNS security rule for a DNS resolver policy.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule" + }, + "parameterSets": [ + { + "parameters": [ + "-DnsResolverPolicyName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets properties of a DNS security rule for a DNS resolver policy.", + "parameters": [ + { + "name": "-DnsResolverPolicyName", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-Name", + "value": "[Path.dnsSecurityRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDnsResolverPolicyDnsSecurityRule", + "description": "Deletes a DNS security rule for a DNS resolver policy.\nWARNING: This operation cannot be undone.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule" + }, + "parameterSets": [ + { + "parameters": [ + "-DnsResolverPolicyName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.", + "parameters": [ + { + "name": "-DnsResolverPolicyName", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-Name", + "value": "[Path.dnsSecurityRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-virtualNetworkLinks.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-virtualNetworkLinks.json new file mode 100644 index 000000000000..c4e0b9b24a6a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-virtualNetworkLinks.json @@ -0,0 +1,95 @@ +{ + "resourceType": "dnsResolverPolicies/virtualNetworkLinks", + "apiVersion": "2023-07-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" + }, + "commands": [ + { + "name": "Get-AzDnsResolverPolicyVirtualNetworkLink", + "description": "Gets properties of a DNS resolver policy virtual network link.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink" + }, + "parameterSets": [ + { + "parameters": [ + "-DnsResolverPolicyName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets properties of a DNS resolver policy virtual network link.", + "parameters": [ + { + "name": "-DnsResolverPolicyName", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-Name", + "value": "[Path.dnsResolverPolicyVirtualNetworkLinkName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDnsResolverPolicyVirtualNetworkLink", + "description": "Deletes a DNS resolver policy virtual network link.\nWARNING: This operation cannot be undone.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink" + }, + "parameterSets": [ + { + "parameters": [ + "-DnsResolverPolicyName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.", + "parameters": [ + { + "name": "-DnsResolverPolicyName", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-Name", + "value": "[Path.dnsResolverPolicyVirtualNetworkLinkName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies.json new file mode 100644 index 000000000000..c5c576ac208a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies.json @@ -0,0 +1,85 @@ +{ + "resourceType": "dnsResolverPolicies", + "apiVersion": "2023-07-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" + }, + "commands": [ + { + "name": "Get-AzDnsResolverPolicy", + "description": "Gets properties of a DNS resolver policy.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets properties of a DNS resolver policy.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDnsResolverPolicy", + "description": "Deletes a DNS resolver policy.\nWARNING: This operation cannot be undone.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a DNS resolver policy. WARNING: This operation cannot be undone.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json index 272a477dbe62..b3884546a71e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json @@ -1,6 +1,6 @@ { "resourceType": "dnsResolvers/inboundEndpoints", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json index f20b4ff3278c..24dfdf15ced6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json @@ -1,6 +1,6 @@ { "resourceType": "dnsResolvers/outboundEndpoints", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json index b83d61d53adc..1a48e64a4617 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json @@ -1,6 +1,6 @@ { "resourceType": "dnsResolvers", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/build-module.ps1 b/src/DnsResolver/DnsResolver.Autorest/build-module.ps1 index 06a44d848dab..c4bb09922841 100644 --- a/src/DnsResolver/DnsResolver.Autorest/build-module.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/build-module.ps1 @@ -1,18 +1,10 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs) +param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [Switch]$DisableAfterBuildTasks) $ErrorActionPreference = 'Stop' if($PSEdition -ne 'Core') { @@ -169,4 +161,14 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')) . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1') } +if (-not $DisableAfterBuildTasks){ + $afterBuildTasksPath = Join-Path $PSScriptRoot '' + $afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable + if(Test-Path -Path $afterBuildTasksPath -PathType leaf){ + Write-Host -ForegroundColor Green 'Running after build tasks...' + . $afterBuildTasksPath @afterBuildTasksArgs + } +} + + Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/DnsResolver/DnsResolver.Autorest/check-dependencies.ps1 b/src/DnsResolver/DnsResolver.Autorest/check-dependencies.ps1 index c29591c7bfe1..3d8d741b1055 100644 --- a/src/DnsResolver/DnsResolver.Autorest/check-dependencies.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/check-dependencies.ps1 @@ -1,16 +1,8 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources) $ErrorActionPreference = 'Stop' diff --git a/src/DnsResolver/DnsResolver.Autorest/create-model-cmdlets.ps1 b/src/DnsResolver/DnsResolver.Autorest/create-model-cmdlets.ps1 index 4822cff22bdd..157008407598 100644 --- a/src/DnsResolver/DnsResolver.Autorest/create-model-cmdlets.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/create-model-cmdlets.ps1 @@ -1,16 +1,8 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- function CreateModelCmdlet { @@ -140,17 +132,9 @@ function CreateModelCmdlet { $Script = " # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the ""License""); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an ""AS IS"" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverIPConfigurationObject.ps1 b/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverIPConfigurationObject.ps1 index 90a8bad7419b..72be3a645550 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverIPConfigurationObject.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverIPConfigurationObject.ps1 @@ -20,12 +20,12 @@ Create a in-memory object for IPConfiguration Create a in-memory object for IPConfiguration .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject #> function New-AzDnsResolverIPConfigurationObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -41,7 +41,7 @@ function New-AzDnsResolverIPConfigurationObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration]::New() $Object.PrivateIPAddress = $PrivateIPAddress $Object.PrivateIPAllocationMethod = $PrivateIPAllocationMethod diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverTargetDnsServer.ps1 b/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverTargetDnsServer.ps1 index 7e4d62e3f019..136788403a4c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverTargetDnsServer.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverTargetDnsServer.ps1 @@ -20,12 +20,12 @@ Create a in-memory object for Target DNS server Create a in-memory object for Target DNS server .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject #> function New-AzDnsResolverTargetDnsServerObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -38,7 +38,7 @@ function New-AzDnsResolverTargetDnsServerObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer]::New() $Object.IPAddress = $IPAddress $Object.Port = $Port diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs index 13e63ff020b9..4b550a734a03 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs index 06379cf2d7d4..eea2a55811a9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs index 284c4de79936..e06506163fcd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs index 215c29c551e4..5dd49836408f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs index 4c7927ea454a..e0ccea4ab632 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs index 6553a2fba9af..c270c4d2318c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs index 48569896d5ed..8f10c5524210 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs index 6c87d623aaf4..1e5b179a6b68 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs index 6ab83448beee..7a2cf4dda384 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs index f232521c612b..ef3d54dfd9e9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs index ec9602a694f9..27f3197d1828 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs index 965cdf6df0e0..220420dba371 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs index 5ad676adfcc9..fbbf6824f420 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs index 65cc9c8885b6..63abd7851723 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs index 3bbb373cab60..106283ae5ec7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs index 2647a2f0663d..7a079fff1140 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs index dbee9c07c962..8f13ef7d00cb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs index 03ffd748bd08..a7980b0dd60f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs index 81491fed2648..8460ae8d23ba 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs index c5a0f2b0b226..adc348e9105d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs index 2bd4042d9d10..2bd6b50b8410 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs index 635708246a47..779d947b23ef 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs index a66c87734c2e..7092dfc48ed9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs index b6b058fa55da..5d12d380b182 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs index e5af8f9eed5a..5f10592aebf4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs index 30d3261e21a7..97e9d966f0dc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs index e3d0d5d7415f..745ab35405fc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs index 9fb45c298c83..4dafa7790a3a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs index b1a496dd6591..70608bc296f0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs index 176a713f441f..f43ecec111c2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs index 9a8c1fe4d1f0..5191f9c7d003 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs index 40f981f3debc..ce94cd074333 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs index 3327a608e8cd..9ea4135ad1bb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs index 9b5d5816cf3a..563ec52ec2f7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs index 14c66d0d16db..404d83b8a7f8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs index c5a10741f749..f81aa9e26f29 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs index 05137e51e4d1..77433cf1228e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs index 48b64a61e204..8bfab6370bc2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs index 4eb610b0777d..636805b5debd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs index f4e4d0128c78..b8188805b2b3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs index 6e1d3edc4fa5..11c49e265644 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs @@ -4,7 +4,7 @@ using System.Management.Automation; using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs index 5963049071e2..010406b21962 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs index f55ade7a32e8..d41babdefd91 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs index 5fc2eece2720..ed004f5f1dda 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs index 4abc84269377..5519eda80754 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs index 7887ea5bacda..6db9bc3be056 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs index 89f6b9d75d82..98a123a07562 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs index b443c18e48a3..f71b0e6f39b1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs index d019f7a06a9f..47d3f01db5d6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs index 16f67fe81aec..47a2830c9ba3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs index 3909f5d7d9b2..f8cd7c19db91 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs index 6b43981d680e..ba1dbbcf01b3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs index 46820ab60c7f..e10d82d701cc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Az.DnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/docs/Az.DnsResolver.md similarity index 64% rename from src/DnsResolver/DnsResolver.Autorest/help/Az.DnsResolver.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Az.DnsResolver.md index fde6e122b530..c6738c8e318c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Az.DnsResolver.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Az.DnsResolver.md @@ -23,12 +23,24 @@ Gets properties of a virtual network link to a DNS forwarding ruleset. ### [Get-AzDnsResolver](Get-AzDnsResolver.md) Gets properties of a DNS resolver. +### [Get-AzDnsResolverDomainList](Get-AzDnsResolverDomainList.md) +Gets properties of a DNS resolver domain list. + ### [Get-AzDnsResolverInboundEndpoint](Get-AzDnsResolverInboundEndpoint.md) Gets properties of an inbound endpoint for a DNS resolver. ### [Get-AzDnsResolverOutboundEndpoint](Get-AzDnsResolverOutboundEndpoint.md) Gets properties of an outbound endpoint for a DNS resolver. +### [Get-AzDnsResolverPolicy](Get-AzDnsResolverPolicy.md) +Gets properties of a DNS resolver policy. + +### [Get-AzDnsResolverPolicyDnsSecurityRule](Get-AzDnsResolverPolicyDnsSecurityRule.md) +Gets properties of a DNS security rule for a DNS resolver policy. + +### [Get-AzDnsResolverPolicyVirtualNetworkLink](Get-AzDnsResolverPolicyVirtualNetworkLink.md) +Gets properties of a DNS resolver policy virtual network link. + ### [New-AzDnsForwardingRuleset](New-AzDnsForwardingRuleset.md) Creates or updates a DNS forwarding ruleset. @@ -41,6 +53,9 @@ Creates or updates a virtual network link to a DNS forwarding ruleset. ### [New-AzDnsResolver](New-AzDnsResolver.md) Creates or updates a DNS resolver. +### [New-AzDnsResolverDomainList](New-AzDnsResolverDomainList.md) +Creates or updates a DNS resolver domain list. + ### [New-AzDnsResolverInboundEndpoint](New-AzDnsResolverInboundEndpoint.md) Creates or updates an inbound endpoint for a DNS resolver. @@ -50,6 +65,15 @@ Create a in-memory object for IPConfiguration ### [New-AzDnsResolverOutboundEndpoint](New-AzDnsResolverOutboundEndpoint.md) Creates or updates an outbound endpoint for a DNS resolver. +### [New-AzDnsResolverPolicy](New-AzDnsResolverPolicy.md) +Creates or updates a DNS resolver policy. + +### [New-AzDnsResolverPolicyDnsSecurityRule](New-AzDnsResolverPolicyDnsSecurityRule.md) +Creates or updates a DNS security rule for a DNS resolver policy. + +### [New-AzDnsResolverPolicyVirtualNetworkLink](New-AzDnsResolverPolicyVirtualNetworkLink.md) +Creates or updates a DNS resolver policy virtual network link. + ### [New-AzDnsResolverTargetDnsServerObject](New-AzDnsResolverTargetDnsServerObject.md) Create a in-memory object for Target DNS server @@ -70,6 +94,10 @@ WARNING: This operation cannot be undone. Deletes a DNS resolver. WARNING: This operation cannot be undone. +### [Remove-AzDnsResolverDomainList](Remove-AzDnsResolverDomainList.md) +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + ### [Remove-AzDnsResolverInboundEndpoint](Remove-AzDnsResolverInboundEndpoint.md) Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone. @@ -78,6 +106,18 @@ WARNING: This operation cannot be undone. Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone. +### [Remove-AzDnsResolverPolicy](Remove-AzDnsResolverPolicy.md) +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverPolicyDnsSecurityRule](Remove-AzDnsResolverPolicyDnsSecurityRule.md) +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverPolicyVirtualNetworkLink](Remove-AzDnsResolverPolicyVirtualNetworkLink.md) +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + ### [Update-AzDnsForwardingRuleset](Update-AzDnsForwardingRuleset.md) Updates a DNS forwarding ruleset. @@ -90,9 +130,21 @@ Updates a virtual network link to a DNS forwarding ruleset. ### [Update-AzDnsResolver](Update-AzDnsResolver.md) Updates a DNS resolver. +### [Update-AzDnsResolverDomainList](Update-AzDnsResolverDomainList.md) +Updates a DNS resolver domain list. + ### [Update-AzDnsResolverInboundEndpoint](Update-AzDnsResolverInboundEndpoint.md) Updates an inbound endpoint for a DNS resolver. ### [Update-AzDnsResolverOutboundEndpoint](Update-AzDnsResolverOutboundEndpoint.md) Updates an outbound endpoint for a DNS resolver. +### [Update-AzDnsResolverPolicy](Update-AzDnsResolverPolicy.md) +Updates a DNS resolver policy. + +### [Update-AzDnsResolverPolicyDnsSecurityRule](Update-AzDnsResolverPolicyDnsSecurityRule.md) +Updates a DNS security rule. + +### [Update-AzDnsResolverPolicyVirtualNetworkLink](Update-AzDnsResolverPolicyVirtualNetworkLink.md) +Updates a DNS resolver policy virtual network link. + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsForwardingRuleset.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRuleset.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsForwardingRuleset.md index 49039d5beefc..6629f2a77c98 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsForwardingRuleset.md @@ -173,6 +173,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -257,9 +258,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsForwardingRulesetForwardingRule.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetForwardingRule.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsForwardingRulesetForwardingRule.md index d99ab6e54d6b..e8a1c1220ca1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsForwardingRulesetForwardingRule.md @@ -144,6 +144,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -182,7 +183,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsForwardingRulesetVirtualNetworkLink.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsForwardingRulesetVirtualNetworkLink.md index 77ddd3495c40..7c6ffb5c5d6c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -144,6 +144,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -182,7 +183,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolver.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolver.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolver.md index e1e184576957..fabe09332dc5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolver.md @@ -177,6 +177,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -261,9 +262,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..33f7a7c32e68 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverDomainList.md @@ -0,0 +1,177 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Get-AzDnsResolverDomainList + +## SYNOPSIS +Gets properties of a DNS resolver domain list. + +## SYNTAX + +### List1 (Default) +``` +Get-AzDnsResolverDomainList [-SubscriptionId ] [-Top ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverDomainList -InputObject [-DefaultProfile ] + [] +``` + +### List +``` +Get-AzDnsResolverDomainList -ResourceGroupName [-SubscriptionId ] [-Top ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver domain list. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List, List1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverInboundEndpoint.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverInboundEndpoint.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverInboundEndpoint.md index 9da3b783b46c..d6c67fca0fcc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverInboundEndpoint.md @@ -144,6 +144,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -182,7 +183,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverOutboundEndpoint.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverOutboundEndpoint.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverOutboundEndpoint.md index 247853524042..b0034cbe538a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverOutboundEndpoint.md @@ -144,6 +144,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -182,7 +183,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..eade88ba33de --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverPolicy.md @@ -0,0 +1,230 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicy + +## SYNOPSIS +Gets properties of a DNS resolver policy. + +## SYNTAX + +### List1 (Default) +``` +Get-AzDnsResolverPolicy [-SubscriptionId ] [-Top ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicy -InputObject [-DefaultProfile ] [] +``` + +### List +``` +Get-AzDnsResolverPolicy -ResourceGroupName [-SubscriptionId ] [-Top ] + [-DefaultProfile ] [] +``` + +### List2 +``` +Get-AzDnsResolverPolicy -ResourceGroupName -VirtualNetworkName [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver policy. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List, List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1, List2 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List, List1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkName +The name of the virtual network. + +```yaml +Type: System.String +Parameter Sets: List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..86505633c4a0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,186 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Gets properties of a DNS security rule for a DNS resolver policy. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicyDnsSecurityRule -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a DNS security rule for a DNS resolver policy. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..982fcbaed3a5 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Get-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,186 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Gets properties of a DNS resolver policy virtual network link. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver policy virtual network link. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsForwardingRuleset.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRuleset.md rename to src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsForwardingRuleset.md index ce798307add6..22cd7433e755 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsForwardingRuleset.md @@ -90,7 +90,7 @@ The reference to the DNS resolver outbound endpoints that are used to route DNS To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] Parameter Sets: (All) Aliases: @@ -197,6 +197,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -263,7 +264,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsForwardingRulesetForwardingRule.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetForwardingRule.md rename to src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsForwardingRulesetForwardingRule.md index b9f58d99062d..641fabeb11c8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsForwardingRulesetForwardingRule.md @@ -197,6 +197,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -215,7 +216,7 @@ DNS servers to forward the DNS query to. To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] Parameter Sets: (All) Aliases: @@ -264,7 +265,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsForwardingRulesetVirtualNetworkLink.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md rename to src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsForwardingRulesetVirtualNetworkLink.md index 503df6a1e7f9..9e5e3f4ca980 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -194,6 +194,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -260,7 +261,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolver.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolver.md rename to src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolver.md index bfe47f059349..2cf30de9a423 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolver.md @@ -178,6 +178,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -259,7 +260,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..fb4a8726a87a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverDomainList.md @@ -0,0 +1,264 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# New-AzDnsResolverDomainList + +## SYNOPSIS +Creates or updates a DNS resolver domain list. + +## SYNTAX + +``` +New-AzDnsResolverDomainList -Name -ResourceGroupName -Domain -Location + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver domain list. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Domain +The domains in the domain list. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverIPConfigurationObject.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverIPConfigurationObject.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverIPConfigurationObject.md rename to src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverIPConfigurationObject.md index 619404f11357..ae3bc7acd888 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverIPConfigurationObject.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverIPConfigurationObject.md @@ -89,7 +89,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverInboundEndpoint.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverInboundEndpoint.md rename to src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverInboundEndpoint.md index c31a5998267e..8301ce87bf28 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverInboundEndpoint.md @@ -138,7 +138,7 @@ IP configurations for the inbound endpoint. To construct, see NOTES section for IPCONFIGURATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] Parameter Sets: (All) Aliases: @@ -212,6 +212,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -278,7 +279,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverOutboundEndpoint.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverOutboundEndpoint.md rename to src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverOutboundEndpoint.md index 68d3e69ae740..976c13bafebe 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverOutboundEndpoint.md @@ -208,6 +208,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -274,7 +275,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..62566245de56 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverPolicy.md @@ -0,0 +1,249 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicy +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicy + +## SYNOPSIS +Creates or updates a DNS resolver policy. + +## SYNTAX + +``` +New-AzDnsResolverPolicy -Name -ResourceGroupName -Location + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver policy. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..45a835385575 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,343 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Creates or updates a DNS security rule for a DNS resolver policy. + +## SYNTAX + +``` +New-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName -DnsResolverDomainList -Location -Priority + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsSecurityRuleState ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS security rule for a DNS resolver policy. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -ActionBlockResponseCode +The response code for block actions. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ActionType +The type of action to take. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverDomainList +DNS resolver policy domains lists that the DNS security rule applies to. +To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsSecurityRuleState +The state of DNS security rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +The priority of the DNS security rule. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..420b81f05c7e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,280 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Creates or updates a DNS resolver policy virtual network link. + +## SYNTAX + +``` +New-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName -Location -VirtualNetworkId [-SubscriptionId ] + [-IfMatch ] [-IfNoneMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver policy virtual network link. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverTargetDnsServerObject.md b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverTargetDnsServerObject.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverTargetDnsServerObject.md rename to src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverTargetDnsServerObject.md index bc5edc0f7dc8..1cbfd42bdb5f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverTargetDnsServerObject.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/New-AzDnsResolverTargetDnsServerObject.md @@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/README.md b/src/DnsResolver/DnsResolver.Autorest/docs/README.md similarity index 100% rename from src/DnsResolver/DnsResolver.Autorest/help/README.md rename to src/DnsResolver/DnsResolver.Autorest/docs/README.md diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsForwardingRuleset.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRuleset.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsForwardingRuleset.md index a605ca71fd46..fc79632a1765 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsForwardingRuleset.md @@ -178,6 +178,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsForwardingRulesetForwardingRule.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetForwardingRule.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsForwardingRulesetForwardingRule.md index 42f426f9dc51..cb37f3a43acd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsForwardingRulesetForwardingRule.md @@ -162,6 +162,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md index 506eeb2d36e7..44c3a37e02a0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -191,6 +191,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolver.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolver.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolver.md index 95107b22cade..172a60dfaa73 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolver.md @@ -175,6 +175,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..2ad417ac4a86 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverDomainList.md @@ -0,0 +1,245 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Remove-AzDnsResolverDomainList + +## SYNOPSIS +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverDomainList -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverInboundEndpoint.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverInboundEndpoint.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverInboundEndpoint.md index 93624ea946b3..c8f19c954e3c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverInboundEndpoint.md @@ -192,6 +192,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverOutboundEndpoint.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverOutboundEndpoint.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverOutboundEndpoint.md index 09cfdfcd00d7..3f7ed35f59f6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverOutboundEndpoint.md @@ -191,6 +191,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..bed8f3ae688c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverPolicy.md @@ -0,0 +1,245 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicy + +## SYNOPSIS +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicy -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..8cea1f0136db --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,260 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicyDnsSecurityRule -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..b1c078744bd9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Remove-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,260 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsForwardingRuleset.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRuleset.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsForwardingRuleset.md index 9a64534b0c01..be115f63be5e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsForwardingRuleset.md @@ -96,7 +96,7 @@ The reference to the DNS resolver outbound endpoints that are used to route DNS To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] Parameter Sets: (All) Aliases: @@ -188,6 +188,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -256,7 +257,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsForwardingRulesetForwardingRule.md similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetForwardingRule.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsForwardingRulesetForwardingRule.md index 208482353b9b..683e30cf55a9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsForwardingRulesetForwardingRule.md @@ -188,6 +188,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -206,7 +207,7 @@ DNS servers to forward the DNS query to. To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] Parameter Sets: (All) Aliases: @@ -257,7 +258,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsForwardingRulesetVirtualNetworkLink.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsForwardingRulesetVirtualNetworkLink.md index 67a62f035f94..6cedf37408e0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -202,6 +202,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -255,7 +256,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolver.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolver.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolver.md index a265ee98e39c..7daea48d8451 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolver.md @@ -170,6 +170,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -238,7 +239,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..fb0bb695e120 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverDomainList.md @@ -0,0 +1,258 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Update-AzDnsResolverDomainList + +## SYNOPSIS +Updates a DNS resolver domain list. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-Domain ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverDomainList -InputObject [-IfMatch ] [-Domain ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS resolver domain list. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Domain +The domains in the domain list. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS resolver domain list. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverInboundEndpoint.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverInboundEndpoint.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverInboundEndpoint.md index ebad7a4d33e4..266c9b511581 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverInboundEndpoint.md @@ -186,6 +186,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -254,7 +255,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverOutboundEndpoint.md similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverOutboundEndpoint.md rename to src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverOutboundEndpoint.md index 07cd1abdc5fc..8bdcd92a63ff 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverOutboundEndpoint.md @@ -186,6 +186,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -254,7 +255,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..8ab448af2630 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverPolicy.md @@ -0,0 +1,243 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicy + +## SYNOPSIS +Updates a DNS resolver policy. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicy -InputObject [-IfMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS resolver policy. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS resolver policy. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..4918b3a4dcca --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,338 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Updates a DNS security rule. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsResolverDomainList ] [-DnsSecurityRuleState ] [-Priority ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicyDnsSecurityRule -InputObject [-IfMatch ] + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsResolverDomainList ] [-DnsSecurityRuleState ] [-Priority ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS security rule. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -ActionBlockResponseCode +The response code for block actions. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ActionType +The type of action to take. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverDomainList +DNS resolver policy domains lists that the DNS security rule applies to. +To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsSecurityRuleState +The state of DNS security rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +The priority of the DNS security rule. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS security rule. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..c1970e2c3a7d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/Update-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,258 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Updates a DNS resolver policy virtual network link. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-IfMatch ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS resolver policy virtual network link. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for the DNS resolver policy virtual network link. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Az.DnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Az.DnsResolver.md new file mode 100644 index 000000000000..c6738c8e318c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Az.DnsResolver.md @@ -0,0 +1,150 @@ +--- +Module Name: Az.DnsResolver +Module Guid: 88e239b3-f615-4018-adf3-f0952a0f46a8 +Download Help Link: https://learn.microsoft.com/powershell/module/az.dnsresolver +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.DnsResolver Module +## Description +Microsoft Azure PowerShell: DnsResolver cmdlets + +## Az.DnsResolver Cmdlets +### [Get-AzDnsForwardingRuleset](Get-AzDnsForwardingRuleset.md) +Gets a DNS forwarding ruleset properties. + +### [Get-AzDnsForwardingRulesetForwardingRule](Get-AzDnsForwardingRulesetForwardingRule.md) +Gets properties of a forwarding rule in a DNS forwarding ruleset. + +### [Get-AzDnsForwardingRulesetVirtualNetworkLink](Get-AzDnsForwardingRulesetVirtualNetworkLink.md) +Gets properties of a virtual network link to a DNS forwarding ruleset. + +### [Get-AzDnsResolver](Get-AzDnsResolver.md) +Gets properties of a DNS resolver. + +### [Get-AzDnsResolverDomainList](Get-AzDnsResolverDomainList.md) +Gets properties of a DNS resolver domain list. + +### [Get-AzDnsResolverInboundEndpoint](Get-AzDnsResolverInboundEndpoint.md) +Gets properties of an inbound endpoint for a DNS resolver. + +### [Get-AzDnsResolverOutboundEndpoint](Get-AzDnsResolverOutboundEndpoint.md) +Gets properties of an outbound endpoint for a DNS resolver. + +### [Get-AzDnsResolverPolicy](Get-AzDnsResolverPolicy.md) +Gets properties of a DNS resolver policy. + +### [Get-AzDnsResolverPolicyDnsSecurityRule](Get-AzDnsResolverPolicyDnsSecurityRule.md) +Gets properties of a DNS security rule for a DNS resolver policy. + +### [Get-AzDnsResolverPolicyVirtualNetworkLink](Get-AzDnsResolverPolicyVirtualNetworkLink.md) +Gets properties of a DNS resolver policy virtual network link. + +### [New-AzDnsForwardingRuleset](New-AzDnsForwardingRuleset.md) +Creates or updates a DNS forwarding ruleset. + +### [New-AzDnsForwardingRulesetForwardingRule](New-AzDnsForwardingRulesetForwardingRule.md) +Creates or updates a forwarding rule in a DNS forwarding ruleset. + +### [New-AzDnsForwardingRulesetVirtualNetworkLink](New-AzDnsForwardingRulesetVirtualNetworkLink.md) +Creates or updates a virtual network link to a DNS forwarding ruleset. + +### [New-AzDnsResolver](New-AzDnsResolver.md) +Creates or updates a DNS resolver. + +### [New-AzDnsResolverDomainList](New-AzDnsResolverDomainList.md) +Creates or updates a DNS resolver domain list. + +### [New-AzDnsResolverInboundEndpoint](New-AzDnsResolverInboundEndpoint.md) +Creates or updates an inbound endpoint for a DNS resolver. + +### [New-AzDnsResolverIPConfigurationObject](New-AzDnsResolverIPConfigurationObject.md) +Create a in-memory object for IPConfiguration + +### [New-AzDnsResolverOutboundEndpoint](New-AzDnsResolverOutboundEndpoint.md) +Creates or updates an outbound endpoint for a DNS resolver. + +### [New-AzDnsResolverPolicy](New-AzDnsResolverPolicy.md) +Creates or updates a DNS resolver policy. + +### [New-AzDnsResolverPolicyDnsSecurityRule](New-AzDnsResolverPolicyDnsSecurityRule.md) +Creates or updates a DNS security rule for a DNS resolver policy. + +### [New-AzDnsResolverPolicyVirtualNetworkLink](New-AzDnsResolverPolicyVirtualNetworkLink.md) +Creates or updates a DNS resolver policy virtual network link. + +### [New-AzDnsResolverTargetDnsServerObject](New-AzDnsResolverTargetDnsServerObject.md) +Create a in-memory object for Target DNS server + +### [Remove-AzDnsForwardingRuleset](Remove-AzDnsForwardingRuleset.md) +Deletes a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +All forwarding rules within the ruleset will be deleted. + +### [Remove-AzDnsForwardingRulesetForwardingRule](Remove-AzDnsForwardingRulesetForwardingRule.md) +Deletes a forwarding rule in a DNS forwarding ruleset. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsForwardingRulesetVirtualNetworkLink](Remove-AzDnsForwardingRulesetVirtualNetworkLink.md) +Deletes a virtual network link to a DNS forwarding ruleset. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolver](Remove-AzDnsResolver.md) +Deletes a DNS resolver. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverDomainList](Remove-AzDnsResolverDomainList.md) +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverInboundEndpoint](Remove-AzDnsResolverInboundEndpoint.md) +Deletes an inbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverOutboundEndpoint](Remove-AzDnsResolverOutboundEndpoint.md) +Deletes an outbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverPolicy](Remove-AzDnsResolverPolicy.md) +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverPolicyDnsSecurityRule](Remove-AzDnsResolverPolicyDnsSecurityRule.md) +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverPolicyVirtualNetworkLink](Remove-AzDnsResolverPolicyVirtualNetworkLink.md) +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + +### [Update-AzDnsForwardingRuleset](Update-AzDnsForwardingRuleset.md) +Updates a DNS forwarding ruleset. + +### [Update-AzDnsForwardingRulesetForwardingRule](Update-AzDnsForwardingRulesetForwardingRule.md) +Updates a forwarding rule in a DNS forwarding ruleset. + +### [Update-AzDnsForwardingRulesetVirtualNetworkLink](Update-AzDnsForwardingRulesetVirtualNetworkLink.md) +Updates a virtual network link to a DNS forwarding ruleset. + +### [Update-AzDnsResolver](Update-AzDnsResolver.md) +Updates a DNS resolver. + +### [Update-AzDnsResolverDomainList](Update-AzDnsResolverDomainList.md) +Updates a DNS resolver domain list. + +### [Update-AzDnsResolverInboundEndpoint](Update-AzDnsResolverInboundEndpoint.md) +Updates an inbound endpoint for a DNS resolver. + +### [Update-AzDnsResolverOutboundEndpoint](Update-AzDnsResolverOutboundEndpoint.md) +Updates an outbound endpoint for a DNS resolver. + +### [Update-AzDnsResolverPolicy](Update-AzDnsResolverPolicy.md) +Updates a DNS resolver policy. + +### [Update-AzDnsResolverPolicyDnsSecurityRule](Update-AzDnsResolverPolicyDnsSecurityRule.md) +Updates a DNS security rule. + +### [Update-AzDnsResolverPolicyVirtualNetworkLink](Update-AzDnsResolverPolicyVirtualNetworkLink.md) +Updates a DNS resolver policy virtual network link. + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsForwardingRuleset.md new file mode 100644 index 000000000000..abeb1bae47b3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsForwardingRuleset.md @@ -0,0 +1,238 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingruleset +schema: 2.0.0 +--- + +# Get-AzDnsForwardingRuleset + +## SYNOPSIS +Gets a DNS forwarding ruleset properties. + +## SYNTAX + +### List1 (Default) +``` +Get-AzDnsForwardingRuleset [-SubscriptionId ] [-Top ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### Get +``` +Get-AzDnsForwardingRuleset -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### GetViaIdentity +``` +Get-AzDnsForwardingRuleset -InputObject [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### List +``` +Get-AzDnsForwardingRuleset -ResourceGroupName [-SubscriptionId ] [-Top ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### List2 +``` +Get-AzDnsForwardingRuleset -ResourceGroupName -VirtualNetworkName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Gets a DNS forwarding ruleset properties. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Get-AzDnsForwardingRuleset -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +Get-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG +``` + + + +### -------------------------- EXAMPLE 3 -------------------------- +```powershell +Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG +``` + + + +### -------------------------- EXAMPLE 4 -------------------------- +```powershell +Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -VirtualNetworkName virtualnetwork-test +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsForwardingRulesetName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List, List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1, List2 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List, List1, List2 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkName +The name of the virtual network. + +```yaml +Type: System.String +Parameter Sets: List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsForwardingRulesetForwardingRule.md new file mode 100644 index 000000000000..3d861db52fe6 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsForwardingRulesetForwardingRule.md @@ -0,0 +1,178 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetforwardingrule +schema: 2.0.0 +--- + +# Get-AzDnsForwardingRulesetForwardingRule + +## SYNOPSIS +Gets properties of a forwarding rule in a DNS forwarding ruleset. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsForwardingRulesetForwardingRule -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a forwarding rule in a DNS forwarding ruleset. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverName -ResourceGroupName sampleRG +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverName -ResourceGroupName sampleRG -Name forwardingRule +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsForwardingRulesetName +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the forwarding rule. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ForwardingRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.md new file mode 100644 index 000000000000..9813d4674a2b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -0,0 +1,178 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetvirtualnetworklink +schema: 2.0.0 +--- + +# Get-AzDnsForwardingRulesetVirtualNetworkLink + +## SYNOPSIS +Gets properties of a virtual network link to a DNS forwarding ruleset. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsForwardingRulesetVirtualNetworkLink -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a virtual network link to a DNS forwarding ruleset. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -ResourceGroupName powershell-test-rg +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsForwardingRulesetName +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the virtual network link. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: VirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolver.md new file mode 100644 index 000000000000..ba6150aac332 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolver.md @@ -0,0 +1,237 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver +schema: 2.0.0 +--- + +# Get-AzDnsResolver + +## SYNOPSIS +Gets properties of a DNS resolver. + +## SYNTAX + +### List1 (Default) +``` +Get-AzDnsResolver [-SubscriptionId ] [-Top ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### Get +``` +Get-AzDnsResolver -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolver -InputObject [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### List +``` +Get-AzDnsResolver -ResourceGroupName [-SubscriptionId ] [-Top ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### List2 +``` +Get-AzDnsResolver -ResourceGroupName -VirtualNetworkName [-SubscriptionId ] + [-Top ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Get-AzDnsResolver -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +Get-AzDnsResolver -ResourceGroupName powershell-test-rg +``` + + + +### -------------------------- EXAMPLE 3 -------------------------- +```powershell +Get-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +``` + + + +### -------------------------- EXAMPLE 4 -------------------------- +```powershell +Get-AzDnsResolver -ResourceGroupName powershell-test-rg -VirtualNetworkName virtualnetwork-test +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List, List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1, List2 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List, List1, List2 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkName +The name of the virtual network. + +```yaml +Type: System.String +Parameter Sets: List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..7f4c5f815684 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverDomainList.md @@ -0,0 +1,169 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Get-AzDnsResolverDomainList + +## SYNOPSIS +Gets properties of a DNS resolver domain list. + +## SYNTAX + +### List1 (Default) +``` +Get-AzDnsResolverDomainList [-SubscriptionId ] [-Top ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverDomainList -InputObject [-DefaultProfile ] + [] +``` + +### List +``` +Get-AzDnsResolverDomainList -ResourceGroupName [-SubscriptionId ] [-Top ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver domain list. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List, List1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverInboundEndpoint.md new file mode 100644 index 000000000000..59051dcfe9e7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverInboundEndpoint.md @@ -0,0 +1,178 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint +schema: 2.0.0 +--- + +# Get-AzDnsResolverInboundEndpoint + +## SYNOPSIS +Gets properties of an inbound endpoint for a DNS resolver. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsResolverInboundEndpoint -DnsResolverName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDnsResolverInboundEndpoint -DnsResolverName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverInboundEndpoint -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of an inbound endpoint for a DNS resolver. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -ResourceGroupName powershell-test-rg +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverName +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the inbound endpoint for the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: InboundEndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverOutboundEndpoint.md new file mode 100644 index 000000000000..76b97e8943a8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverOutboundEndpoint.md @@ -0,0 +1,178 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint +schema: 2.0.0 +--- + +# Get-AzDnsResolverOutboundEndpoint + +## SYNOPSIS +Gets properties of an outbound endpoint for a DNS resolver. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsResolverOutboundEndpoint -DnsResolverName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDnsResolverOutboundEndpoint -DnsResolverName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverOutboundEndpoint -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of an outbound endpoint for a DNS resolver. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -ResourceGroupName sampleResourceGroup +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverName +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the outbound endpoint for the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: OutboundEndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..bb92e167bfb6 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverPolicy.md @@ -0,0 +1,223 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicy + +## SYNOPSIS +Gets properties of a DNS resolver policy. + +## SYNTAX + +### List1 (Default) +``` +Get-AzDnsResolverPolicy [-SubscriptionId ] [-Top ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### Get +``` +Get-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicy -InputObject [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### List +``` +Get-AzDnsResolverPolicy -ResourceGroupName [-SubscriptionId ] [-Top ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### List2 +``` +Get-AzDnsResolverPolicy -ResourceGroupName -VirtualNetworkName [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver policy. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List, List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1, List2 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List, List1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkName +The name of the virtual network. + +```yaml +Type: System.String +Parameter Sets: List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..d4a32ce69f52 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,178 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Gets properties of a DNS security rule for a DNS resolver policy. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicyDnsSecurityRule -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a DNS security rule for a DNS resolver policy. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..32959ec35b76 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,178 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Gets properties of a DNS resolver policy virtual network link. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver policy virtual network link. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsForwardingRuleset.md new file mode 100644 index 000000000000..00df4ece3024 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsForwardingRuleset.md @@ -0,0 +1,260 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset +schema: 2.0.0 +--- + +# New-AzDnsForwardingRuleset + +## SYNOPSIS +Creates or updates a DNS forwarding ruleset. + +## SYNTAX + +``` +New-AzDnsForwardingRuleset -Name -ResourceGroupName + -DnsResolverOutboundEndpoint -Location [-SubscriptionId ] + [-IfMatch ] [-IfNoneMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS forwarding ruleset. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName sampleRG -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 +New-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Location westus2 -DnsResolverOutboundEndpoint @{id = "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/dnsResolvers/sampleResolver/outboundEndpoints/sampleOutboundEndpoint";} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName sampleRG -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 +New-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Location westus2 -DnsResolverOutboundEndpoint @{id = "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/dnsResolvers/sampleResolver/outboundEndpoints/sampleOutboundEndpoint";} -Tag @{"key0" = "value0"} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverOutboundEndpoint +The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. +To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsForwardingRulesetName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsForwardingRulesetForwardingRule.md new file mode 100644 index 000000000000..03fb5b222475 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsForwardingRulesetForwardingRule.md @@ -0,0 +1,261 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule +schema: 2.0.0 +--- + +# New-AzDnsForwardingRulesetForwardingRule + +## SYNOPSIS +Creates or updates a forwarding rule in a DNS forwarding ruleset. + +## SYNTAX + +``` +New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName -Name + -ResourceGroupName -DomainName -TargetDnsServer + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] + [-ForwardingRuleState ] [-Metadata ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a forwarding rule in a DNS forwarding ruleset. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +$targetIPConfig = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet +New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$targetIPConfig = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet +New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig -Metadata @{"key0" = "value0"} +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsForwardingRulesetName +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DomainName +The domain name for the forwarding rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardingRuleState +The state of forwarding rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Metadata +Metadata attached to the forwarding rule. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the forwarding rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ForwardingRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetDnsServer +DNS servers to forward the DNS query to. +To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.md new file mode 100644 index 000000000000..46b48170f4d9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -0,0 +1,257 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink +schema: 2.0.0 +--- + +# New-AzDnsForwardingRulesetVirtualNetworkLink + +## SYNOPSIS +Creates or updates a virtual network link to a DNS forwarding ruleset. + +## SYNTAX + +``` +New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName -Name + -ResourceGroupName -VirtualNetworkId [-SubscriptionId ] [-IfMatch ] + [-IfNoneMatch ] [-Metadata ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a virtual network link to a DNS forwarding ruleset. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" -Metadata @{"key0" = "value0"} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsForwardingRulesetName +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Metadata +Metadata attached to the virtual network link. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the virtual network link. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: VirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolver.md new file mode 100644 index 000000000000..3d24342b4d23 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolver.md @@ -0,0 +1,256 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver +schema: 2.0.0 +--- + +# New-AzDnsResolver + +## SYNOPSIS +Creates or updates a DNS resolver. + +## SYNTAX + +``` +New-AzDnsResolver -Name -ResourceGroupName -Location -VirtualNetworkId + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..6c878e725d37 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverDomainList.md @@ -0,0 +1,256 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# New-AzDnsResolverDomainList + +## SYNOPSIS +Creates or updates a DNS resolver domain list. + +## SYNTAX + +``` +New-AzDnsResolverDomainList -Name -ResourceGroupName -Domain -Location + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver domain list. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Domain +The domains in the domain list. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverIPConfigurationObject.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverIPConfigurationObject.md new file mode 100644 index 000000000000..39db487012d7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverIPConfigurationObject.md @@ -0,0 +1,91 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject +schema: 2.0.0 +--- + +# New-AzDnsResolverIPConfigurationObject + +## SYNOPSIS +Create a in-memory object for IPConfiguration + +## SYNTAX + +``` +New-AzDnsResolverIPConfigurationObject [-PrivateIPAddress ] + [-PrivateIPAllocationMethod ] [-SubnetId ] [] +``` + +## DESCRIPTION +Create a in-memory object for IPConfiguration + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 1.1.2.12 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44yqt9mb/subnets/pssubnetname44c6v0lr +``` + + + +## PARAMETERS + +### -PrivateIPAddress +Private IP address of the IP configuration. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrivateIPAllocationMethod +Private IP address allocation method. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubnetId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverInboundEndpoint.md new file mode 100644 index 000000000000..8f87425de94a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverInboundEndpoint.md @@ -0,0 +1,273 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint +schema: 2.0.0 +--- + +# New-AzDnsResolverInboundEndpoint + +## SYNOPSIS +Creates or updates an inbound endpoint for a DNS resolver. + +## SYNTAX + +``` +New-AzDnsResolverInboundEndpoint -DnsResolverName -Name -ResourceGroupName + -IPConfiguration -Location [-SubscriptionId ] [-IfMatch ] + [-IfNoneMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates an inbound endpoint for a DNS resolver. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +$ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31ur3isx/subnets/pssubnetname311tqweg +``` + +New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverName +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IPConfiguration +IP configurations for the inbound endpoint. +To construct, see NOTES section for IPCONFIGURATION properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the inbound endpoint for the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: InboundEndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverOutboundEndpoint.md new file mode 100644 index 000000000000..01e8e5dbb627 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverOutboundEndpoint.md @@ -0,0 +1,271 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint +schema: 2.0.0 +--- + +# New-AzDnsResolverOutboundEndpoint + +## SYNOPSIS +Creates or updates an outbound endpoint for a DNS resolver. + +## SYNTAX + +``` +New-AzDnsResolverOutboundEndpoint -DnsResolverName -Name -ResourceGroupName + -Location -SubnetId [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates an outbound endpoint for a DNS resolver. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName powershell-test-rg -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName powershell-test-rg -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -Tag @{"key0" = "value0"} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverName +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the outbound endpoint for the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: OutboundEndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubnetId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..f90a4ff749a3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverPolicy.md @@ -0,0 +1,241 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicy +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicy + +## SYNOPSIS +Creates or updates a DNS resolver policy. + +## SYNTAX + +``` +New-AzDnsResolverPolicy -Name -ResourceGroupName -Location + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver policy. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..15ed7e01df54 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,335 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Creates or updates a DNS security rule for a DNS resolver policy. + +## SYNTAX + +``` +New-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName -DnsResolverDomainList -Location -Priority + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsSecurityRuleState ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS security rule for a DNS resolver policy. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -ActionBlockResponseCode +The response code for block actions. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ActionType +The type of action to take. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverDomainList +DNS resolver policy domains lists that the DNS security rule applies to. +To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsSecurityRuleState +The state of DNS security rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +The priority of the DNS security rule. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..69f052af2c3e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,272 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Creates or updates a DNS resolver policy virtual network link. + +## SYNTAX + +``` +New-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName -Location -VirtualNetworkId [-SubscriptionId ] + [-IfMatch ] [-IfNoneMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver policy virtual network link. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverTargetDnsServerObject.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverTargetDnsServerObject.md new file mode 100644 index 000000000000..f65edcf744f4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/New-AzDnsResolverTargetDnsServerObject.md @@ -0,0 +1,75 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject +schema: 2.0.0 +--- + +# New-AzDnsResolverTargetDnsServerObject + +## SYNOPSIS +Create a in-memory object for Target DNS server + +## SYNTAX + +``` +New-AzDnsResolverTargetDnsServerObject [-IPAddress ] [-Port ] [] +``` + +## DESCRIPTION +Create a in-memory object for Target DNS server + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet +``` + + + +## PARAMETERS + +### -IPAddress +DNS server IP address. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Port +DNS server port. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsForwardingRuleset.md new file mode 100644 index 000000000000..ba4bcedde301 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsForwardingRuleset.md @@ -0,0 +1,240 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingruleset +schema: 2.0.0 +--- + +# Remove-AzDnsForwardingRuleset + +## SYNOPSIS +Deletes a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +All forwarding rules within the ruleset will be deleted. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsForwardingRuleset -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsForwardingRuleset -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +All forwarding rules within the ruleset will be deleted. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Remove-AzDnsForwardingRuleset -Name dnsForwardingRulset -ResourceGroupName sampleRG +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$dnsResolverDnsForwardingRulesetObject = Get-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG +Remove-AzDnsForwardingRuleset -InputObject $dnsResolverDnsForwardingRulesetObject +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsForwardingRulesetName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsForwardingRulesetForwardingRule.md new file mode 100644 index 000000000000..5b3935e036c9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsForwardingRulesetForwardingRule.md @@ -0,0 +1,222 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetforwardingrule +schema: 2.0.0 +--- + +# Remove-AzDnsForwardingRulesetForwardingRule + +## SYNOPSIS +Deletes a forwarding rule in a DNS forwarding ruleset. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsForwardingRulesetForwardingRule -InputObject [-IfMatch ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a forwarding rule in a DNS forwarding ruleset. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Remove-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName sampleForwardingRuleset -Name sampleForwardingRule -ResourceGroupName powershell-test-rg +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$inputobject = Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverName -ResourceGroupName sampleRG -Name forwardingRule +``` + +Remove-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsForwardingRulesetName +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the forwarding rule. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ForwardingRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md new file mode 100644 index 000000000000..3b1641f9eca0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -0,0 +1,253 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetvirtualnetworklink +schema: 2.0.0 +--- + +# Remove-AzDnsForwardingRulesetVirtualNetworkLink + +## SYNOPSIS +Deletes a virtual network link to a DNS forwarding ruleset. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a virtual network link to a DNS forwarding ruleset. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Remove-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsForwardingRulesetName +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the virtual network link. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: VirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolver.md new file mode 100644 index 000000000000..be1f1be0aa4a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolver.md @@ -0,0 +1,237 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolver +schema: 2.0.0 +--- + +# Remove-AzDnsResolver + +## SYNOPSIS +Deletes a DNS resolver. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolver -Name -ResourceGroupName [-SubscriptionId ] [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolver -InputObject [-IfMatch ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS resolver. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Remove-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$dnsResolverObject = Get-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolver -InputObject $dnsResolverObject +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..54db08b9ae6d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverDomainList.md @@ -0,0 +1,237 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Remove-AzDnsResolverDomainList + +## SYNOPSIS +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverDomainList -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverInboundEndpoint.md new file mode 100644 index 000000000000..015c21a6a663 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverInboundEndpoint.md @@ -0,0 +1,252 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverinboundendpoint +schema: 2.0.0 +--- + +# Remove-AzDnsResolverInboundEndpoint + +## SYNOPSIS +Deletes an inbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverInboundEndpoint -DnsResolverName -Name -ResourceGroupName + [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverInboundEndpoint -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes an inbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Remove-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +``` + +Remove-AzDnsResolverInboundEndpoint -InputObject $inputObject + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverName +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the inbound endpoint for the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: InboundEndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverOutboundEndpoint.md new file mode 100644 index 000000000000..98aa7602c3c3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverOutboundEndpoint.md @@ -0,0 +1,253 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolveroutboundendpoint +schema: 2.0.0 +--- + +# Remove-AzDnsResolverOutboundEndpoint + +## SYNOPSIS +Deletes an outbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverOutboundEndpoint -DnsResolverName -Name -ResourceGroupName + [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverOutboundEndpoint -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes an outbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Remove-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup +Remove-AzDnsResolverOutboundEndpoint -InputObject $inputObject +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverName +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the outbound endpoint for the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: OutboundEndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..b07ff9d9b6ff --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverPolicy.md @@ -0,0 +1,237 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicy + +## SYNOPSIS +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicy -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..ab896c666abe --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,252 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicyDnsSecurityRule -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..94a47762ffc2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,252 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsForwardingRuleset.md new file mode 100644 index 000000000000..b87620a40557 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsForwardingRuleset.md @@ -0,0 +1,253 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingruleset +schema: 2.0.0 +--- + +# Update-AzDnsForwardingRuleset + +## SYNOPSIS +Updates a DNS forwarding ruleset. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsForwardingRuleset -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-DnsResolverOutboundEndpoint ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsForwardingRuleset -InputObject [-IfMatch ] + [-DnsResolverOutboundEndpoint ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS forwarding ruleset. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Update-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Tag @{"key0" = "value0"} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$inputObject = Get-AzDnsForwardingRuleset -ResourceGroupName powershell-test-rg -Name dnsForwardingRuleset +Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0"} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverOutboundEndpoint +The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. +To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsForwardingRulesetName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS Resolver. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsForwardingRulesetForwardingRule.md new file mode 100644 index 000000000000..83c2dd8cb476 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsForwardingRulesetForwardingRule.md @@ -0,0 +1,254 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetforwardingrule +schema: 2.0.0 +--- + +# Update-AzDnsForwardingRulesetForwardingRule + +## SYNOPSIS +Updates a forwarding rule in a DNS forwarding ruleset. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] + [-ForwardingRuleState ] [-Metadata ] [-TargetDnsServer ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsForwardingRulesetForwardingRule -InputObject [-IfMatch ] + [-ForwardingRuleState ] [-Metadata ] [-TargetDnsServer ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a forwarding rule in a DNS forwarding ruleset. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Update-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -Metadata @{"key0" = "value0"} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$inputObject = Get-AzDnsForwardingRulesetForwardingRule -ResourceGroupName powershell-test-rg -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule +Update-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject -Metadata @{"value0" = "value1"} +``` + + + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsForwardingRulesetName +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardingRuleState +The state of forwarding rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Metadata +Metadata attached to the forwarding rule. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the forwarding rule. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: ForwardingRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetDnsServer +DNS servers to forward the DNS query to. +To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.md new file mode 100644 index 000000000000..aa2f303d7f34 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -0,0 +1,252 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetvirtualnetworklink +schema: 2.0.0 +--- + +# Update-AzDnsForwardingRulesetVirtualNetworkLink + +## SYNOPSIS +Updates a virtual network link to a DNS forwarding ruleset. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-Metadata ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject [-IfMatch ] + [-Metadata ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Updates a virtual network link to a DNS forwarding ruleset. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Update-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName sampleDnsForwardingRuleset -Name sampleVnetLink -Metadata @{"value0" = "value1"} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject -Metadata @{"value0" = "value1"} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsForwardingRulesetName +The name of the DNS forwarding ruleset. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Metadata +Metadata attached to the virtual network link. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the virtual network link. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: VirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolver.md new file mode 100644 index 000000000000..dea32e435e1e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolver.md @@ -0,0 +1,235 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolver +schema: 2.0.0 +--- + +# Update-AzDnsResolver + +## SYNOPSIS +Updates a DNS resolver. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolver -Name -ResourceGroupName [-SubscriptionId ] [-IfMatch ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolver -InputObject [-IfMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS resolver. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Update-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz -Tag @{"key0" = "value0"} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$dnsResolverObject = Get-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Update-AzDnsResolver -InputObject $dnsResolverObject -Tag @{} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS Resolver. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..7cf98f3fdfc4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverDomainList.md @@ -0,0 +1,250 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Update-AzDnsResolverDomainList + +## SYNOPSIS +Updates a DNS resolver domain list. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-Domain ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverDomainList -InputObject [-IfMatch ] [-Domain ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS resolver domain list. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Domain +The domains in the domain list. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS resolver domain list. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverInboundEndpoint.md new file mode 100644 index 000000000000..71e1c5225073 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverInboundEndpoint.md @@ -0,0 +1,251 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverinboundendpoint +schema: 2.0.0 +--- + +# Update-AzDnsResolverInboundEndpoint + +## SYNOPSIS +Updates an inbound endpoint for a DNS resolver. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverInboundEndpoint -DnsResolverName -Name -ResourceGroupName + [-SubscriptionId ] [-IfMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverInboundEndpoint -InputObject [-IfMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates an inbound endpoint for a DNS resolver. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Update-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Tag @{"value0" = "value1"} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Tag @{"value0" = "value1"} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverName +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the inbound endpoint for the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: InboundEndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for inbound endpoint. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverOutboundEndpoint.md new file mode 100644 index 000000000000..af1efc043653 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverOutboundEndpoint.md @@ -0,0 +1,251 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolveroutboundendpoint +schema: 2.0.0 +--- + +# Update-AzDnsResolverOutboundEndpoint + +## SYNOPSIS +Updates an outbound endpoint for a DNS resolver. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverOutboundEndpoint -DnsResolverName -Name -ResourceGroupName + [-SubscriptionId ] [-IfMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverOutboundEndpoint -InputObject [-IfMatch ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates an outbound endpoint for a DNS resolver. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +Update-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Tag @{"value0" = "value1"} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +$inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup +Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = "value1"} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverName +The name of the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the outbound endpoint for the DNS resolver. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: OutboundEndpointName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for outbound endpoint. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..cdf3d764658c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverPolicy.md @@ -0,0 +1,235 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicy + +## SYNOPSIS +Updates a DNS resolver policy. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicy -InputObject [-IfMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS resolver policy. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS resolver policy. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..bb81f5cad657 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,330 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Updates a DNS security rule. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsResolverDomainList ] [-DnsSecurityRuleState ] [-Priority ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicyDnsSecurityRule -InputObject [-IfMatch ] + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsResolverDomainList ] [-DnsSecurityRuleState ] [-Priority ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS security rule. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -ActionBlockResponseCode +The response code for block actions. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ActionType +The type of action to take. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverDomainList +DNS resolver policy domains lists that the DNS security rule applies to. +To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsSecurityRuleState +The state of DNS security rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +The priority of the DNS security rule. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS security rule. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..a28de4e94a54 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/docs/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,250 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Updates a DNS resolver policy virtual network link. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-IfMatch ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS resolver policy virtual network link. + +## EXAMPLES + +### -------------------------- EXAMPLE 1 -------------------------- +```powershell +{{ Add code here }} +``` + + + +### -------------------------- EXAMPLE 2 -------------------------- +```powershell +{{ Add code here }} +``` + + + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +ETag of the resource. +Omit this value to always overwrite the current resource. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for the DNS resolver policy virtual network link. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..c7c5bdae02de --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverDomainList.md @@ -0,0 +1,50 @@ +### Example 1: List all DNS Resolver Domain Lists under the subscription +```powershell +Get-AzDnsResolverDomainList -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverdomainlisttestresolver2422 Microsoft.Network/dnsResolverDomainLists "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverdomainlisttestresolver2654 Microsoft.Network/dnsResolverDomainLists "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverdomainlisttestresolver8416 Microsoft.Network/dnsResolverDomainLists "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverdomainlisttestresolver5036 Microsoft.Network/dnsResolverDomainLists "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverdomainlisttestresolver3718 Microsoft.Network/dnsResolverDomainLists "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverdomainlisttestresolver2758 Microsoft.Network/dnsResolverDomainLists "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverdomainlisttestresolver7108 Microsoft.Network/dnsResolverDomainLists "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverdomainlisttestresolver7639 Microsoft.Network/dnsResolverDomainLists "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverdomainlisttestresolver5912 Microsoft.Network/dnsResolverDomainLists "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverdomainlisttestguli01 Microsoft.Network/dnsResolverDomainLists "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverdomainlisttestresolver9892 Microsoft.Network/dnsResolverDomainLists "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Domain Lists under the subscription. + +### Example 2: List all DNS Resolver Domain Lists under the resource group +```powershell +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000c2d4-0000-0800-0000-604013880000" +westus2 psdnsresolverdomainlistname34dp19g6 Microsoft.Network/dnsResolverDomainLists "0000c9d4-0000-0800-0000-604013990000" +westus2 psdnsresolverdomainlistname35m3jf0n Microsoft.Network/dnsResolverDomainLists "0000d0d4-0000-0800-0000-604013a80000" +``` + +This command gets all DNS Resolver Domain Lists under the resource group. + +### Example 3: Get single DNS Resolver by name +```powershell +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Domain List by name. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..b5c9830c0480 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicy.md @@ -0,0 +1,50 @@ +### Example 1: List all DNS Resolver Policies under the subscription +```powershell +Get-AzDnsResolverPolicy -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverpolicytestresolver2422 Microsoft.Network/dnsResolverPolicies "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverpolicytestresolver2654 Microsoft.Network/dnsResolverPolicies "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverpolicytestresolver8416 Microsoft.Network/dnsResolverPolicies "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverpolicytestresolver5036 Microsoft.Network/dnsResolverPolicies "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverpolicytestresolver3718 Microsoft.Network/dnsResolverPolicies "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverpolicytestresolver2758 Microsoft.Network/dnsResolverPolicies "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverpolicytestresolver7108 Microsoft.Network/dnsResolverPolicies "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverpolicytestresolver7639 Microsoft.Network/dnsResolverPolicies "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverpolicytestresolver5912 Microsoft.Network/dnsResolverPolicies "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverpolicytestguli01 Microsoft.Network/dnsResolverPolicies "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverpolicytestresolver9892 Microsoft.Network/dnsResolverPolicies "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Policies under the subscription. + +### Example 2: List all DNS Resolver Policies under the resource group +```powershell +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000c2d4-0000-0800-0000-604013880000" +westus2 psdnsresolverpolicyname34dp19g6 Microsoft.Network/dnsResolverPolicies "0000c9d4-0000-0800-0000-604013990000" +westus2 psdnsresolverpolicyname35m3jf0n Microsoft.Network/dnsResolverPolicies "0000d0d4-0000-0800-0000-604013a80000" +``` + +This command gets all DNS Resolver Policies under the resource group. + +### Example 3: Get single DNS Resolver by name +```powershell +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Policy by name. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..de25a32198ce --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,35 @@ +### Example 1: List all DNS Security Rule under the dns resolver policy +```powershell +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnssecurityruletestresolver2422 Microsoft.Network/dnsSecurityRules "8b002671-0000-0800-0000-60386dc10000" +westus2 dnssecurityruletestresolver2654 Microsoft.Network/dnsSecurityRules "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnssecurityruletestresolver8416 Microsoft.Network/dnsSecurityRules "94008a5e-0000-0800-0000-603972f20000" +westus2 dnssecurityruletestresolver5036 Microsoft.Network/dnsSecurityRules "8b002f71-0000-0800-0000-60386df80000" +westus2 dnssecurityruletestresolver3718 Microsoft.Network/dnsSecurityRules "00009b95-0000-0800-0000-603e8b210000" +westus2 dnssecurityruletestresolver2758 Microsoft.Network/dnsSecurityRules "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnssecurityruletestresolver7108 Microsoft.Network/dnsSecurityRules "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnssecurityruletestresolver7639 Microsoft.Network/dnsSecurityRules "8b00b670-0000-0800-0000-60386b010000" +westus2 dnssecurityruletestresolver5912 Microsoft.Network/dnsSecurityRules "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnssecurityruletestguli01 Microsoft.Network/dnsSecurityRules "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnssecurityruletestresolver9892 Microsoft.Network/dnsSecurityRules "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Security Rule under the dns resolver policy. + +### Example 2: Get single DNS Security Rule by name +```powershell +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnssecurityrulename33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Security Rule by name. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..773f36da2d88 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,35 @@ +### Example 1: List all DNS Resolver Policy Links under the dns resolver policy +```powershell +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverpolicylinktestresolver2422 Microsoft.Network/dnsResolverPolicyLinks "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverpolicylinktestresolver2654 Microsoft.Network/dnsResolverPolicyLinks "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverpolicylinktestresolver8416 Microsoft.Network/dnsResolverPolicyLinks "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverpolicylinktestresolver5036 Microsoft.Network/dnsResolverPolicyLinks "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverpolicylinktestresolver3718 Microsoft.Network/dnsResolverPolicyLinks "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverpolicylinktestresolver2758 Microsoft.Network/dnsResolverPolicyLinks "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverpolicylinktestresolver7108 Microsoft.Network/dnsResolverPolicyLinks "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverpolicylinktestresolver7639 Microsoft.Network/dnsResolverPolicyLinks "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverpolicylinktestresolver5912 Microsoft.Network/dnsResolverPolicyLinks "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverpolicylinktestguli01 Microsoft.Network/dnsResolverPolicyLinks "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverpolicylinktestresolver9892 Microsoft.Network/dnsResolverPolicyLinks "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Policy Links under the dns resolver policy. + +### Example 2: Get single DNS Resolver Policy Link by name +```powershell +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Policy Link by name. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..6d392ab560d7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverDomainList.md @@ -0,0 +1,26 @@ +### Example 1: Create a DNS resolver domain list +```powershell +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverDomainList Microsoft.Network/dnsResolvers "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver domain list. + + +### Example 2: Create a DNS resolver domain list with tag +```powershell +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverDomainList Microsoft.Network/dnsResolverPolicies "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver domain list with tag. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..42f1d323c2dc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicy.md @@ -0,0 +1,26 @@ +### Example 1: Create a DNS resolver policy +```powershell +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicy Microsoft.Network/dnsResolvers "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver policy. + + +### Example 2: Create a DNS resolver policy with tag +```powershell +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicy Microsoft.Network/dnsResolvers "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver policy with tag. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..0d1587ec841f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,24 @@ +### Example 1: Create a DNS security rule +```powershell +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleSecurityRule Microsoft.Network/dnsSecurityRules "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS security rule. + +### Example 2: Create a DNS security rule with tag +```powershell +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleSecurityRule Microsoft.Network/dnsSecurityRules "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS security rule with tag. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..561762d363a0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,26 @@ +### Example 1: Create a DNS resolver policy link +```powershell +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicyLink Microsoft.Network/dnsResolverPolicyLinks "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver policy link. + + +### Example 2: Create a DNS resolver policy link with tag +```powershell +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicyLink Microsoft.Network/dnsResolverPolicyLinks "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver policy link with tag. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..8b7fcd62acd1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverDomainList.md @@ -0,0 +1,14 @@ +### Example 1: Remove a DNS Resolver Domain List by name +```powershell +Remove-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +``` +This command removes a DNS Resolver Domain List by name. + +### Example 2: Remove a DNS Resolver Domain List by identity +```powershell +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject +``` + +This command removes a DNS Resolver Domain List by identity. + diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..eeaf5f37980a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicy.md @@ -0,0 +1,14 @@ +### Example 1: Remove a Dns Resolver Policy by name +```powershell +Remove-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +``` +This command removes a Dns Resolver Policy by name. + +### Example 2: Remove a Dns Resolver Policy by identity +```powershell +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject +``` + +This command removes a Dns Resolver Policy by identity. + diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..1b7915c5bfb8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,13 @@ +### Example 1: Remove a DNS Security Rule by name +```powershell +Remove-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz +``` +This command removes a DNS Security Rule by name. + +### Example 2: Remove a DNS Security Rule by identity +```powershell +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Remove-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject +``` + +This command removes a DNS Security Rule by identity. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..07b876e50a7f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,14 @@ +### Example 1: Remove a DNS Resolver Policy Link by name +```powershell +Remove-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +``` +This command removes a DNS Resolver Policy Link by name. + +### Example 2: Remove a DNS Resolver Policy Link by identity +```powershell +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Remove-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject +``` + +This command removes a DNS Resolver Policy Link by identity. + diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..992a8c58b02f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverDomainList.md @@ -0,0 +1,25 @@ +### Example 1: Update an existing DNS Resolver Domain List by name +```powershell +Update-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Domain List by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver Domain List by identity +```powershell +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz +Update-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000efd6-0000-0800-0000-60401c7c0000" +``` +This command updates an existing DNS Resolver Domain List by identity ( removing tag ). diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..190781e2b41b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicy.md @@ -0,0 +1,25 @@ +### Example 1: Update an existing DNS Resolver Policy by name +```powershell +Update-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver Policy by identity +```powershell +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz +Update-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000efd6-0000-0800-0000-60401c7c0000" +``` +This command updates an existing DNS Resolver Policy by identity ( removing tag ). diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..f2298d295090 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,25 @@ +### Example 1: Update an existing DNS Security Rule by name +```powershell +Update-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Security Rules by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver by identity +```powershell +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Update-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000efd6-0000-0800-0000-60401c7c0000" +``` +This command updates an existing DNS Security Rules by identity ( removing tag ). diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..532d7cd77757 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,25 @@ +### Example 1: Update an existing DNS Resolver Policy Link by name +```powershell +Update-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy Links by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver by identity +```powershell +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000efd6-0000-0800-0000-60401c7c0000" +``` +This command updates an existing DNS Resolver Policy Links by identity ( removing tag ). diff --git a/src/DnsResolver/DnsResolver.Autorest/export-surface.ps1 b/src/DnsResolver/DnsResolver.Autorest/export-surface.ps1 index e68a0810350a..22b4e710dcb2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/export-surface.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/export-surface.ps1 @@ -1,16 +1,8 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- param([switch]$Isolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat) $ErrorActionPreference = 'Stop' diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 index f06ea8b387cf..6a251414f43e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -31,9 +23,9 @@ Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -VirtualNetworkName virtu .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -41,20 +33,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingruleset #> function Get-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -81,6 +77,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 index e1ea4ed9fdce..7ce2599a93d9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -27,7 +19,7 @@ Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -35,20 +27,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetforwardingrule #> function Get-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -79,6 +75,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index b046168aa07f..94d347cd4824 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -27,7 +19,7 @@ Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdns .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -35,20 +27,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetvirtualnetworklink #> function Get-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -79,6 +75,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 index 85838826ef05..23ed880abd6c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -31,9 +23,9 @@ Get-AzDnsResolver -ResourceGroupName powershell-test-rg -VirtualNetworkName virt .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource .Notes COMPLEX PARAMETER PROPERTIES @@ -41,20 +33,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver #> function Get-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -81,6 +77,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1 new file mode 100644 index 000000000000..04feb0e35772 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1 @@ -0,0 +1,227 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets properties of a DNS resolver domain list. +.Description +Gets properties of a DNS resolver domain list. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist +#> +function Get-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_List'; + List1 = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_List1'; + } + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 index b1861bb34d04..ee23fda7a278 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -27,7 +19,7 @@ Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -35,20 +27,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint #> function Get-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -79,6 +75,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 index 7d4838794cbc..85460fdab85f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -27,7 +19,7 @@ Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -35,20 +27,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint #> function Get-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -79,6 +75,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1 new file mode 100644 index 000000000000..1ca8cf26fcde --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1 @@ -0,0 +1,238 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets properties of a DNS resolver policy. +.Description +Gets properties of a DNS resolver policy. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy +#> +function Get-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List2')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the virtual network. + ${VirtualNetworkName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List'; + List1 = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List1'; + List2 = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List2'; + } + if (('Get', 'List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1 new file mode 100644 index 000000000000..1fc0dd8aed12 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -0,0 +1,231 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets properties of a DNS security rule for a DNS resolver policy. +.Description +Gets properties of a DNS security rule for a DNS resolver policy. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule +#> +function Get-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1 new file mode 100644 index 000000000000..8db8d07bdd69 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -0,0 +1,231 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets properties of a DNS resolver policy virtual network link. +.Description +Gets properties of a DNS resolver policy virtual network link. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink +#> +function Get-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 index 477ee39bf162..f80a5e7defda 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -27,7 +19,7 @@ New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu New-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Location westus2 -DnsResolverOutboundEndpoint @{id = "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/dnsResolvers/sampleResolver/outboundEndpoints/sampleOutboundEndpoint";} -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -39,7 +31,7 @@ DNSRESOLVEROUTBOUNDENDPOINT : The reference to the DNS resolver https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset #> function New-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -61,6 +53,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -81,7 +74,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] # The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. # To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. ${DnsResolverOutboundEndpoint}, @@ -94,7 +87,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 index 1753f536c72f..348b2dfc30a0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -27,7 +19,7 @@ $targetIPConfig = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0. New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig -Metadata @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -40,7 +32,7 @@ TARGETDNSSERVER : DNS servers to forward the DNS query to. https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule #> function New-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -68,6 +60,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -94,7 +87,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]] # DNS servers to forward the DNS query to. # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ${TargetDnsServer}, @@ -108,7 +101,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index a83265e7f07c..087e307082f1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -25,12 +17,12 @@ New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwar New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" -Metadata @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink #> function New-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -58,6 +50,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -83,7 +76,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 index 5319ba6750f6..a5368148f760 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -25,12 +17,12 @@ New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -Vi New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver #> function New-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -52,6 +44,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -83,7 +76,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1 new file mode 100644 index 000000000000..a0084415f306 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1 @@ -0,0 +1,231 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a DNS resolver domain list. +.Description +Creates or updates a DNS resolver domain list. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverdomainlist +#> +function New-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String[]] + # The domains in the domain list. + ${Domain}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverDomainList_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 index 88348a090d91..4e5845d611cd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -23,12 +15,12 @@ Create a in-memory object for IPConfiguration New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 1.1.2.12 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44yqt9mb/subnets/pssubnetname44c6v0lr .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject #> function New-AzDnsResolverIPConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 index 215176d0e5dd..ba4fb7d60683 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -27,7 +19,7 @@ New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sa New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -41,7 +33,7 @@ IPCONFIGURATION : IP configurations for the inbound endpoint https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint #> function New-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -69,6 +61,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -89,7 +82,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]] # IP configurations for the inbound endpoint. # To construct, see NOTES section for IPCONFIGURATION properties and create a hash table. ${IPConfiguration}, @@ -102,7 +95,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 index 734576a14e76..a29567d48527 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -25,12 +17,12 @@ New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName powershell-test-rg -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint #> function New-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -58,6 +50,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -89,7 +82,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1 new file mode 100644 index 000000000000..824565276327 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1 @@ -0,0 +1,224 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a DNS resolver policy. +.Description +Creates or updates a DNS resolver policy. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicy +#> +function New-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverPolicy_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1 new file mode 100644 index 000000000000..7733b1cdcfab --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -0,0 +1,272 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a DNS security rule for a DNS resolver policy. +.Description +Creates or updates a DNS security rule for a DNS resolver policy. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +DNSRESOLVERDOMAINLIST : DNS resolver policy domains lists that the DNS security rule applies to. + Id : Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicydnssecurityrule +#> +function New-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] + # DNS resolver policy domains lists that the DNS security rule applies to. + # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + ${DnsResolverDomainList}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.Int32] + # The priority of the DNS security rule. + ${Priority}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode] + # The response code for block actions. + ${ActionBlockResponseCode}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType] + # The type of action to take. + ${ActionType}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState] + # The state of DNS security rule. + ${DnsSecurityRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1 new file mode 100644 index 000000000000..e96d48924b1e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -0,0 +1,236 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a DNS resolver policy virtual network link. +.Description +Creates or updates a DNS resolver policy virtual network link. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicyvirtualnetworklink +#> +function New-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # Resource ID. + ${VirtualNetworkId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 index bd937adf11c0..77552a84955c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -23,12 +15,12 @@ Create a in-memory object for Target DNS server New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject #> function New-AzDnsResolverTargetDnsServerObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 index 5be64390a79e..f859cbd854ed 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -27,7 +19,7 @@ Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -35,20 +27,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetforwardingrule #> function Get-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -79,6 +75,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -246,7 +243,7 @@ Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdns .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -254,20 +251,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetvirtualnetworklink #> function Get-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -298,6 +299,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -469,9 +471,9 @@ Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -VirtualNetworkName virtu .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -479,20 +481,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingruleset #> function Get-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -519,6 +525,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -685,18 +692,18 @@ end { <# .Synopsis -Gets properties of an inbound endpoint for a DNS resolver. +Gets properties of a DNS resolver domain list. .Description -Gets properties of an inbound endpoint for a DNS resolver. +Gets properties of a DNS resolver domain list. .Example -Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -ResourceGroupName powershell-test-rg +{{ Add code here }} .Example -Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList .Notes COMPLEX PARAMETER PROPERTIES @@ -704,34 +711,31 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist #> -function Get-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +function Get-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('InboundEndpointName')] + [Alias('DnsResolverDomainListName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the inbound endpoint for the DNS resolver. + # The name of the DNS resolver domain list. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -744,10 +748,12 @@ param( [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -758,6 +764,7 @@ param( ${InputObject}, [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] [System.Int32] # The maximum number of results to return. @@ -839,11 +846,12 @@ begin { } $mapping = @{ - Get = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_Get'; - GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_GetViaIdentity'; - List = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_List'; + Get = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_List'; + List1 = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_List1'; } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -904,18 +912,18 @@ end { <# .Synopsis -Gets properties of an outbound endpoint for a DNS resolver. +Gets properties of an inbound endpoint for a DNS resolver. .Description -Gets properties of an outbound endpoint for a DNS resolver. +Gets properties of an inbound endpoint for a DNS resolver. .Example -Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -ResourceGroupName sampleResourceGroup +Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -ResourceGroupName powershell-test-rg .Example -Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup +Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -923,20 +931,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint #> -function Get-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] +function Get-AzDnsResolverInboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -947,10 +959,10 @@ param( ${DnsResolverName}, [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('OutboundEndpointName')] + [Alias('InboundEndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the outbound endpoint for the DNS resolver. + # The name of the inbound endpoint for the DNS resolver. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -967,6 +979,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1058,9 +1071,9 @@ begin { } $mapping = @{ - Get = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_Get'; - GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_GetViaIdentity'; - List = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_List'; + Get = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -1123,24 +1136,18 @@ end { <# .Synopsis -Gets properties of a DNS resolver. +Gets properties of an outbound endpoint for a DNS resolver. .Description -Gets properties of a DNS resolver. -.Example -Get-AzDnsResolver -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 -.Example -Get-AzDnsResolver -ResourceGroupName powershell-test-rg +Gets properties of an outbound endpoint for a DNS resolver. .Example -Get-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -ResourceGroupName sampleResourceGroup .Example -Get-AzDnsResolver -ResourceGroupName powershell-test-rg -VirtualNetworkName virtualnetwork-test +Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -1148,32 +1155,42 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint #> -function Get-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzDnsResolverOutboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('DnsResolverName')] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the DNS resolver. + ${DnsResolverName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('OutboundEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the outbound endpoint for the DNS resolver. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] - [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. @@ -1182,12 +1199,11 @@ param( [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='List1')] - [Parameter(ParameterSetName='List2')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1197,15 +1213,7 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='List2', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the virtual network. - ${VirtualNetworkName}, - [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='List1')] - [Parameter(ParameterSetName='List2')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] [System.Int32] # The maximum number of results to return. @@ -1287,13 +1295,11 @@ begin { } $mapping = @{ - Get = 'Az.DnsResolver.private\Get-AzDnsResolver_Get'; - GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolver_GetViaIdentity'; - List = 'Az.DnsResolver.private\Get-AzDnsResolver_List'; - List1 = 'Az.DnsResolver.private\Get-AzDnsResolver_List1'; - List2 = 'Az.DnsResolver.private\Get-AzDnsResolver_List2'; + Get = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_List'; } - if (('Get', 'List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -1354,102 +1360,89 @@ end { <# .Synopsis -Creates or updates a forwarding rule in a DNS forwarding ruleset. +Gets properties of a DNS security rule for a DNS resolver policy. .Description -Creates or updates a forwarding rule in a DNS forwarding ruleset. +Gets properties of a DNS security rule for a DNS resolver policy. .Example -$targetIPConfig = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet -New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig +{{ Add code here }} .Example -$targetIPConfig = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet -New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig -Metadata @{"key0" = "value0"} +{{ Add code here }} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -TARGETDNSSERVER : DNS servers to forward the DNS query to. - IPAddress : DNS server IP address. - [Port ]: DNS server port. +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule #> -function New-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, - [Parameter(Mandatory)] - [Alias('ForwardingRuleName')] + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsSecurityRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the forwarding rule. + # The name of the DNS security rule. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] + [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # ETag of the resource. - # Omit this value to always overwrite the current resource. - # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. - ${IfMatch}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. - ${IfNoneMatch}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # The domain name for the forwarding rule. - ${DomainName}, - - [Parameter(Mandatory)] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]] - # DNS servers to forward the DNS query to. - # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. - ${TargetDnsServer}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState])] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState] - # The state of forwarding rule. - ${ForwardingRuleState}, + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata]))] - [System.Collections.Hashtable] - # Metadata attached to the forwarding rule. - ${Metadata}, + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1526,9 +1519,11 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRulesetForwardingRule_CreateExpanded'; + Get = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_List'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -1589,77 +1584,3807 @@ end { <# .Synopsis -Creates or updates a virtual network link to a DNS forwarding ruleset. +Gets properties of a DNS resolver policy virtual network link. .Description -Creates or updates a virtual network link to a DNS forwarding ruleset. +Gets properties of a DNS resolver policy virtual network link. .Example -New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" +{{ Add code here }} .Example -New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" -Metadata @{"key0" = "value0"} +{{ Add code here }} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink #> -function New-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, - [Parameter(Mandatory)] - [Alias('VirtualNetworkLinkName')] + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the virtual network link. + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] + [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # ETag of the resource. - # Omit this value to always overwrite the current resource. - # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. - ${IfMatch}, + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. - ${IfNoneMatch}, + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Gets properties of a DNS resolver policy. +.Description +Gets properties of a DNS resolver policy. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy +#> +function Get-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List2')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the virtual network. + ${VirtualNetworkName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List'; + List1 = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List1'; + List2 = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List2'; + } + if (('Get', 'List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Gets properties of a DNS resolver. +.Description +Gets properties of a DNS resolver. +.Example +Get-AzDnsResolver -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +.Example +Get-AzDnsResolver -ResourceGroupName powershell-test-rg +.Example +Get-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +.Example +Get-AzDnsResolver -ResourceGroupName powershell-test-rg -VirtualNetworkName virtualnetwork-test + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver +#> +function Get-AzDnsResolver { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List2')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the virtual network. + ${VirtualNetworkName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List2')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.DnsResolver.private\Get-AzDnsResolver_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolver_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolver_List'; + List1 = 'Az.DnsResolver.private\Get-AzDnsResolver_List1'; + List2 = 'Az.DnsResolver.private\Get-AzDnsResolver_List2'; + } + if (('Get', 'List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Creates or updates a forwarding rule in a DNS forwarding ruleset. +.Description +Creates or updates a forwarding rule in a DNS forwarding ruleset. +.Example +$targetIPConfig = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet +New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig +.Example +$targetIPConfig = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet +New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig -Metadata @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +TARGETDNSSERVER : DNS servers to forward the DNS query to. + IPAddress : DNS server IP address. + [Port ]: DNS server port. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule +#> +function New-AzDnsForwardingRulesetForwardingRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, + + [Parameter(Mandatory)] + [Alias('ForwardingRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the forwarding rule. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The domain name for the forwarding rule. + ${DomainName}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]] + # DNS servers to forward the DNS query to. + # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. + ${TargetDnsServer}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState] + # The state of forwarding rule. + ${ForwardingRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata]))] + [System.Collections.Hashtable] + # Metadata attached to the forwarding rule. + ${Metadata}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRulesetForwardingRule_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Creates or updates a virtual network link to a DNS forwarding ruleset. +.Description +Creates or updates a virtual network link to a DNS forwarding ruleset. +.Example +New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" +.Example +New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" -Metadata @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink +#> +function New-AzDnsForwardingRulesetVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, + + [Parameter(Mandatory)] + [Alias('VirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the virtual network link. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # Resource ID. + ${VirtualNetworkId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata]))] + [System.Collections.Hashtable] + # Metadata attached to the virtual network link. + ${Metadata}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Creates or updates a DNS forwarding ruleset. +.Description +Creates or updates a DNS forwarding ruleset. +.Example +New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName sampleRG -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 +New-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Location westus2 -DnsResolverOutboundEndpoint @{id = "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/dnsResolvers/sampleResolver/outboundEndpoints/sampleOutboundEndpoint";} +.Example +New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName sampleRG -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 +New-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Location westus2 -DnsResolverOutboundEndpoint @{id = "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/dnsResolvers/sampleResolver/outboundEndpoints/sampleOutboundEndpoint";} -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +DNSRESOLVEROUTBOUNDENDPOINT : The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. + Id : Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset +#> +function New-AzDnsForwardingRuleset { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsForwardingRulesetName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] + # The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. + # To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. + ${DnsResolverOutboundEndpoint}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRuleset_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Creates or updates a DNS resolver domain list. +.Description +Creates or updates a DNS resolver domain list. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverdomainlist +#> +function New-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String[]] + # The domains in the domain list. + ${Domain}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverDomainList_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Creates or updates an inbound endpoint for a DNS resolver. +.Description +Creates or updates an inbound endpoint for a DNS resolver. +.Example +$ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31ur3isx/subnets/pssubnetname311tqweg + +New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration +.Example +New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +IPCONFIGURATION : IP configurations for the inbound endpoint. + SubnetId : Resource ID. + [PrivateIPAddress ]: Private IP address of the IP configuration. + [PrivateIPAllocationMethod ]: Private IP address allocation method. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint +#> +function New-AzDnsResolverInboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver. + ${DnsResolverName}, + + [Parameter(Mandatory)] + [Alias('InboundEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the inbound endpoint for the DNS resolver. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]] + # IP configurations for the inbound endpoint. + # To construct, see NOTES section for IPCONFIGURATION properties and create a hash table. + ${IPConfiguration}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverInboundEndpoint_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Creates or updates an outbound endpoint for a DNS resolver. +.Description +Creates or updates an outbound endpoint for a DNS resolver. +.Example +New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName powershell-test-rg -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 +.Example +New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName powershell-test-rg -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint +#> +function New-AzDnsResolverOutboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver. + ${DnsResolverName}, + + [Parameter(Mandatory)] + [Alias('OutboundEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the outbound endpoint for the DNS resolver. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # Resource ID. + ${SubnetId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverOutboundEndpoint_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Creates or updates a DNS security rule for a DNS resolver policy. +.Description +Creates or updates a DNS security rule for a DNS resolver policy. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +DNSRESOLVERDOMAINLIST : DNS resolver policy domains lists that the DNS security rule applies to. + Id : Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicydnssecurityrule +#> +function New-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] + # DNS resolver policy domains lists that the DNS security rule applies to. + # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + ${DnsResolverDomainList}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.Int32] + # The priority of the DNS security rule. + ${Priority}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode] + # The response code for block actions. + ${ActionBlockResponseCode}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType] + # The type of action to take. + ${ActionType}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState] + # The state of DNS security rule. + ${DnsSecurityRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Creates or updates a DNS resolver policy virtual network link. +.Description +Creates or updates a DNS resolver policy virtual network link. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicyvirtualnetworklink +#> +function New-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # Resource ID. + ${VirtualNetworkId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Creates or updates a DNS resolver policy. +.Description +Creates or updates a DNS resolver policy. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicy +#> +function New-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverPolicy_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Creates or updates a DNS resolver. +.Description +Creates or updates a DNS resolver. +.Example +New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 +.Example +New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver +#> +function New-AzDnsResolver { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsResolverName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] [System.String] - # Resource ID. - ${VirtualNetworkId}, + # The geo-location where the resource lives + ${Location}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # Resource ID. + ${VirtualNetworkId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolver_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Deletes a forwarding rule in a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +.Description +Deletes a forwarding rule in a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +.Example +Remove-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName sampleForwardingRuleset -Name sampleForwardingRule -ResourceGroupName powershell-test-rg +.Example +$inputobject = Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverName -ResourceGroupName sampleRG -Name forwardingRule + +Remove-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetforwardingrule +#> +function Remove-AzDnsForwardingRulesetForwardingRule { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('ForwardingRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the forwarding rule. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetForwardingRule_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetForwardingRule_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Deletes a virtual network link to a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +.Description +Deletes a virtual network link to a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +.Example +Remove-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG +.Example +$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetvirtualnetworklink +#> +function Remove-AzDnsForwardingRulesetVirtualNetworkLink { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('VirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the virtual network link. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetVirtualNetworkLink_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Deletes a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +All forwarding rules within the ruleset will be deleted. +.Description +Deletes a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +All forwarding rules within the ruleset will be deleted. +.Example +Remove-AzDnsForwardingRuleset -Name dnsForwardingRulset -ResourceGroupName sampleRG +.Example +$dnsResolverDnsForwardingRulesetObject = Get-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG +Remove-AzDnsForwardingRuleset -InputObject $dnsResolverDnsForwardingRulesetObject + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingruleset +#> +function Remove-AzDnsForwardingRuleset { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsForwardingRulesetName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRuleset_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRuleset_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. +.Description +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist +#> +function Remove-AzDnsResolverDomainList { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata]))] - [System.Collections.Hashtable] - # Metadata attached to the virtual network link. - ${Metadata}, + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1702,6 +5427,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -1748,9 +5479,10 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverDomainList_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverDomainList_DeleteViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -1811,53 +5543,84 @@ end { <# .Synopsis -Creates or updates a DNS forwarding ruleset. +Deletes an inbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. .Description -Creates or updates a DNS forwarding ruleset. +Deletes an inbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. .Example -New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName sampleRG -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -New-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Location westus2 -DnsResolverOutboundEndpoint @{id = "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/dnsResolvers/sampleResolver/outboundEndpoints/sampleOutboundEndpoint";} +Remove-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg .Example -New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName sampleRG -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -New-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Location westus2 -DnsResolverOutboundEndpoint @{id = "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/dnsResolvers/sampleResolver/outboundEndpoints/sampleOutboundEndpoint";} -Tag @{"key0" = "value0"} +$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg + +Remove-AzDnsResolverInboundEndpoint -InputObject $inputObject +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -DNSRESOLVEROUTBOUNDENDPOINT : The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. - Id : Resource ID. +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverinboundendpoint #> -function New-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzDnsResolverInboundEndpoint { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] - [Alias('DnsForwardingRulesetName')] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. + # The name of the DNS resolver. + ${DnsResolverName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('InboundEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the inbound endpoint for the DNS resolver. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] [System.String] @@ -1866,34 +5629,6 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. - ${IfNoneMatch}, - - [Parameter(Mandatory)] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]] - # The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. - # To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. - ${DnsResolverOutboundEndpoint}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1935,6 +5670,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -1981,9 +5722,10 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRuleset_CreateExpanded'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_DeleteViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -2044,61 +5786,83 @@ end { <# .Synopsis -Creates or updates an inbound endpoint for a DNS resolver. +Deletes an outbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. .Description -Creates or updates an inbound endpoint for a DNS resolver. +Deletes an outbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. .Example -$ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31ur3isx/subnets/pssubnetname311tqweg - -New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration +Remove-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz .Example -New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"} +$inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup +Remove-AzDnsResolverOutboundEndpoint -InputObject $inputObject +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -IPCONFIGURATION : IP configurations for the inbound endpoint. - SubnetId : Resource ID. - [PrivateIPAddress ]: Private IP address of the IP configuration. - [PrivateIPAllocationMethod ]: Private IP address allocation method. +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolveroutboundendpoint #> -function New-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzDnsResolverOutboundEndpoint { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the DNS resolver. ${DnsResolverName}, - [Parameter(Mandatory)] - [Alias('InboundEndpointName')] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('OutboundEndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the inbound endpoint for the DNS resolver. + # The name of the outbound endpoint for the DNS resolver. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] [System.String] @@ -2107,34 +5871,6 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. - ${IfNoneMatch}, - - [Parameter(Mandatory)] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]] - # IP configurations for the inbound endpoint. - # To construct, see NOTES section for IPCONFIGURATION properties and create a hash table. - ${IPConfiguration}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2176,6 +5912,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -2222,9 +5964,10 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverInboundEndpoint_CreateExpanded'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_DeleteViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -2285,50 +6028,82 @@ end { <# .Synopsis -Creates or updates an outbound endpoint for a DNS resolver. +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. .Description -Creates or updates an outbound endpoint for a DNS resolver. +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. .Example -New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName powershell-test-rg -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 +{{ Add code here }} .Example -New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName powershell-test-rg -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -Tag @{"key0" = "value0"} +{{ Add code here }} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule #> -function New-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, - [Parameter(Mandatory)] - [Alias('OutboundEndpointName')] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsSecurityRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the outbound endpoint for the DNS resolver. + # The name of the DNS security rule. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] [System.String] @@ -2337,32 +6112,6 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. - ${IfNoneMatch}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # Resource ID. - ${SubnetId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2404,6 +6153,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -2450,9 +6205,10 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverOutboundEndpoint_CreateExpanded'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyDnsSecurityRule_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -2513,44 +6269,82 @@ end { <# .Synopsis -Creates or updates a DNS resolver. +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. .Description -Creates or updates a DNS resolver. +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. .Example -New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 +{{ Add code here }} .Example -New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} +{{ Add code here }} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink #> -function New-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] - [Alias('DnsResolverName')] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] [System.String] @@ -2559,32 +6353,6 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. - ${IfNoneMatch}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # Resource ID. - ${VirtualNetworkId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2626,6 +6394,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -2672,9 +6446,10 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolver_CreateExpanded'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyVirtualNetworkLink_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -2735,17 +6510,15 @@ end { <# .Synopsis -Deletes a forwarding rule in a DNS forwarding ruleset. +Deletes a DNS resolver policy. WARNING: This operation cannot be undone. .Description -Deletes a forwarding rule in a DNS forwarding ruleset. +Deletes a DNS resolver policy. WARNING: This operation cannot be undone. .Example -Remove-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName sampleForwardingRuleset -Name sampleForwardingRule -ResourceGroupName powershell-test-rg +{{ Add code here }} .Example -$inputobject = Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverName -ResourceGroupName sampleRG -Name forwardingRule - -Remove-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity @@ -2758,33 +6531,31 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetforwardingrule +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy #> -function Remove-AzDnsForwardingRulesetForwardingRule { +function Remove-AzDnsResolverPolicy { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('ForwardingRuleName')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the forwarding rule. + # The name of the DNS resolver policy. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -2799,6 +6570,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -2825,6 +6597,12 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -2845,6 +6623,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -2897,8 +6681,8 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetForwardingRule_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetForwardingRule_DeleteViaIdentity'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicy_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicy_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -2961,16 +6745,16 @@ end { <# .Synopsis -Deletes a virtual network link to a DNS forwarding ruleset. +Deletes a DNS resolver. WARNING: This operation cannot be undone. .Description -Deletes a virtual network link to a DNS forwarding ruleset. +Deletes a DNS resolver. WARNING: This operation cannot be undone. .Example -Remove-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG +Remove-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz .Example -$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg -Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject +$dnsResolverObject = Get-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolver -InputObject $dnsResolverObject .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity @@ -2983,33 +6767,31 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetvirtualnetworklink +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolver #> -function Remove-AzDnsForwardingRulesetVirtualNetworkLink { +function Remove-AzDnsResolver { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('VirtualNetworkLinkName')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the virtual network link. + # The name of the DNS resolver. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -3024,6 +6806,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -3134,8 +6917,8 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetVirtualNetworkLink_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolver_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolver_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -3198,23 +6981,19 @@ end { <# .Synopsis -Deletes a DNS forwarding ruleset. -WARNING: This operation cannot be undone. -All forwarding rules within the ruleset will be deleted. +Updates a forwarding rule in a DNS forwarding ruleset. .Description -Deletes a DNS forwarding ruleset. -WARNING: This operation cannot be undone. -All forwarding rules within the ruleset will be deleted. +Updates a forwarding rule in a DNS forwarding ruleset. .Example -Remove-AzDnsForwardingRuleset -Name dnsForwardingRulset -ResourceGroupName sampleRG +Update-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -Metadata @{"key0" = "value0"} .Example -$dnsResolverDnsForwardingRulesetObject = Get-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Remove-AzDnsForwardingRuleset -InputObject $dnsResolverDnsForwardingRulesetObject +$inputObject = Get-AzDnsForwardingRulesetForwardingRule -ResourceGroupName powershell-test-rg -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule +Update-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject -Metadata @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -3222,44 +7001,59 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. + +TARGETDNSSERVER : DNS servers to forward the DNS query to. + IPAddress : DNS server IP address. + [Port ]: DNS server port. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingruleset +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetforwardingrule #> -function Remove-AzDnsForwardingRuleset { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzDnsForwardingRulesetForwardingRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('DnsForwardingRulesetName')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ForwardingRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the forwarding rule. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] # Identity Parameter @@ -3274,6 +7068,28 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState] + # The state of forwarding rule. + ${ForwardingRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata]))] + [System.Collections.Hashtable] + # Metadata attached to the forwarding rule. + ${Metadata}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]] + # DNS servers to forward the DNS query to. + # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. + ${TargetDnsServer}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -3283,12 +7099,6 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -3309,18 +7119,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -3367,10 +7165,10 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRuleset_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRuleset_DeleteViaIdentity'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -3431,22 +7229,19 @@ end { <# .Synopsis -Deletes an inbound endpoint for a DNS resolver. -WARNING: This operation cannot be undone. +Updates a virtual network link to a DNS forwarding ruleset. .Description -Deletes an inbound endpoint for a DNS resolver. -WARNING: This operation cannot be undone. +Updates a virtual network link to a DNS forwarding ruleset. .Example -Remove-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +Update-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName sampleDnsForwardingRuleset -Name sampleVnetLink -Metadata @{"value0" = "value1"} .Example -$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg - -Remove-AzDnsResolverInboundEndpoint -InputObject $inputObject +$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject -Metadata @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -3454,50 +7249,55 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverinboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetvirtualnetworklink #> -function Remove-AzDnsResolverInboundEndpoint { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzDnsForwardingRulesetVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, + # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('InboundEndpointName')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('VirtualNetworkLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the inbound endpoint for the DNS resolver. + # The name of the virtual network link. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] # Identity Parameter @@ -3512,6 +7312,13 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata]))] + [System.Collections.Hashtable] + # Metadata attached to the virtual network link. + ${Metadata}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -3553,12 +7360,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -3605,10 +7406,10 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_DeleteViaIdentity'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -3669,72 +7470,72 @@ end { <# .Synopsis -Deletes an outbound endpoint for a DNS resolver. -WARNING: This operation cannot be undone. +Updates a DNS forwarding ruleset. .Description -Deletes an outbound endpoint for a DNS resolver. -WARNING: This operation cannot be undone. +Updates a DNS forwarding ruleset. .Example -Remove-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Update-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Tag @{"key0" = "value0"} .Example -$inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Remove-AzDnsResolverOutboundEndpoint -InputObject $inputObject +$inputObject = Get-AzDnsForwardingRuleset -ResourceGroupName powershell-test-rg -Name dnsForwardingRuleset +Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. +DNSRESOLVEROUTBOUNDENDPOINT : The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. + Id : Resource ID. + INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolveroutboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingruleset #> -function Remove-AzDnsResolverOutboundEndpoint { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzDnsForwardingRuleset { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('OutboundEndpointName')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsForwardingRulesetName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the outbound endpoint for the DNS resolver. + # The name of the DNS forwarding ruleset. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] # Identity Parameter @@ -3749,6 +7550,21 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] + # The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. + # To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. + ${DnsResolverOutboundEndpoint}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags]))] + [System.Collections.Hashtable] + # Tags for DNS Resolver. + ${Tag}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -3790,12 +7606,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -3842,10 +7652,10 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_DeleteViaIdentity'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateViaIdentityExpanded'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -3906,21 +7716,18 @@ end { <# .Synopsis -Deletes a DNS resolver. -WARNING: This operation cannot be undone. +Updates a DNS resolver domain list. .Description -Deletes a DNS resolver. -WARNING: This operation cannot be undone. +Updates a DNS resolver domain list. .Example -Remove-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +{{ Add code here }} .Example -$dnsResolverObject = Get-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz -Remove-AzDnsResolver -InputObject $dnsResolverObject +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList .Notes COMPLEX PARAMETER PROPERTIES @@ -3928,44 +7735,49 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolver +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverdomainlist #> -function Remove-AzDnsResolver { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('DnsResolverName')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsResolverDomainListName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. + # The name of the DNS resolver domain list. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] # Identity Parameter @@ -3980,6 +7792,20 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String[]] + # The domains in the domain list. + ${Domain}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags]))] + [System.Collections.Hashtable] + # Tags for DNS resolver domain list. + ${Tag}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -4021,12 +7847,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -4073,10 +7893,10 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsResolver_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolver_DeleteViaIdentity'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverDomainList_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverDomainList_UpdateViaIdentityExpanded'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -4137,19 +7957,19 @@ end { <# .Synopsis -Updates a forwarding rule in a DNS forwarding ruleset. +Updates an inbound endpoint for a DNS resolver. .Description -Updates a forwarding rule in a DNS forwarding ruleset. +Updates an inbound endpoint for a DNS resolver. .Example -Update-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -Metadata @{"key0" = "value0"} +Update-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Tag @{"value0" = "value1"} .Example -$inputObject = Get-AzDnsForwardingRulesetForwardingRule -ResourceGroupName powershell-test-rg -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -Update-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject -Metadata @{"value0" = "value1"} +$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Tag @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -4157,37 +7977,37 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. - -TARGETDNSSERVER : DNS servers to forward the DNS query to. - IPAddress : DNS server IP address. - [Port ]: DNS server port. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetforwardingrule +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverinboundendpoint #> -function Update-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] +function Update-AzDnsResolverInboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, + # The name of the DNS resolver. + ${DnsResolverName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('ForwardingRuleName')] + [Alias('InboundEndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the forwarding rule. + # The name of the inbound endpoint for the DNS resolver. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4202,6 +8022,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -4219,27 +8040,12 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState])] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState] - # The state of forwarding rule. - ${ForwardingRuleState}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags]))] [System.Collections.Hashtable] - # Metadata attached to the forwarding rule. - ${Metadata}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]] - # DNS servers to forward the DNS query to. - # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. - ${TargetDnsServer}, + # Tags for inbound endpoint. + ${Tag}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -4250,6 +8056,12 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -4270,6 +8082,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -4316,8 +8134,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -4380,19 +8198,19 @@ end { <# .Synopsis -Updates a virtual network link to a DNS forwarding ruleset. +Updates an outbound endpoint for a DNS resolver. .Description -Updates a virtual network link to a DNS forwarding ruleset. +Updates an outbound endpoint for a DNS resolver. .Example -Update-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName sampleDnsForwardingRuleset -Name sampleVnetLink -Metadata @{"value0" = "value1"} +Update-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Tag @{"value0" = "value1"} .Example -$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg -Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject -Metadata @{"value0" = "value1"} +$inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup +Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -4400,33 +8218,37 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetvirtualnetworklink +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolveroutboundendpoint #> -function Update-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] +function Update-AzDnsResolverOutboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, + # The name of the DNS resolver. + ${DnsResolverName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('VirtualNetworkLinkName')] + [Alias('OutboundEndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the virtual network link. + # The name of the outbound endpoint for the DNS resolver. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4441,6 +8263,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -4460,10 +8283,10 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags]))] [System.Collections.Hashtable] - # Metadata attached to the virtual network link. - ${Metadata}, + # Tags for outbound endpoint. + ${Tag}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -4552,8 +8375,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -4616,50 +8439,59 @@ end { <# .Synopsis -Updates a DNS forwarding ruleset. +Updates a DNS security rule. .Description -Updates a DNS forwarding ruleset. +Updates a DNS security rule. .Example -Update-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Tag @{"key0" = "value0"} +{{ Add code here }} .Example -$inputObject = Get-AzDnsForwardingRuleset -ResourceGroupName powershell-test-rg -Name dnsForwardingRuleset -Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0"} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -DNSRESOLVEROUTBOUNDENDPOINT : The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. +DNSRESOLVERDOMAINLIST : DNS resolver policy domains lists that the DNS security rule applies to. Id : Resource ID. INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingruleset +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicydnssecurityrule #> -function Update-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] +function Update-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('DnsForwardingRulesetName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4674,6 +8506,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -4691,19 +8524,46 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode] + # The response code for block actions. + ${ActionBlockResponseCode}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType] + # The type of action to take. + ${ActionType}, + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]] - # The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. - # To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. - ${DnsResolverOutboundEndpoint}, + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] + # DNS resolver policy domains lists that the DNS security rule applies to. + # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + ${DnsResolverDomainList}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState] + # The state of DNS security rule. + ${DnsSecurityRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.Int32] + # The priority of the DNS security rule. + ${Priority}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags]))] [System.Collections.Hashtable] - # Tags for DNS Resolver. + # Tags for DNS security rule. ${Tag}, [Parameter()] @@ -4793,8 +8653,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -4857,19 +8717,18 @@ end { <# .Synopsis -Updates an inbound endpoint for a DNS resolver. +Updates a DNS resolver policy virtual network link. .Description -Updates an inbound endpoint for a DNS resolver. +Updates a DNS resolver policy virtual network link. .Example -Update-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Tag @{"value0" = "value1"} +{{ Add code here }} .Example -$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Tag @{"value0" = "value1"} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -4877,33 +8736,37 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverinboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicyvirtualnetworklink #> -function Update-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] +function Update-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('InboundEndpointName')] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the inbound endpoint for the DNS resolver. + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4918,6 +8781,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -4937,9 +8801,9 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags]))] [System.Collections.Hashtable] - # Tags for inbound endpoint. + # Tags for the DNS resolver policy virtual network link. ${Tag}, [Parameter()] @@ -5029,8 +8893,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -5093,19 +8957,18 @@ end { <# .Synopsis -Updates an outbound endpoint for a DNS resolver. +Updates a DNS resolver policy. .Description -Updates an outbound endpoint for a DNS resolver. +Updates a DNS resolver policy. .Example -Update-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Tag @{"value0" = "value1"} +{{ Add code here }} .Example -$inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = "value1"} +{{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -5113,33 +8976,31 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolveroutboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicy #> -function Update-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] +function Update-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsResolverPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('OutboundEndpointName')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the outbound endpoint for the DNS resolver. + # The name of the DNS resolver policy. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -5154,6 +9015,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -5173,9 +9035,9 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags]))] [System.Collections.Hashtable] - # Tags for outbound endpoint. + # Tags for DNS resolver policy. ${Tag}, [Parameter()] @@ -5265,8 +9127,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicy_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicy_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -5341,7 +9203,7 @@ Update-AzDnsResolver -InputObject $dnsResolverObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver .Notes COMPLEX PARAMETER PROPERTIES @@ -5349,20 +9211,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolver #> function Update-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -5384,6 +9250,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -5403,7 +9270,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, @@ -5566,12 +9433,12 @@ Create a in-memory object for IPConfiguration New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 1.1.2.12 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44yqt9mb/subnets/pssubnetname44c6v0lr .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject #> function New-AzDnsResolverIPConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -5680,12 +9547,12 @@ Create a in-memory object for Target DNS server New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject #> function New-AzDnsResolverTargetDnsServerObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 index 3bfce6f3e85b..a2187c352f03 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -40,13 +32,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -75,6 +71,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 index 9fa397cacdd5..5a6128b5d094 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -39,13 +31,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -80,6 +76,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index ee66786b14ed..20ff767cc056 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -38,13 +30,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -79,6 +75,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 index 289287c55f94..292b59285d9b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -38,13 +30,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -73,6 +69,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverDomainList.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverDomainList.ps1 new file mode 100644 index 000000000000..20e9bbc8909c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverDomainList.ps1 @@ -0,0 +1,242 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. +.Description +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist +#> +function Remove-AzDnsResolverDomainList { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverDomainList_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverDomainList_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 index 807da85fa2f7..79701ab35e07 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -39,13 +31,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -80,6 +76,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 index ef15918cee79..6dbecd33256b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -38,13 +30,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -79,6 +75,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicy.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicy.ps1 new file mode 100644 index 000000000000..c5b3327d7608 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicy.ps1 @@ -0,0 +1,242 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. +.Description +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy +#> +function Remove-AzDnsResolverPolicy { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicy_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicy_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.ps1 new file mode 100644 index 000000000000..a5a2858c8c3d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -0,0 +1,248 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. +.Description +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule +#> +function Remove-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyDnsSecurityRule_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.ps1 new file mode 100644 index 000000000000..5b09c7122c30 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -0,0 +1,248 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. +.Description +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink +#> +function Remove-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyVirtualNetworkLink_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 index f31392079fde..98e036d71431 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -28,7 +20,7 @@ Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -39,20 +31,24 @@ DNSRESOLVEROUTBOUNDENDPOINT : The reference to the DNS resolver INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingruleset #> function Update-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -74,6 +70,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -94,14 +91,14 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] # The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. # To construct, see NOTES section for DNSRESOLVEROUTBOUNDENDPOINT properties and create a hash table. ${DnsResolverOutboundEndpoint}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 index 9a565c97de4a..feb6a68e3dd7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -28,7 +20,7 @@ Update-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject -Metadata .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -36,13 +28,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. @@ -53,7 +49,7 @@ TARGETDNSSERVER : DNS servers to forward the DNS query to. https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetforwardingrule #> function Update-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -81,6 +77,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -107,7 +104,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, @@ -115,7 +112,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]] # DNS servers to forward the DNS query to. # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ${TargetDnsServer}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index b55ef9c47594..9ae477003765 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -28,7 +20,7 @@ Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject -Metad .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -36,20 +28,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetvirtualnetworklink #> function Update-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -77,6 +73,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -96,7 +93,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 index cb0958581a5d..f96ac17e8891 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -28,7 +20,7 @@ Update-AzDnsResolver -InputObject $dnsResolverObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver .Notes COMPLEX PARAMETER PROPERTIES @@ -36,20 +28,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolver #> function Update-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -71,6 +67,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -90,7 +87,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverDomainList.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverDomainList.ps1 new file mode 100644 index 000000000000..a8618be6efa5 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverDomainList.ps1 @@ -0,0 +1,248 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a DNS resolver domain list. +.Description +Updates a DNS resolver domain list. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverdomainlist +#> +function Update-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String[]] + # The domains in the domain list. + ${Domain}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags]))] + [System.Collections.Hashtable] + # Tags for DNS resolver domain list. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverDomainList_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverDomainList_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 index b43c6ee7be0f..5172a069790c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -28,7 +20,7 @@ Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Tag @{"value0" = .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -36,20 +28,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverinboundendpoint #> function Update-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -77,6 +73,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -96,7 +93,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for inbound endpoint. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 index 2ecc78ac494d..e641a2fe3c42 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 @@ -1,17 +1,9 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# @@ -28,7 +20,7 @@ Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -36,20 +28,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolveroutboundendpoint #> function Update-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -77,6 +73,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -96,7 +93,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for outbound endpoint. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicy.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicy.ps1 new file mode 100644 index 000000000000..2c9da4ec3990 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicy.ps1 @@ -0,0 +1,241 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a DNS resolver policy. +.Description +Updates a DNS resolver policy. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicy +#> +function Update-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags]))] + [System.Collections.Hashtable] + # Tags for DNS resolver policy. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicy_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicy_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyDnsSecurityRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyDnsSecurityRule.ps1 new file mode 100644 index 000000000000..5efb67026f5b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -0,0 +1,285 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a DNS security rule. +.Description +Updates a DNS security rule. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +DNSRESOLVERDOMAINLIST : DNS resolver policy domains lists that the DNS security rule applies to. + Id : Resource ID. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicydnssecurityrule +#> +function Update-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode] + # The response code for block actions. + ${ActionBlockResponseCode}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType] + # The type of action to take. + ${ActionType}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] + # DNS resolver policy domains lists that the DNS security rule applies to. + # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + ${DnsResolverDomainList}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState] + # The state of DNS security rule. + ${DnsSecurityRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.Int32] + # The priority of the DNS security rule. + ${Priority}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags]))] + [System.Collections.Hashtable] + # Tags for DNS security rule. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.ps1 new file mode 100644 index 000000000000..ad5826c8ecd2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -0,0 +1,247 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a DNS resolver policy virtual network link. +.Description +Updates a DNS resolver policy virtual network link. +.Example +{{ Add code here }} +.Example +{{ Add code here }} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicyvirtualnetworklink +#> +function Update-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags]))] + [System.Collections.Hashtable] + # Tags for the DNS resolver policy virtual network link. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/DnsResolver/DnsResolver.Autorest/generate-help.ps1 b/src/DnsResolver/DnsResolver.Autorest/generate-help.ps1 index 20c5f260fc40..bbbf594f7244 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generate-help.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/generate-help.ps1 @@ -1,16 +1,8 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- param([switch]$Isolated) $ErrorActionPreference = 'Stop' diff --git a/src/DnsResolver/DnsResolver.Autorest/generate-info.json b/src/DnsResolver/DnsResolver.Autorest/generate-info.json deleted file mode 100644 index 0eb05902ead3..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/generate-info.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "swagger_commit": "8e4e3058fe99ad60910be23703914bb900b39216", - "node": "v14.15.5", - "autorest": "`-- (empty)", - "autorest_core": "3.8.4", - "autorest_modelerfour": "4.15.414", - "autorest_powershell": "3.0.492" -} diff --git a/src/DnsResolver/DnsResolver.Autorest/generate-portal-ux.ps1 b/src/DnsResolver/DnsResolver.Autorest/generate-portal-ux.ps1 index 25c9633279ba..38959a330d9f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generate-portal-ux.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/generate-portal-ux.ps1 @@ -1,16 +1,8 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # # This Script will create a folder dedicated to Azure-specific content and includes metadata files essential for enhancing the user experience (UX) within the Azure portal. # These files are utilized by the Azure portal to effectively present the usage of cmdlets related to specific resources on portal pages. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs index 541e075eace3..225c5d6ba328 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs @@ -15,7 +15,7 @@ public partial class DnsResolver { /// Creates or updates a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -31,9 +31,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -91,9 +91,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -158,7 +158,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -275,13 +275,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -300,7 +300,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -312,12 +312,12 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -333,7 +333,7 @@ public partial class DnsResolver /// Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will /// be deleted. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -347,9 +347,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -400,9 +400,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -460,7 +460,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -590,7 +590,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -609,7 +609,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -623,7 +623,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -633,7 +633,7 @@ public partial class DnsResolver } /// Gets a DNS forwarding ruleset properties. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// a delegate that is called when the remote service returns 200 (OK). @@ -644,9 +644,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -685,9 +685,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -738,7 +738,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -756,13 +756,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -781,7 +781,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// an instance that will receive events. @@ -793,7 +793,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -802,7 +802,7 @@ public partial class DnsResolver } /// Lists DNS forwarding rulesets in all resource groups of a subscription. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -812,9 +812,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -843,7 +843,7 @@ public partial class DnsResolver } /// Lists DNS forwarding rulesets within a resource group. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). @@ -854,9 +854,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -897,9 +897,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -952,7 +952,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -970,13 +970,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -995,7 +995,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, /// but you will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The maximum number of results to return. If not specified, returns up to 100 results. /// an instance that will receive events. @@ -1007,7 +1007,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -1015,7 +1015,7 @@ public partial class DnsResolver } /// Lists DNS forwarding ruleset resource IDs attached to a virtual network. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the virtual network. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -1027,9 +1027,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1072,9 +1072,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetworkViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetworkViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1130,7 +1130,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1148,13 +1148,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1173,7 +1173,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, /// but you will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the virtual network. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -1186,7 +1186,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -1205,9 +1205,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1255,7 +1255,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1273,13 +1273,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1298,7 +1298,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The maximum number of results to return. If not specified, returns up to 100 results. /// an instance that will receive events. /// @@ -1309,12 +1309,12 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); } } /// Updates a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -1328,9 +1328,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1382,9 +1382,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1445,7 +1445,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1562,13 +1562,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1587,7 +1587,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -1597,12 +1597,12 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -1613,10 +1613,10 @@ public partial class DnsResolver } } - /// Creates or updates a DNS resolver. - /// The ID of the target subscription. + /// Creates or updates a DNS resolver domain list. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. @@ -1630,9 +1630,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1642,8 +1642,8 @@ public partial class DnsResolver + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/dnsResolvers/" - + global::System.Uri.EscapeDataString(dnsResolverName) + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + global::System.Uri.EscapeDataString(dnsResolverDomainListName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1671,11 +1671,11 @@ public partial class DnsResolver request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Creates or updates a DNS resolver. + /// Creates or updates a DNS resolver domain list. /// /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. @@ -1690,32 +1690,32 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var dnsResolverName = _match.Groups["dnsResolverName"].Value; + var dnsResolverDomainListName = _match.Groups["dnsResolverDomainListName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Network/dnsResolvers/" - + dnsResolverName + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + dnsResolverDomainListName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1743,11 +1743,13 @@ public partial class DnsResolver request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1757,7 +1759,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1874,13 +1876,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1896,12 +1898,12 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. @@ -1911,16 +1913,19 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(dnsResolverDomainListName),dnsResolverDomainListName); + await eventListener.AssertMinimumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,80); + await eventListener.AssertRegEx(nameof(dnsResolverDomainListName),dnsResolverDomainListName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); await eventListener.AssertNotNull(nameof(ifNoneMatch),ifNoneMatch); await eventListener.AssertNotNull(nameof(body), body); @@ -1928,13 +1933,12 @@ public partial class DnsResolver } } - /// Deletes a DNS resolver. WARNING: This operation cannot be undone. - /// The ID of the target subscription. + /// Deletes a DNS resolver domain list. WARNING: This operation cannot be undone. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1943,9 +1947,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsDelete(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1955,8 +1959,8 @@ public partial class DnsResolver + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/dnsResolvers/" - + global::System.Uri.EscapeDataString(dnsResolverName) + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + global::System.Uri.EscapeDataString(dnsResolverDomainListName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1976,15 +1980,14 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.DnsResolverDomainListsDelete_Call(request,onNoContent,onDefault,eventListener,sender); } } - /// Deletes a DNS resolver. WARNING: This operation cannot be undone. + /// Deletes a DNS resolver domain list. WARNING: This operation cannot be undone. /// /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1993,32 +1996,32 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var dnsResolverName = _match.Groups["dnsResolverName"].Value; + var dnsResolverDomainListName = _match.Groups["dnsResolverDomainListName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Network/dnsResolvers/" - + dnsResolverName + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + dnsResolverDomainListName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2038,13 +2041,12 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.DnsResolverDomainListsDelete_Call(request,onNoContent,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2053,7 +2055,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2168,12 +2170,6 @@ public partial class DnsResolver switch ( _response.StatusCode ) { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } case global::System.Net.HttpStatusCode.NoContent: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2183,7 +2179,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2199,36 +2195,39 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(dnsResolverDomainListName),dnsResolverDomainListName); + await eventListener.AssertMinimumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,80); + await eventListener.AssertRegEx(nameof(dnsResolverDomainListName),dnsResolverDomainListName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); } } - /// Gets properties of a DNS resolver. - /// The ID of the target subscription. + /// Gets properties of a DNS resolver domain list. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2237,9 +2236,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversGet(string subscriptionId, string resourceGroupName, string dnsResolverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsGet(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2249,8 +2248,8 @@ public partial class DnsResolver + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/dnsResolvers/" - + global::System.Uri.EscapeDataString(dnsResolverName) + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + global::System.Uri.EscapeDataString(dnsResolverDomainListName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2264,11 +2263,11 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversGet_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets properties of a DNS resolver. + /// Gets properties of a DNS resolver domain list. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2278,32 +2277,32 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var dnsResolverName = _match.Groups["dnsResolverName"].Value; + var dnsResolverDomainListName = _match.Groups["dnsResolverDomainListName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Network/dnsResolvers/" - + dnsResolverName + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + dnsResolverDomainListName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2317,11 +2316,11 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversGet_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2331,7 +2330,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2349,13 +2348,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2371,31 +2370,34 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(dnsResolverDomainListName),dnsResolverDomainListName); + await eventListener.AssertMinimumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,80); + await eventListener.AssertRegEx(nameof(dnsResolverDomainListName),dnsResolverDomainListName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); } } - /// Lists DNS resolvers in all resource groups of a subscription. - /// The ID of the target subscription. + /// Lists DNS resolver domain lists in all resource groups of a subscription. + /// The ID of the target subscription. The value must be an UUID. /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2405,9 +2407,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2415,7 +2417,7 @@ public partial class DnsResolver var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/dnsResolvers" + + "/providers/Microsoft.Network/dnsResolverDomainLists" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" @@ -2431,12 +2433,12 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversList_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsList_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists DNS resolvers within a resource group. - /// The ID of the target subscription. + /// Lists DNS resolver domain lists within a resource group. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). @@ -2447,9 +2449,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2459,7 +2461,7 @@ public partial class DnsResolver + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/dnsResolvers" + + "/providers/Microsoft.Network/dnsResolverDomainLists" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" @@ -2475,11 +2477,11 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists DNS resolvers within a resource group. + /// Lists DNS resolver domain lists within a resource group. /// /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). @@ -2490,18 +2492,18 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists'"); } // replace URI parameters with values from identity @@ -2513,7 +2515,7 @@ public partial class DnsResolver + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Network/dnsResolvers" + + "/providers/Microsoft.Network/dnsResolverDomainLists" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" @@ -2529,11 +2531,13 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2543,7 +2547,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2561,13 +2565,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2583,76 +2587,29 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The maximum number of results to return. If not specified, returns up to 100 results. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); } } - /// Lists DNS resolver resource IDs linked to a virtual network. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the virtual network. - /// The maximum number of results to return. If not specified, returns up to 100 results. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) - { - var apiVersion = @"2022-07-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/virtualNetworks/" - + global::System.Uri.EscapeDataString(virtualNetworkName) - + "/listDnsResolvers" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.DnsResolversListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// Lists DNS resolver resource IDs linked to a virtual network. + /// Lists DNS resolver domain lists in all resource groups of a subscription. /// /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). @@ -2663,33 +2620,27 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetworkViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/virtualNetworks/(?[^/]+)/listDnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverDomainLists'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var virtualNetworkName = _match.Groups["virtualNetworkName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/virtualNetworks/" - + virtualNetworkName - + "/listDnsResolvers" + + "/providers/Microsoft.Network/dnsResolverDomainLists" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" @@ -2700,16 +2651,16 @@ public partial class DnsResolver // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsList_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2719,7 +2670,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2737,13 +2688,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2759,33 +2710,85 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the virtual network. + /// The ID of the target subscription. The value must be an UUID. /// The maximum number of results to return. If not specified, returns up to 100 results. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork_Validate(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsList_Validate(string subscriptionId, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(virtualNetworkName),virtualNetworkName); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); } } - /// Lists DNS resolvers in all resource groups of a subscription. + /// Updates a DNS resolver domain list. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver domain list. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + global::System.Uri.EscapeDataString(dnsResolverDomainListName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverDomainListsUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Updates a DNS resolver domain list. /// - /// The maximum number of results to return. If not specified, returns up to 100 results. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2794,47 +2797,60 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/dnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverDomainListName = _match.Groups["dnsResolverDomainListName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.Network/dnsResolvers" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + dnsResolverDomainListName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversList_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2844,7 +2860,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2855,21 +2871,5451 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver domain list. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverDomainListName),dnsResolverDomainListName); + await eventListener.AssertMinimumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,80); + await eventListener.AssertRegEx(nameof(dnsResolverDomainListName),dnsResolverDomainListName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Creates or updates a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates a DNS resolver policy. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(ifNoneMatch),ifNoneMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes a DNS resolver policy. WARNING: This operation cannot be undone. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + } + } + + /// Gets properties of a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets properties of a DNS resolver policy. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + } + } + + /// Lists DNS resolver policies in all resource groups of a subscription. + /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/dnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolver policies within a resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolver policies within a resource group. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + } + } + + /// Lists DNS resolver policy resource IDs linked to a virtual network. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the virtual network. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/virtualNetworks/" + + global::System.Uri.EscapeDataString(virtualNetworkName) + + "/listDnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolver policy resource IDs linked to a virtual network. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetworkViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/virtualNetworks/(?[^/]+)/listDnsResolverPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolverPolicies'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var virtualNetworkName = _match.Groups["virtualNetworkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/virtualNetworks/" + + virtualNetworkName + + "/listDnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the virtual network. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetwork_Validate(string subscriptionId, string resourceGroupName, string virtualNetworkName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(virtualNetworkName),virtualNetworkName); + await eventListener.AssertMinimumLength(nameof(virtualNetworkName),virtualNetworkName,1); + + await eventListener.AssertRegEx(nameof(virtualNetworkName),virtualNetworkName,@"^.+$"); + } + } + + /// Lists DNS resolver policies in all resource groups of a subscription. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverPolicies'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/dnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesList_Validate(string subscriptionId, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + } + } + + /// Updates a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Updates a DNS resolver policy. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Creates or updates a DNS resolver policy virtual network link. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/virtualNetworkLinks/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyVirtualNetworkLinkName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates a DNS resolver policy virtual network link. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/virtualNetworkLinks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsResolverPolicyVirtualNetworkLinkName = _match.Groups["dnsResolverPolicyVirtualNetworkLinkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/virtualNetworkLinks/" + + dnsResolverPolicyVirtualNetworkLinkName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual + /// call, but you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(ifNoneMatch),ifNoneMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/virtualNetworkLinks/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyVirtualNetworkLinkName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// + /// Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone. + /// + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/virtualNetworkLinks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsResolverPolicyVirtualNetworkLinkName = _match.Groups["dnsResolverPolicyVirtualNetworkLinkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/virtualNetworkLinks/" + + dnsResolverPolicyVirtualNetworkLinkName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + } + } + + /// Gets properties of a DNS resolver policy virtual network link. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/virtualNetworkLinks/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyVirtualNetworkLinkName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets properties of a DNS resolver policy virtual network link. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/virtualNetworkLinks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsResolverPolicyVirtualNetworkLinkName = _match.Groups["dnsResolverPolicyVirtualNetworkLinkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/virtualNetworkLinks/" + + dnsResolverPolicyVirtualNetworkLinkName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + } + } + + /// Lists DNS resolver policy virtual network links. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksList(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/virtualNetworkLinks" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolver policy virtual network links. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/virtualNetworkLinks$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/virtualNetworkLinks" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksList_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + } + } + + /// Updates a DNS resolver policy virtual network link. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/virtualNetworkLinks/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyVirtualNetworkLinkName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Updates a DNS resolver policy virtual network link. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/virtualNetworkLinks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsResolverPolicyVirtualNetworkLinkName = _match.Groups["dnsResolverPolicyVirtualNetworkLinkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/virtualNetworkLinks/" + + dnsResolverPolicyVirtualNetworkLinkName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Creates or updates a DNS resolver. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolvers/" + + global::System.Uri.EscapeDataString(dnsResolverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates a DNS resolver. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverName = _match.Groups["dnsResolverName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolvers/" + + dnsResolverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(ifNoneMatch),ifNoneMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes a DNS resolver. WARNING: This operation cannot be undone. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolvers/" + + global::System.Uri.EscapeDataString(dnsResolverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes a DNS resolver. WARNING: This operation cannot be undone. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverName = _match.Groups["dnsResolverName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolvers/" + + dnsResolverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + } + } + + /// Gets properties of a DNS resolver. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversGet(string subscriptionId, string resourceGroupName, string dnsResolverName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolvers/" + + global::System.Uri.EscapeDataString(dnsResolverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets properties of a DNS resolver. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverName = _match.Groups["dnsResolverName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolvers/" + + dnsResolverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + } + } + + /// Lists DNS resolvers in all resource groups of a subscription. + /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/dnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolvers within a resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolvers within a resource group. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + } + } + + /// Lists DNS resolver resource IDs linked to a virtual network. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the virtual network. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/virtualNetworks/" + + global::System.Uri.EscapeDataString(virtualNetworkName) + + "/listDnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolver resource IDs linked to a virtual network. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetworkViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/virtualNetworks/(?[^/]+)/listDnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var virtualNetworkName = _match.Groups["virtualNetworkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/virtualNetworks/" + + virtualNetworkName + + "/listDnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the virtual network. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork_Validate(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(virtualNetworkName),virtualNetworkName); + } + } + + /// Lists DNS resolvers in all resource groups of a subscription. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/dnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/dnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversList_Validate(string subscriptionId, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + } + } + + /// Updates a DNS resolver. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolvers/" + + global::System.Uri.EscapeDataString(dnsResolverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Updates a DNS resolver. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolversUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverName = _match.Groups["dnsResolverName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolvers/" + + dnsResolverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Creates or updates a DNS security rule for a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/dnsSecurityRules/" + + global::System.Uri.EscapeDataString(dnsSecurityRuleName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates a DNS security rule for a DNS resolver policy. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/dnsSecurityRules/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsSecurityRuleName = _match.Groups["dnsSecurityRuleName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/dnsSecurityRules/" + + dnsSecurityRuleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsSecurityRuleName),dnsSecurityRuleName); + await eventListener.AssertMinimumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,1); + await eventListener.AssertMaximumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,80); + await eventListener.AssertRegEx(nameof(dnsSecurityRuleName),dnsSecurityRuleName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(ifNoneMatch),ifNoneMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/dnsSecurityRules/" + + global::System.Uri.EscapeDataString(dnsSecurityRuleName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// + /// Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/dnsSecurityRules/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsSecurityRuleName = _match.Groups["dnsSecurityRuleName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/dnsSecurityRules/" + + dnsSecurityRuleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsSecurityRuleName),dnsSecurityRuleName); + await eventListener.AssertMinimumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,1); + await eventListener.AssertMaximumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,80); + await eventListener.AssertRegEx(nameof(dnsSecurityRuleName),dnsSecurityRuleName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + } + } + + /// Gets properties of a DNS security rule for a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/dnsSecurityRules/" + + global::System.Uri.EscapeDataString(dnsSecurityRuleName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets properties of a DNS security rule for a DNS resolver policy. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/dnsSecurityRules/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsSecurityRuleName = _match.Groups["dnsSecurityRuleName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/dnsSecurityRules/" + + dnsSecurityRuleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } } } @@ -2884,28 +8330,223 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsSecurityRuleName),dnsSecurityRuleName); + await eventListener.AssertMinimumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,1); + await eventListener.AssertMaximumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,80); + await eventListener.AssertRegEx(nameof(dnsSecurityRuleName),dnsSecurityRuleName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + } + } + + /// Lists DNS security rules for a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversList_Validate(string subscriptionId, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + public async global::System.Threading.Tasks.Task DnsSecurityRulesList(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/dnsSecurityRules" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS security rules for a DNS resolver policy. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/dnsSecurityRules$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/dnsSecurityRules" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesList_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); } } - /// Updates a DNS resolver. - /// The ID of the target subscription. + /// Updates a DNS security rule. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. /// Parameters supplied to the Update operation. @@ -2917,9 +8558,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2929,8 +8570,10 @@ public partial class DnsResolver + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/dnsResolvers/" - + global::System.Uri.EscapeDataString(dnsResolverName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/dnsSecurityRules/" + + global::System.Uri.EscapeDataString(dnsSecurityRuleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2954,11 +8597,11 @@ public partial class DnsResolver request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsSecurityRulesUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Updates a DNS resolver. + /// Updates a DNS security rule. /// /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. @@ -2971,32 +8614,35 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DnsResolversUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DnsSecurityRulesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/dnsSecurityRules/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var dnsResolverName = _match.Groups["dnsResolverName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsSecurityRuleName = _match.Groups["dnsSecurityRuleName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Network/dnsResolvers/" - + dnsResolverName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/dnsSecurityRules/" + + dnsSecurityRuleName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3020,11 +8666,11 @@ public partial class DnsResolver request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsSecurityRulesUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3034,7 +8680,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DnsSecurityRulesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3151,13 +8797,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3173,12 +8819,13 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. /// Parameters supplied to the Update operation. @@ -3186,16 +8833,23 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsSecurityRulesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsSecurityRuleName),dnsSecurityRuleName); + await eventListener.AssertMinimumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,1); + await eventListener.AssertMaximumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,80); + await eventListener.AssertRegEx(nameof(dnsSecurityRuleName),dnsSecurityRuleName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -3203,7 +8857,7 @@ public partial class DnsResolver } /// Creates or updates a forwarding rule in a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3221,9 +8875,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3284,9 +8938,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3355,7 +9009,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3373,19 +9027,19 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } case global::System.Net.HttpStatusCode.Created: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onCreated(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onCreated(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3404,7 +9058,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3417,12 +9071,12 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -3438,7 +9092,7 @@ public partial class DnsResolver /// /// Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3453,9 +9107,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3507,9 +9161,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3570,7 +9224,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ForwardingRulesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3600,7 +9254,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3619,7 +9273,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3634,7 +9288,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -3645,7 +9299,7 @@ public partial class DnsResolver } /// Gets properties of a forwarding rule in a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3657,9 +9311,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3700,9 +9354,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3756,7 +9410,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ForwardingRulesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3774,13 +9428,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3799,7 +9453,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3812,7 +9466,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -3822,7 +9476,7 @@ public partial class DnsResolver } /// Lists forwarding rules in a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -3834,9 +9488,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesList(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesList(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3879,9 +9533,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3935,7 +9589,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ForwardingRulesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3953,13 +9607,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3978,7 +9632,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -3991,7 +9645,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -4000,7 +9654,7 @@ public partial class DnsResolver } /// Updates a forwarding rule in a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -4015,9 +9669,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4071,9 +9725,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ForwardingRulesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ForwardingRulesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4137,7 +9791,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ForwardingRulesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4155,13 +9809,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4180,7 +9834,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -4191,12 +9845,12 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ForwardingRulesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ForwardingRulesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -4209,7 +9863,7 @@ public partial class DnsResolver } /// Creates or updates an inbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -4226,9 +9880,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4288,9 +9942,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4358,7 +10012,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4475,13 +10129,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4500,7 +10154,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -4513,12 +10167,12 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -4534,7 +10188,7 @@ public partial class DnsResolver /// /// Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -4549,9 +10203,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4603,9 +10257,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4666,7 +10320,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task InboundEndpointsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4796,7 +10450,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4815,7 +10469,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -4830,7 +10484,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -4841,7 +10495,7 @@ public partial class DnsResolver } /// Gets properties of an inbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -4853,9 +10507,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsGet(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsGet(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4896,9 +10550,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4952,7 +10606,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task InboundEndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4970,13 +10624,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4995,7 +10649,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -5008,7 +10662,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -5018,7 +10672,7 @@ public partial class DnsResolver } /// Lists inbound endpoints for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -5030,9 +10684,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsList(string subscriptionId, string resourceGroupName, string dnsResolverName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsList(string subscriptionId, string resourceGroupName, string dnsResolverName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5075,9 +10729,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5131,7 +10785,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task InboundEndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5149,13 +10803,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5174,7 +10828,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -5187,7 +10841,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -5196,7 +10850,7 @@ public partial class DnsResolver } /// Updates an inbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -5211,9 +10865,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5267,9 +10921,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task InboundEndpointsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task InboundEndpointsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5333,7 +10987,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task InboundEndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5450,13 +11104,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5475,7 +11129,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -5486,12 +11140,12 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task InboundEndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task InboundEndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -5504,7 +11158,7 @@ public partial class DnsResolver } /// Creates or updates an outbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -5521,9 +11175,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5583,9 +11237,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5653,7 +11307,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5770,13 +11424,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5795,7 +11449,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -5808,12 +11462,12 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -5829,7 +11483,7 @@ public partial class DnsResolver /// /// Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -5844,9 +11498,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsDelete(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5898,9 +11552,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5961,7 +11615,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OutboundEndpointsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6091,7 +11745,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6110,7 +11764,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -6125,7 +11779,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -6136,7 +11790,7 @@ public partial class DnsResolver } /// Gets properties of an outbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -6148,9 +11802,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsGet(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsGet(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6191,9 +11845,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6247,7 +11901,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OutboundEndpointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6265,13 +11919,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6290,7 +11944,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -6303,7 +11957,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -6313,7 +11967,7 @@ public partial class DnsResolver } /// Lists outbound endpoints for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -6325,9 +11979,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsList(string subscriptionId, string resourceGroupName, string dnsResolverName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsList(string subscriptionId, string resourceGroupName, string dnsResolverName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6370,9 +12024,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6426,7 +12080,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OutboundEndpointsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6444,13 +12098,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6469,7 +12123,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -6482,7 +12136,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -6491,7 +12145,7 @@ public partial class DnsResolver } /// Updates an outbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -6506,9 +12160,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6562,9 +12216,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OutboundEndpointsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OutboundEndpointsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6628,7 +12282,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OutboundEndpointsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6745,13 +12399,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6770,7 +12424,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -6781,12 +12435,12 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OutboundEndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task OutboundEndpointsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -6799,7 +12453,7 @@ public partial class DnsResolver } /// Creates or updates a virtual network link to a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -6816,9 +12470,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6878,9 +12532,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6948,7 +12602,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7065,13 +12719,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7090,7 +12744,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7103,12 +12757,12 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -7124,7 +12778,7 @@ public partial class DnsResolver /// /// Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7139,9 +12793,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksDelete(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7193,9 +12847,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7256,7 +12910,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7386,7 +13040,7 @@ public partial class DnsResolver default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7405,7 +13059,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7420,7 +13074,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -7431,7 +13085,7 @@ public partial class DnsResolver } /// Gets properties of a virtual network link to a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7443,9 +13097,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksGet(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7486,9 +13140,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7542,7 +13196,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7560,13 +13214,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7585,7 +13239,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7598,7 +13252,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -7608,7 +13262,7 @@ public partial class DnsResolver } /// Lists virtual network links to a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -7620,9 +13274,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksList(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksList(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7665,9 +13319,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7721,7 +13375,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7739,13 +13393,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7764,7 +13418,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -7777,7 +13431,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -7786,7 +13440,7 @@ public partial class DnsResolver } /// Updates a virtual network link to a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7801,9 +13455,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7857,9 +13511,9 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7923,7 +13577,7 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8040,13 +13694,13 @@ public partial class DnsResolver case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8065,7 +13719,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -8076,12 +13730,12 @@ public partial class DnsResolver /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.PowerShell.cs new file mode 100644 index 000000000000..c8ff3614a0ac --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.PowerShell.cs @@ -0,0 +1,136 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Any object + [System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))] + public partial class Any + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Any(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Any(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Any(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Any(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Any object + [System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))] + public partial interface IAny + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.TypeConverter.cs new file mode 100644 index 000000000000..374307953157 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.TypeConverter.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AnyTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Any.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Any.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Any.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.cs new file mode 100644 index 000000000000..cde3f00ccea8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Any object + public partial class Any : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAnyInternal + { + + /// Creates an new instance. + public Any() + { + + } + } + /// Any object + public partial interface IAny : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + + } + /// Any object + internal partial interface IAnyInternal + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.json.cs new file mode 100644 index 000000000000..b268c1e2e6b2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.json.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Any object + public partial class Any + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal Any(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new Any(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.cs deleted file mode 100644 index cf4fd778a2c8..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - - /// - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - /// - public partial class ProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResourceInternal, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(); - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public ProxyResource() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - public partial interface IProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource - { - - } - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - internal partial interface IProxyResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal - { - - } -} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.cs deleted file mode 100644 index 4be7039c99e2..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - public partial class Resource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal - { - - /// Backing field for property. - private string _id; - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string Id { get => this._id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private string _type; - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public Resource() - { - - } - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - public partial interface IResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable - { - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of the resource", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - internal partial interface IResourceInternal - - { - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - string Id { get; set; } - /// The name of the resource - string Name { get; set; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.cs deleted file mode 100644 index 0b1e3c0dbce6..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - - /// - /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - /// - public partial class TrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(); - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; } - - /// Backing field for property. - private string _location; - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type = value; } - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTags()); set => this._tag = value; } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public TrackedResource() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - public partial interface ITrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource - { - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The geo-location where the resource lives", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get; set; } - - } - /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - internal partial interface ITrackedResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal - { - /// The geo-location where the resource lives - string Location { get; set; } - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.PowerShell.cs deleted file mode 100644 index 49614dee8ba0..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.PowerShell.cs +++ /dev/null @@ -1,272 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - - /// Describes a forwarding rule within a DNS forwarding ruleset. - [System.ComponentModel.TypeConverter(typeof(ForwardingRuleTypeConverter))] - public partial class ForwardingRule - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ForwardingRule(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ForwardingRule(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ForwardingRule(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.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("TargetDnsServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); - } - if (content.Contains("Metadata")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ForwardingRule(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.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("Etag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("DomainName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); - } - if (content.Contains("TargetDnsServer")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); - } - if (content.Contains("Metadata")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); - } - if (content.Contains("State")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - AfterDeserializePSObject(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Describes a forwarding rule within a DNS forwarding ruleset. - [System.ComponentModel.TypeConverter(typeof(ForwardingRuleTypeConverter))] - public partial interface IForwardingRule - - { - - } -} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.PowerShell.cs similarity index 65% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.PowerShell.cs index 1ba564f8ecf9..d983fac74b8a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CloudError partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,29 +70,29 @@ internal CloudError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBodyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBodyTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,49 +107,49 @@ internal CloudError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBodyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBodyTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudError(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudError(content); } @@ -159,7 +159,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.TypeConverter.cs index e952f014075a..07c2d3f09b87 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.cs similarity index 71% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.cs index c6c5637ac0bf..997e65074622 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.cs @@ -3,41 +3,41 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// An error message public partial class CloudError : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal { /// The error code [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Code = value ?? null; } /// Extra error information [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody _error; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody _error; /// The error message body [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody()); set => this._error = value; } /// A description of what caused the error [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Message = value ?? null; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody()); set { {_error = value;} } } /// The target resource of the error message [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Target = value ?? null; } /// Creates an new instance. public CloudError() @@ -63,8 +63,8 @@ public partial interface ICloudError : ReadOnly = false, Description = @"Extra error information", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[] Detail { get; set; } /// A description of what caused the error [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -90,9 +90,9 @@ internal partial interface ICloudErrorInternal /// The error code string Code { get; set; } /// Extra error information - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[] Detail { get; set; } /// The error message body - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody Error { get; set; } /// A description of what caused the error string Message { get; set; } /// The target resource of the error message diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.json.cs index aad9d6c763dd..75997964d9ce 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json. { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new CloudError(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.PowerShell.cs similarity index 68% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.PowerShell.cs index 3a5ed9dd9ed6..59eb652c57aa 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CloudErrorBody partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal CloudErrorBody(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,45 +103,45 @@ internal CloudErrorBody(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBodyTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudErrorBody(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudErrorBody(content); } @@ -151,7 +151,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.TypeConverter.cs index 584169d04d2d..06853e17eaf0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.cs index fbdd9631991e..ac78a544f678 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The body of an error message public partial class CloudErrorBody : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class CloudErrorBody : public string Code { get => this._code; set => this._code = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[] _detail; /// Extra error information [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } /// Backing field for property. private string _message; @@ -65,8 +65,8 @@ public partial interface ICloudErrorBody : ReadOnly = false, Description = @"Extra error information", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[] Detail { get; set; } /// A description of what caused the error [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -92,7 +92,7 @@ internal partial interface ICloudErrorBodyInternal /// The error code string Code { get; set; } /// Extra error information - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[] Detail { get; set; } /// A description of what caused the error string Message { get; set; } /// The target resource of the error message diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.json.cs similarity index 92% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.json.cs index 630f8eedf1f2..92ad94c7ef9b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -68,18 +68,18 @@ internal CloudErrorBody(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.J {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new CloudErrorBody(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.PowerShell.cs similarity index 52% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.PowerShell.cs index d0be054420a2..8272541e63ab 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsForwardingRuleset partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsForwardingRuleset(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRuleset(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,77 +98,77 @@ internal DnsForwardingRuleset(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)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.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("DnsResolverOutboundEndpoint")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)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.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -181,71 +183,71 @@ internal DnsForwardingRuleset(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)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.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("DnsResolverOutboundEndpoint")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal)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.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -255,7 +257,7 @@ internal DnsForwardingRuleset(global::System.Management.Automation.PSObject cont /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.TypeConverter.cs index b15b7ec4c47f..71a99654eb95 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.cs similarity index 53% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.cs index 38a5da332b69..d4104c178873 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS forwarding ruleset. public partial class DnsForwardingRuleset : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint = value ; } /// Backing field for property. private string _etag; @@ -34,101 +34,100 @@ public partial class DnsForwardingRuleset : public string Etag { get => this._etag; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type = value; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties _property; /// Properties of the DNS forwarding ruleset. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetProperties()); set => this._property = value; } /// /// The current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this /// value will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; } /// The resourceGuid for the DNS forwarding ruleset. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public DnsForwardingRuleset() @@ -151,7 +150,7 @@ public DnsForwardingRuleset() /// Describes a DNS forwarding ruleset. public partial interface IDnsForwardingRuleset : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource { /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules @@ -162,8 +161,8 @@ public partial interface IDnsForwardingRuleset : ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// ETag of the DNS forwarding ruleset. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -191,69 +190,21 @@ public partial interface IDnsForwardingRuleset : SerializedName = @"resourceGuid", PossibleTypes = new [] { typeof(string) })] string ResourceGuid { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } /// Describes a DNS forwarding ruleset. internal partial interface IDnsForwardingRulesetInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal { /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// ETag of the DNS forwarding ruleset. string Etag { get; set; } /// Properties of the DNS forwarding ruleset. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties Property { get; set; } /// /// The current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this /// value will be ignored. @@ -261,20 +212,6 @@ internal partial interface IDnsForwardingRulesetInternal : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// The resourceGuid for the DNS forwarding ruleset. string ResourceGuid { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.json.cs index f4e747055536..66d42f6ad6b2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,21 +65,20 @@ internal DnsForwardingRuleset(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Run { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsForwardingRuleset(json) : null; } @@ -106,10 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.PowerShell.cs index 3c5ca4ebceeb..4ebcfbfd96d8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsForwardingRulesetListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetListResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal DnsForwardingRulesetListResult(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,11 +123,11 @@ internal DnsForwardingRulesetListResult(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal DnsForwardingRulesetListResult(global::System.Management.Automation.PSO /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.TypeConverter.cs index 2431a5310cc8..6186ca8725db 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.cs similarity index 84% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.cs index 8631e480797e..416babf0a841 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The response to an enumeration operation on DNS forwarding rulesets. public partial class DnsForwardingRulesetListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -24,11 +24,11 @@ public partial class DnsForwardingRulesetListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset[] _value; /// Enumeration of the DNS forwarding rulesets. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DnsForwardingRulesetListResult() @@ -54,8 +54,8 @@ public partial interface IDnsForwardingRulesetListResult : ReadOnly = false, Description = @"Enumeration of the DNS forwarding rulesets.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset[] Value { get; set; } } /// The response to an enumeration operation on DNS forwarding rulesets. @@ -65,7 +65,7 @@ internal partial interface IDnsForwardingRulesetListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the DNS forwarding rulesets. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.json.cs index 77471a03c481..8fa78f6227dc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DnsForwardingRulesetListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsRe { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsForwardingRulesetListResult(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.PowerShell.cs similarity index 70% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.PowerShell.cs index a036f84c1895..ffa6ca940f9a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsForwardingRulesetPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetPatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal DnsForwardingRulesetPatch(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,11 +123,11 @@ internal DnsForwardingRulesetPatch(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal DnsForwardingRulesetPatch(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.TypeConverter.cs index 432ee51657c0..f91f9b7fd550 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.cs similarity index 77% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.cs index 38319d0a841f..63d93ca626c8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.cs @@ -3,32 +3,32 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS forwarding ruleset PATCH operation. public partial class DnsForwardingRulesetPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] _dnsResolverOutboundEndpoint; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] _dnsResolverOutboundEndpoint; /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get => this._dnsResolverOutboundEndpoint; set => this._dnsResolverOutboundEndpoint = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get => this._dnsResolverOutboundEndpoint; set => this._dnsResolverOutboundEndpoint = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags _tag; /// Tags for DNS Resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags()); set => this._tag = value; } /// Creates an new instance. public DnsForwardingRulesetPatch() @@ -49,16 +49,16 @@ public partial interface IDnsForwardingRulesetPatch : ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// Tags for DNS Resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags Tag { get; set; } } /// Describes a DNS forwarding ruleset PATCH operation. @@ -69,9 +69,9 @@ internal partial interface IDnsForwardingRulesetPatchInternal /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// Tags for DNS Resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.json.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.json.cs index e975c9db9beb..ae344b395ded 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DnsForwardingRulesetPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_dnsResolverOutboundEndpoint = If( json?.PropertyT("dnsResolverOutboundEndpoints"), out var __jsonDnsResolverOutboundEndpoints) ? If( __jsonDnsResolverOutboundEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__u) )) ))() : null : DnsResolverOutboundEndpoint;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags.FromJson(__jsonTags) : Tag;} + {_dnsResolverOutboundEndpoint = If( json?.PropertyT("dnsResolverOutboundEndpoints"), out var __jsonDnsResolverOutboundEndpoints) ? If( __jsonDnsResolverOutboundEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__u) )) ))() : null : DnsResolverOutboundEndpoint;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsForwardingRulesetPatch(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.PowerShell.cs similarity index 88% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.PowerShell.cs index d421fcab82ee..81480c081593 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsForwardingRulesetPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetPatchTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal DnsForwardingRulesetPatchTags(global::System.Collections.IDictionary co } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,7 +125,7 @@ internal DnsForwardingRulesetPatchTags(global::System.Management.Automation.PSOb /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.TypeConverter.cs index 434a9b7addbf..5a4b1855ca21 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.cs index 1b642db2d3e0..8893ff9757d4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for DNS Resolver. public partial class DnsForwardingRulesetPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.dictionary.cs index 8b0fc4ed4ac9..f8cd491a0ac0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.json.cs index e10a55364a9b..03cbb5de50e0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DnsForwardingRulesetPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsForwardingRulesetPatchTags(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.PowerShell.cs similarity index 67% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.PowerShell.cs index 5c57e01d2858..013dc88a695d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsForwardingRulesetProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,21 +98,21 @@ internal DnsForwardingRulesetProperties(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -127,15 +127,15 @@ internal DnsForwardingRulesetProperties(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -145,7 +145,7 @@ internal DnsForwardingRulesetProperties(global::System.Management.Automation.PSO /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.TypeConverter.cs index cd9cfa3e265d..69769848468d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.cs index 88fc573be22f..dbe124347d25 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.cs @@ -3,31 +3,31 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a DNS forwarding ruleset. public partial class DnsForwardingRulesetProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] _dnsResolverOutboundEndpoint; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] _dnsResolverOutboundEndpoint; /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get => this._dnsResolverOutboundEndpoint; set => this._dnsResolverOutboundEndpoint = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get => this._dnsResolverOutboundEndpoint; set => this._dnsResolverOutboundEndpoint = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -65,8 +65,8 @@ public partial interface IDnsForwardingRulesetProperties : ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// /// The current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this /// value will be ignored. @@ -96,7 +96,7 @@ internal partial interface IDnsForwardingRulesetPropertiesInternal /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// /// The current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this /// value will be ignored. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.json.cs similarity index 92% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.json.cs index cd0e889f8843..ff5140fc3946 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DnsForwardingRulesetProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsRe { return; } - {_dnsResolverOutboundEndpoint = If( json?.PropertyT("dnsResolverOutboundEndpoints"), out var __jsonDnsResolverOutboundEndpoints) ? If( __jsonDnsResolverOutboundEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__u) )) ))() : null : DnsResolverOutboundEndpoint;} + {_dnsResolverOutboundEndpoint = If( json?.PropertyT("dnsResolverOutboundEndpoints"), out var __jsonDnsResolverOutboundEndpoints) ? If( __jsonDnsResolverOutboundEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__u) )) ))() : null : DnsResolverOutboundEndpoint;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_resourceGuid = If( json?.PropertyT("resourceGuid"), out var __jsonResourceGuid) ? (string)__jsonResourceGuid : (string)ResourceGuid;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsForwardingRulesetProperties(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.PowerShell.cs similarity index 51% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.PowerShell.cs index 54b812707106..855289af297d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class DnsResolver partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolver(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolver(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,85 +96,85 @@ internal DnsResolver(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)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.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("VirtualNetwork")) + if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("State")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)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.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -189,79 +189,79 @@ internal DnsResolver(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)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.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("VirtualNetwork")) + if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("State")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)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.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -271,7 +271,7 @@ internal DnsResolver(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.TypeConverter.cs index 8ceec59ebfca..6083af843efb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.cs similarity index 54% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.cs index b4d8d1abee4b..6ab8a7d8a8ae 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver. public partial class DnsResolver : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); /// Backing field for property. private string _etag; @@ -27,117 +27,116 @@ public partial class DnsResolver : public string Etag { get => this._etag; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type = value; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for State - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).DnsResolverState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).DnsResolverState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState = value; } + + /// Internal Acessors for VirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).VirtualNetwork = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } - /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).VirtualNetwork = value; } + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties _property; /// Properties of the DNS resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverProperties()); set => this._property = value; } /// /// The current provisioning state of the DNS resolver. This is a read-only property and any attempt to set this value will /// be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).ProvisioningState; } /// The resourceGuid property of the DNS resolver resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).ResourceGuid; } /// /// The current status of the DNS resolver. This is a read-only property and any attempt to set this value will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).DnsResolverState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).VirtualNetworkId = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).VirtualNetworkId = value ; } /// Creates an new instance. public DnsResolver() @@ -160,7 +159,7 @@ public DnsResolver() /// Describes a DNS resolver. public partial interface IDnsResolver : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource { /// ETag of the DNS resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -199,54 +198,6 @@ public partial interface IDnsResolver : SerializedName = @"dnsResolverState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState) })] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? State { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, @@ -259,12 +210,12 @@ public partial interface IDnsResolver : } /// Describes a DNS resolver. internal partial interface IDnsResolverInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal { /// ETag of the DNS resolver. string Etag { get; set; } /// Properties of the DNS resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties Property { get; set; } /// /// The current provisioning state of the DNS resolver. This is a read-only property and any attempt to set this value will /// be ignored. @@ -276,22 +227,8 @@ internal partial interface IDnsResolverInternal : /// The current status of the DNS resolver. This is a read-only property and any attempt to set this value will be ignored. /// Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? State { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.json.cs index 13970e9573ac..bcc8678caf98 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,21 +65,20 @@ internal DnsResolver(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolver(json) : null; } @@ -106,10 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.PowerShell.cs new file mode 100644 index 000000000000..a436053758d1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.PowerShell.cs @@ -0,0 +1,274 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListTypeConverter))] + public partial class DnsResolverDomainList + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainList(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainList(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainList(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.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ResourceGuid, global::System.Convert.ToString); + } + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverDomainList(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.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ResourceGuid, global::System.Convert.ToString); + } + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListTypeConverter))] + public partial interface IDnsResolverDomainList + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.TypeConverter.cs new file mode 100644 index 000000000000..d10a4f7da6b2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainList.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainList.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.cs new file mode 100644 index 000000000000..1492a0ec176b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.cs @@ -0,0 +1,208 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver domain list. + public partial class DnsResolverDomainList : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string[] Domain { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).Domain = value ; } + + /// Backing field for property. + private string _etag; + + /// ETag of the DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for Etag + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal.Etag { get => this._etag; set { {_etag = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for ResourceGuid + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties _property; + + /// Properties of the DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties()); set => this._property = value; } + + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState; } + + /// The resourceGuid property of the DNS resolver domain list resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public DnsResolverDomainList() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Describes a DNS resolver domain list. + public partial interface IDnsResolverDomainList : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + { + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + string[] Domain { get; set; } + /// ETag of the DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ETag of the DNS resolver domain list.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// The resourceGuid property of the DNS resolver domain list resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resourceGuid property of the DNS resolver domain list resource.", + SerializedName = @"resourceGuid", + PossibleTypes = new [] { typeof(string) })] + string ResourceGuid { get; } + + } + /// Describes a DNS resolver domain list. + internal partial interface IDnsResolverDomainListInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + { + /// The domains in the domain list. + string[] Domain { get; set; } + /// ETag of the DNS resolver domain list. + string Etag { get; set; } + /// Properties of the DNS resolver domain list. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties Property { get; set; } + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The resourceGuid property of the DNS resolver domain list resource. + string ResourceGuid { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.json.cs new file mode 100644 index 000000000000..0e9123019d4b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.json.cs @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver domain list. + public partial class DnsResolverDomainList + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainList(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties.FromJson(__jsonProperties) : Property;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainList(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.PowerShell.cs new file mode 100644 index 000000000000..2228a08984bf --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.PowerShell.cs @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver domain list for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchTypeConverter))] + public partial class DnsResolverDomainListPatch + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListPatch(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListPatch(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListPatch(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.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverDomainListPatch(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.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a DNS resolver domain list for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchTypeConverter))] + public partial interface IDnsResolverDomainListPatch + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.TypeConverter.cs new file mode 100644 index 000000000000..6b31bec07af6 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListPatchTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListPatch.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatch.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatch.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.cs new file mode 100644 index 000000000000..5b3350545b78 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver domain list for PATCH operation. + public partial class DnsResolverDomainListPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal + { + + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string[] Domain { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)Property).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)Property).Domain = value ?? null /* arrayOf */; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties _property; + + /// Updatable properties of the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties()); set => this._property = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags _tag; + + /// Tags for DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags()); set => this._tag = value; } + + /// Creates an new instance. + public DnsResolverDomainListPatch() + { + + } + } + /// Describes a DNS resolver domain list for PATCH operation. + public partial interface IDnsResolverDomainListPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + string[] Domain { get; set; } + /// Tags for DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS resolver domain list.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags Tag { get; set; } + + } + /// Describes a DNS resolver domain list for PATCH operation. + internal partial interface IDnsResolverDomainListPatchInternal + + { + /// The domains in the domain list. + string[] Domain { get; set; } + /// Updatable properties of the DNS resolver policy virtual network link. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties Property { get; set; } + /// Tags for DNS resolver domain list. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.json.cs new file mode 100644 index 000000000000..f10d716ea2d8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver domain list for PATCH operation. + public partial class DnsResolverDomainListPatch + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainListPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListPatch(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.PowerShell.cs new file mode 100644 index 000000000000..f4836bce955b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.PowerShell.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Represents the updatable properties of a DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchPropertiesTypeConverter))] + public partial class DnsResolverDomainListPatchProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListPatchProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListPatchProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListPatchProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverDomainListPatchProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents the updatable properties of a DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchPropertiesTypeConverter))] + public partial interface IDnsResolverDomainListPatchProperties + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.TypeConverter.cs new file mode 100644 index 000000000000..8a03f61d7ba5 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.TypeConverter.cs @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListPatchPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListPatchProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatchProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatchProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.cs new file mode 100644 index 000000000000..b74eacf8fc7b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the updatable properties of a DNS resolver domain list. + public partial class DnsResolverDomainListPatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal + { + + /// Backing field for property. + private string[] _domain; + + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string[] Domain { get => this._domain; set => this._domain = value; } + + /// Creates an new instance. + public DnsResolverDomainListPatchProperties() + { + + } + } + /// Represents the updatable properties of a DNS resolver domain list. + public partial interface IDnsResolverDomainListPatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + string[] Domain { get; set; } + + } + /// Represents the updatable properties of a DNS resolver domain list. + internal partial interface IDnsResolverDomainListPatchPropertiesInternal + + { + /// The domains in the domain list. + string[] Domain { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.json.cs new file mode 100644 index 000000000000..4dfc5305a428 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.json.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the updatable properties of a DNS resolver domain list. + public partial class DnsResolverDomainListPatchProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainListPatchProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_domain = If( json?.PropertyT("domains"), out var __jsonDomains) ? If( __jsonDomains as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Domain;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListPatchProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._domain) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._domain ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("domains",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.PowerShell.cs new file mode 100644 index 000000000000..36257054914c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.PowerShell.cs @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Tags for DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchTagsTypeConverter))] + public partial class DnsResolverDomainListPatchTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListPatchTags(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListPatchTags(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListPatchTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverDomainListPatchTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Tags for DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchTagsTypeConverter))] + public partial interface IDnsResolverDomainListPatchTags + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.TypeConverter.cs new file mode 100644 index 000000000000..d725e07dc442 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListPatchTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListPatchTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatchTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatchTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.cs new file mode 100644 index 000000000000..3aae08de168b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS resolver domain list. + public partial class DnsResolverDomainListPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTagsInternal + { + + /// Creates an new instance. + public DnsResolverDomainListPatchTags() + { + + } + } + /// Tags for DNS resolver domain list. + public partial interface IDnsResolverDomainListPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + + } + /// Tags for DNS resolver domain list. + internal partial interface IDnsResolverDomainListPatchTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.dictionary.cs new file mode 100644 index 000000000000..9da0b63219b1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverDomainListPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.json.cs new file mode 100644 index 000000000000..dde26a675585 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.json.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS resolver domain list. + public partial class DnsResolverDomainListPatchTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + /// + internal DnsResolverDomainListPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListPatchTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.PowerShell.cs new file mode 100644 index 000000000000..f5e5fdf35567 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.PowerShell.cs @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Represents the properties of a DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPropertiesTypeConverter))] + public partial class DnsResolverDomainListProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverDomainListProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents the properties of a DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPropertiesTypeConverter))] + public partial interface IDnsResolverDomainListProperties + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.TypeConverter.cs new file mode 100644 index 000000000000..a1e5c50c0c51 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.cs new file mode 100644 index 000000000000..b84877f2a680 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver domain list. + public partial class DnsResolverDomainListProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal + { + + /// Backing field for property. + private string[] _domain; + + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string[] Domain { get => this._domain; set => this._domain = value; } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for ResourceGuid + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; + + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private string _resourceGuid; + + /// The resourceGuid property of the DNS resolver domain list resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string ResourceGuid { get => this._resourceGuid; } + + /// Creates an new instance. + public DnsResolverDomainListProperties() + { + + } + } + /// Represents the properties of a DNS resolver domain list. + public partial interface IDnsResolverDomainListProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + string[] Domain { get; set; } + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// The resourceGuid property of the DNS resolver domain list resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resourceGuid property of the DNS resolver domain list resource.", + SerializedName = @"resourceGuid", + PossibleTypes = new [] { typeof(string) })] + string ResourceGuid { get; } + + } + /// Represents the properties of a DNS resolver domain list. + internal partial interface IDnsResolverDomainListPropertiesInternal + + { + /// The domains in the domain list. + string[] Domain { get; set; } + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The resourceGuid property of the DNS resolver domain list resource. + string ResourceGuid { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.json.cs new file mode 100644 index 000000000000..2ca073bf520a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.json.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver domain list. + public partial class DnsResolverDomainListProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainListProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_domain = If( json?.PropertyT("domains"), out var __jsonDomains) ? If( __jsonDomains as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Domain;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_resourceGuid = If( json?.PropertyT("resourceGuid"), out var __jsonResourceGuid) ? (string)__jsonResourceGuid : (string)ResourceGuid;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._domain) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._domain ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("domains",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._resourceGuid)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._resourceGuid.ToString()) : null, "resourceGuid" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.PowerShell.cs new file mode 100644 index 000000000000..7573810a9d14 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// The response to an enumeration operation on DNS resolver domain lists. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListResultTypeConverter))] + public partial class DnsResolverDomainListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListResult(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.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverDomainListResult(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.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The response to an enumeration operation on DNS resolver domain lists. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListResultTypeConverter))] + public partial interface IDnsResolverDomainListResult + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.TypeConverter.cs new file mode 100644 index 000000000000..f69257129b6f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.cs new file mode 100644 index 000000000000..df209b98487b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The response to an enumeration operation on DNS resolver domain lists. + public partial class DnsResolverDomainListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[] _value; + + /// Enumeration of the DNS resolver domain lists. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public DnsResolverDomainListResult() + { + + } + } + /// The response to an enumeration operation on DNS resolver domain lists. + public partial interface IDnsResolverDomainListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The continuation token for the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Enumeration of the DNS resolver domain lists. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enumeration of the DNS resolver domain lists.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[] Value { get; set; } + + } + /// The response to an enumeration operation on DNS resolver domain lists. + internal partial interface IDnsResolverDomainListResultInternal + + { + /// The continuation token for the next page of results. + string NextLink { get; set; } + /// Enumeration of the DNS resolver domain lists. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.json.cs new file mode 100644 index 000000000000..0e8200162dd6 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.json.cs @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The response to an enumeration operation on DNS resolver domain lists. + public partial class DnsResolverDomainListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.PowerShell.cs index 18cec693e83a..00d293d48921 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverListResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +98,17 @@ internal DnsResolverListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -121,11 +123,11 @@ internal DnsResolverListResult(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +137,7 @@ internal DnsResolverListResult(global::System.Management.Automation.PSObject con /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.TypeConverter.cs index 63eb0be066b4..07ba9202b913 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.cs index ea4fb0d956b8..e62b5958f5f1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The response to an enumeration operation on DNS resolvers. public partial class DnsResolverListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -24,11 +24,11 @@ public partial class DnsResolverListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver[] _value; /// Enumeration of the DNS resolvers. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DnsResolverListResult() @@ -54,8 +54,8 @@ public partial interface IDnsResolverListResult : ReadOnly = false, Description = @"Enumeration of the DNS resolvers.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver[] Value { get; set; } } /// The response to an enumeration operation on DNS resolvers. @@ -65,7 +65,7 @@ internal partial interface IDnsResolverListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the DNS resolvers. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.json.cs index 413f92b82c23..85976111b1cc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DnsResolverListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverListResult(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.PowerShell.cs similarity index 80% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.PowerShell.cs index 55bdb0fe8dfb..c87ffcfbc02d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +98,13 @@ internal DnsResolverPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -117,7 +119,7 @@ internal DnsResolverPatch(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -127,7 +129,7 @@ internal DnsResolverPatch(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.TypeConverter.cs index 1d3a59f016a5..584f1bed9640 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.cs similarity index 78% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.cs index 62a05992e729..0674da28d5d5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver for PATCH operation. public partial class DnsResolverPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags _tag; /// Tags for DNS Resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTags()); set => this._tag = value; } /// Creates an new instance. public DnsResolverPatch() @@ -36,8 +36,8 @@ public partial interface IDnsResolverPatch : ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags Tag { get; set; } } /// Describes a DNS resolver for PATCH operation. @@ -45,7 +45,7 @@ internal partial interface IDnsResolverPatchInternal { /// Tags for DNS Resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.json.cs index bcbe472e0a55..ed063e94c60e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal DnsResolverPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPatch(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.PowerShell.cs similarity index 88% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.PowerShell.cs index 62f0546ce9a3..89c9fac36f71 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPatchTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,7 +102,7 @@ internal DnsResolverPatchTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,7 +125,7 @@ internal DnsResolverPatchTags(global::System.Management.Automation.PSObject cont /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.TypeConverter.cs index dd03d4c74d80..6f8b17b361fa 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.cs similarity index 92% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.cs index fe2ece2f1fce..53dc527e4a91 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for DNS Resolver. public partial class DnsResolverPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.dictionary.cs index d1c371364b18..403955670abf 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.json.cs index bac9cf3bbf53..9a4ed6380fde 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DnsResolverPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPatchTags(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.PowerShell.cs new file mode 100644 index 000000000000..ae47d84e6f10 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.PowerShell.cs @@ -0,0 +1,266 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyTypeConverter))] + public partial class DnsResolverPolicy + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicy(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicy(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicy(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.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ResourceGuid, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicy(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.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ResourceGuid, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyTypeConverter))] + public partial interface IDnsResolverPolicy + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.TypeConverter.cs new file mode 100644 index 000000000000..4dab95057f67 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicy.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicy.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicy.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.cs new file mode 100644 index 000000000000..62e7e905584c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy. + public partial class DnsResolverPolicy : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + + /// Backing field for property. + private string _etag; + + /// ETag of the DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for Etag + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal.Etag { get => this._etag; set { {_etag = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for ResourceGuid + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties _property; + + /// Properties of the DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties()); set => this._property = value; } + + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState; } + + /// The resourceGuid property of the DNS resolver policy resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public DnsResolverPolicy() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Describes a DNS resolver policy. + public partial interface IDnsResolverPolicy : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + { + /// ETag of the DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ETag of the DNS resolver policy.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// The resourceGuid property of the DNS resolver policy resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resourceGuid property of the DNS resolver policy resource.", + SerializedName = @"resourceGuid", + PossibleTypes = new [] { typeof(string) })] + string ResourceGuid { get; } + + } + /// Describes a DNS resolver policy. + internal partial interface IDnsResolverPolicyInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + { + /// ETag of the DNS resolver policy. + string Etag { get; set; } + /// Properties of the DNS resolver policy. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties Property { get; set; } + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The resourceGuid property of the DNS resolver policy resource. + string ResourceGuid { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.json.cs new file mode 100644 index 000000000000..0f322ed198db --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.json.cs @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy. + public partial class DnsResolverPolicy + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicy(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties.FromJson(__jsonProperties) : Property;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicy(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.PowerShell.cs new file mode 100644 index 000000000000..af787d355f32 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// The response to an enumeration operation on DNS resolver policies. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyListResultTypeConverter))] + public partial class DnsResolverPolicyListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyListResult(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.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyListResult(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.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The response to an enumeration operation on DNS resolver policies. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyListResultTypeConverter))] + public partial interface IDnsResolverPolicyListResult + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.TypeConverter.cs new file mode 100644 index 000000000000..f019610f227a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.cs new file mode 100644 index 000000000000..2e3dd5cc4e2e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The response to an enumeration operation on DNS resolver policies. + public partial class DnsResolverPolicyListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[] _value; + + /// Enumeration of the DNS resolver policies. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public DnsResolverPolicyListResult() + { + + } + } + /// The response to an enumeration operation on DNS resolver policies. + public partial interface IDnsResolverPolicyListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The continuation token for the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Enumeration of the DNS resolver policies. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enumeration of the DNS resolver policies.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[] Value { get; set; } + + } + /// The response to an enumeration operation on DNS resolver policies. + internal partial interface IDnsResolverPolicyListResultInternal + + { + /// The continuation token for the next page of results. + string NextLink { get; set; } + /// Enumeration of the DNS resolver policies. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.json.cs new file mode 100644 index 000000000000..adf5343c1ccc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.json.cs @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The response to an enumeration operation on DNS resolver policies. + public partial class DnsResolverPolicyListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.PowerShell.cs new file mode 100644 index 000000000000..5b6629805c87 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.PowerShell.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver policy for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPatchTypeConverter))] + public partial class DnsResolverPolicyPatch + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyPatch(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyPatch(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyPatch(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyPatch(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTagsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a DNS resolver policy for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPatchTypeConverter))] + public partial interface IDnsResolverPolicyPatch + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.TypeConverter.cs new file mode 100644 index 000000000000..d194b9d16dc7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyPatchTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyPatch.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyPatch.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyPatch.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.cs new file mode 100644 index 000000000000..e78d7767015a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy for PATCH operation. + public partial class DnsResolverPolicyPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags _tag; + + /// Tags for DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags()); set => this._tag = value; } + + /// Creates an new instance. + public DnsResolverPolicyPatch() + { + + } + } + /// Describes a DNS resolver policy for PATCH operation. + public partial interface IDnsResolverPolicyPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// Tags for DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS resolver policy.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags Tag { get; set; } + + } + /// Describes a DNS resolver policy for PATCH operation. + internal partial interface IDnsResolverPolicyPatchInternal + + { + /// Tags for DNS resolver policy. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.json.cs new file mode 100644 index 000000000000..035477abc618 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy for PATCH operation. + public partial class DnsResolverPolicyPatch + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyPatch(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.PowerShell.cs new file mode 100644 index 000000000000..64e5e212c900 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.PowerShell.cs @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Tags for DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPatchTagsTypeConverter))] + public partial class DnsResolverPolicyPatchTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyPatchTags(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyPatchTags(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyPatchTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyPatchTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Tags for DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPatchTagsTypeConverter))] + public partial interface IDnsResolverPolicyPatchTags + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.TypeConverter.cs new file mode 100644 index 000000000000..34d3a4699e4c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyPatchTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyPatchTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyPatchTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyPatchTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.cs new file mode 100644 index 000000000000..013a58e0be68 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS resolver policy. + public partial class DnsResolverPolicyPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTagsInternal + { + + /// Creates an new instance. + public DnsResolverPolicyPatchTags() + { + + } + } + /// Tags for DNS resolver policy. + public partial interface IDnsResolverPolicyPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + + } + /// Tags for DNS resolver policy. + internal partial interface IDnsResolverPolicyPatchTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.dictionary.cs new file mode 100644 index 000000000000..5206708a5c23 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPolicyPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.json.cs new file mode 100644 index 000000000000..04f2d495e022 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.json.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS resolver policy. + public partial class DnsResolverPolicyPatchTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + /// + internal DnsResolverPolicyPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyPatchTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.PowerShell.cs similarity index 63% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.PowerShell.cs index 794ab3a4fad3..51077b2f2f27 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.PowerShell.cs @@ -3,15 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - /// - [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] - public partial class ProxyResource + /// Represents the properties of a DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPropertiesTypeConverter))] + public partial class DnsResolverPolicyProperties { /// @@ -57,44 +55,39 @@ public partial class ProxyResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new ProxyResource(content); + return new DnsResolverPolicyProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new ProxyResource(content); + return new DnsResolverPolicyProperties(content); } /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ProxyResource(global::System.Collections.IDictionary content) + internal DnsResolverPolicyProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -103,27 +96,23 @@ internal ProxyResource(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ProxyResource(global::System.Management.Automation.PSObject content) + internal DnsResolverPolicyProperties(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -132,29 +121,32 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] - public partial interface IProxyResource + /// Represents the properties of a DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPropertiesTypeConverter))] + public partial interface IDnsResolverPolicyProperties { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.TypeConverter.cs new file mode 100644 index 000000000000..8ad816a91ef3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.cs new file mode 100644 index 000000000000..bed6a9bf307f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver policy. + public partial class DnsResolverPolicyProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal + { + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for ResourceGuid + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; + + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private string _resourceGuid; + + /// The resourceGuid property of the DNS resolver policy resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string ResourceGuid { get => this._resourceGuid; } + + /// Creates an new instance. + public DnsResolverPolicyProperties() + { + + } + } + /// Represents the properties of a DNS resolver policy. + public partial interface IDnsResolverPolicyProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// The resourceGuid property of the DNS resolver policy resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resourceGuid property of the DNS resolver policy resource.", + SerializedName = @"resourceGuid", + PossibleTypes = new [] { typeof(string) })] + string ResourceGuid { get; } + + } + /// Represents the properties of a DNS resolver policy. + internal partial interface IDnsResolverPolicyPropertiesInternal + + { + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The resourceGuid property of the DNS resolver policy resource. + string ResourceGuid { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.json.cs new file mode 100644 index 000000000000..d54fdea92b41 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.json.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver policy. + public partial class DnsResolverPolicyProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_resourceGuid = If( json?.PropertyT("resourceGuid"), out var __jsonResourceGuid) ? (string)__jsonResourceGuid : (string)ResourceGuid;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._resourceGuid)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._resourceGuid.ToString()) : null, "resourceGuid" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs new file mode 100644 index 000000000000..f292eea372d0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs @@ -0,0 +1,276 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLink + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLink(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLink(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLink(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.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("VirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyVirtualNetworkLink(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.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("VirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a DNS resolver policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLink + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs new file mode 100644 index 000000000000..1a93c9d26298 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinkTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLink.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLink.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.cs new file mode 100644 index 000000000000..ad6eab635c31 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.cs @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLink : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + + /// Backing field for property. + private string _etag; + + /// ETag of the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for Etag + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for VirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties _property; + + /// Properties of the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties()); set => this._property = value; } + + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ; } + + /// Creates an new instance. + public DnsResolverPolicyVirtualNetworkLink() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Describes a DNS resolver policy virtual network link. + public partial interface IDnsResolverPolicyVirtualNetworkLink : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + { + /// ETag of the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ETag of the DNS resolver policy virtual network link.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string VirtualNetworkId { get; set; } + + } + /// Describes a DNS resolver policy virtual network link. + internal partial interface IDnsResolverPolicyVirtualNetworkLinkInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + { + /// ETag of the DNS resolver policy virtual network link. + string Etag { get; set; } + /// Properties of the DNS resolver policy virtual network link. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties Property { get; set; } + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The reference to the virtual network. This cannot be changed after creation. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } + /// Resource ID. + string VirtualNetworkId { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.json.cs new file mode 100644 index 000000000000..dc28c3407528 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.json.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLink + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyVirtualNetworkLink(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLink(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs new file mode 100644 index 000000000000..3beaf3698fce --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// The response to an enumeration operation on DNS resolver policy virtual network links. + /// + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkListResultTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLinkListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLinkListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLinkListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkListResult(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.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkListResult(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.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The response to an enumeration operation on DNS resolver policy virtual network links. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkListResultTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLinkListResult + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs new file mode 100644 index 000000000000..8248323b722f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinkListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLinkListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.cs new file mode 100644 index 000000000000..58b37168d296 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The response to an enumeration operation on DNS resolver policy virtual network links. + /// + public partial class DnsResolverPolicyVirtualNetworkLinkListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[] _value; + + /// Enumeration of the DNS resolver policy virtual network links. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[] Value { get => this._value; set => this._value = value; } + + /// + /// Creates an new instance. + /// + public DnsResolverPolicyVirtualNetworkLinkListResult() + { + + } + } + /// The response to an enumeration operation on DNS resolver policy virtual network links. + public partial interface IDnsResolverPolicyVirtualNetworkLinkListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The continuation token for the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Enumeration of the DNS resolver policy virtual network links. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enumeration of the DNS resolver policy virtual network links.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[] Value { get; set; } + + } + /// The response to an enumeration operation on DNS resolver policy virtual network links. + internal partial interface IDnsResolverPolicyVirtualNetworkLinkListResultInternal + + { + /// The continuation token for the next page of results. + string NextLink { get; set; } + /// Enumeration of the DNS resolver policy virtual network links. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs new file mode 100644 index 000000000000..c3ea65f70cb0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The response to an enumeration operation on DNS resolver policy virtual network links. + /// + public partial class DnsResolverPolicyVirtualNetworkLinkListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyVirtualNetworkLinkListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs new file mode 100644 index 000000000000..6a54a43df226 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver policy virtual network link for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPatchTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLinkPatch + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLinkPatch(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLinkPatch(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkPatch(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkPatch(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a DNS resolver policy virtual network link for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPatchTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLinkPatch + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs new file mode 100644 index 000000000000..321eb1e1ddfd --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLinkPatch.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkPatch.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkPatch.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.cs new file mode 100644 index 000000000000..46e328bce1b9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy virtual network link for PATCH operation. + public partial class DnsResolverPolicyVirtualNetworkLinkPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags _tag; + + /// Tags for the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags()); set => this._tag = value; } + + /// + /// Creates an new instance. + /// + public DnsResolverPolicyVirtualNetworkLinkPatch() + { + + } + } + /// Describes a DNS resolver policy virtual network link for PATCH operation. + public partial interface IDnsResolverPolicyVirtualNetworkLinkPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// Tags for the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for the DNS resolver policy virtual network link.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get; set; } + + } + /// Describes a DNS resolver policy virtual network link for PATCH operation. + internal partial interface IDnsResolverPolicyVirtualNetworkLinkPatchInternal + + { + /// Tags for the DNS resolver policy virtual network link. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs new file mode 100644 index 000000000000..49eb7a287a79 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy virtual network link for PATCH operation. + public partial class DnsResolverPolicyVirtualNetworkLinkPatch + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyVirtualNetworkLinkPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkPatch(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs new file mode 100644 index 000000000000..eab2b52b36c5 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Tags for the DNS resolver policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLinkPatchTags(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLinkPatchTags(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkPatchTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkPatchTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Tags for the DNS resolver policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLinkPatchTags + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs new file mode 100644 index 000000000000..e25e5a3008cc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLinkPatchTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkPatchTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkPatchTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs new file mode 100644 index 000000000000..fc95fc956d85 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for the DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTagsInternal + { + + /// + /// Creates an new instance. + /// + public DnsResolverPolicyVirtualNetworkLinkPatchTags() + { + + } + } + /// Tags for the DNS resolver policy virtual network link. + public partial interface IDnsResolverPolicyVirtualNetworkLinkPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + + } + /// Tags for the DNS resolver policy virtual network link. + internal partial interface IDnsResolverPolicyVirtualNetworkLinkPatchTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs new file mode 100644 index 000000000000..20fea977a5bc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs new file mode 100644 index 000000000000..76879c16e1cc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for the DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + /// + internal DnsResolverPolicyVirtualNetworkLinkPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkPatchTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs new file mode 100644 index 000000000000..c2d7c1ef35a8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Represents the properties of a DNS resolver policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLinkProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLinkProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLinkProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents the properties of a DNS resolver policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLinkProperties + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs new file mode 100644 index 000000000000..48bce7de0b8a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLinkProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.cs new file mode 100644 index 000000000000..0b94eace7238 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.cs @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLinkProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal + { + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for VirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set { {_virtualNetwork = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; + + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource _virtualNetwork; + + /// The reference to the virtual network. This cannot be changed after creation. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set => this._virtualNetwork = value; } + + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetwork).Id = value ; } + + /// + /// Creates an new instance. + /// + public DnsResolverPolicyVirtualNetworkLinkProperties() + { + + } + } + /// Represents the properties of a DNS resolver policy virtual network link. + public partial interface IDnsResolverPolicyVirtualNetworkLinkProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string VirtualNetworkId { get; set; } + + } + /// Represents the properties of a DNS resolver policy virtual network link. + internal partial interface IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal + + { + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The reference to the virtual network. This cannot be changed after creation. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } + /// Resource ID. + string VirtualNetworkId { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs new file mode 100644 index 000000000000..b8dc3b5a46f9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLinkProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyVirtualNetworkLinkProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._virtualNetwork ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._virtualNetwork.ToJson(null,serializationMode) : null, "virtualNetwork" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.PowerShell.cs similarity index 63% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.PowerShell.cs index c34b5e1a95b9..b384273ad02f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,29 +98,29 @@ internal DnsResolverProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,23 +135,23 @@ internal DnsResolverProperties(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -159,7 +161,7 @@ internal DnsResolverProperties(global::System.Management.Automation.PSObject con /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.TypeConverter.cs index c0993466f78f..ee7739da1461 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.cs similarity index 83% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.cs index b2959afd5227..acc22d3cfd98 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a DNS resolver. public partial class DnsResolverProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal { /// Backing field for property. @@ -23,16 +23,16 @@ public partial class DnsResolverProperties : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? DnsResolverState { get => this._dnsResolverState; } /// Internal Acessors for DnsResolverState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal.DnsResolverState { get => this._dnsResolverState; set { {_dnsResolverState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal.DnsResolverState { get => this._dnsResolverState; set { {_dnsResolverState = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set { {_virtualNetwork = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set { {_virtualNetwork = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -52,15 +52,15 @@ public partial class DnsResolverProperties : public string ResourceGuid { get => this._resourceGuid; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource _virtualNetwork; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource _virtualNetwork; /// The reference to the virtual network. This cannot be changed after creation. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set => this._virtualNetwork = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set => this._virtualNetwork = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetwork).Id = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetwork).Id = value ; } /// Creates an new instance. public DnsResolverProperties() @@ -127,7 +127,7 @@ internal partial interface IDnsResolverPropertiesInternal /// The resourceGuid property of the DNS resolver resource. string ResourceGuid { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.json.cs index f22e041c7d84..1d2031754fa7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,7 +65,7 @@ internal DnsResolverProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} + {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} {_dnsResolverState = If( json?.PropertyT("dnsResolverState"), out var __jsonDnsResolverState) ? (string)__jsonDnsResolverState : (string)DnsResolverState;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_resourceGuid = If( json?.PropertyT("resourceGuid"), out var __jsonResourceGuid) ? (string)__jsonResourceGuid : (string)ResourceGuid;} @@ -73,13 +73,13 @@ internal DnsResolverProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverProperties(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.PowerShell.cs new file mode 100644 index 000000000000..cabd9d7beafa --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.PowerShell.cs @@ -0,0 +1,304 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleTypeConverter))] + public partial class DnsSecurityRule + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRule(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRule(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRule(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.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRule(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.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleTypeConverter))] + public partial interface IDnsSecurityRule + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.TypeConverter.cs new file mode 100644 index 000000000000..34611ca7b823 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRuleTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRule.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRule.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.cs new file mode 100644 index 000000000000..b397d2f23b2a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.cs @@ -0,0 +1,252 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS security rule. + public partial class DnsSecurityRule : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ActionBlockResponseCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ActionBlockResponseCode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); } + + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).DnsResolverDomainList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).DnsResolverDomainList = value ; } + + /// Backing field for property. + private string _etag; + + /// ETag of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for Action + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).Action = value; } + + /// Internal Acessors for Etag + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public int Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).Priority = value ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties _property; + + /// Properties of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties()); set => this._property = value; } + + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState; } + + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).DnsSecurityRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).DnsSecurityRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public DnsSecurityRule() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Describes a DNS security rule. + public partial interface IDnsSecurityRule : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + { + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// ETag of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ETag of the DNS security rule.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + int Priority { get; set; } + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? State { get; set; } + + } + /// Describes a DNS security rule. + internal partial interface IDnsSecurityRuleInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + { + /// The action to take on DNS requests that match the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get; set; } + /// The response code for block actions. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// ETag of the DNS security rule. + string Etag { get; set; } + /// The priority of the DNS security rule. + int Priority { get; set; } + /// Properties of the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties Property { get; set; } + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The state of DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? State { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.json.cs new file mode 100644 index 000000000000..8eaf633a605a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.json.cs @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS security rule. + public partial class DnsSecurityRule + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRule(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties.FromJson(__jsonProperties) : Property;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRule(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.PowerShell.cs new file mode 100644 index 000000000000..5c75029fed06 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.PowerShell.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// The action to take on DNS requests that match the DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleActionTypeConverter))] + public partial class DnsSecurityRuleAction + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRuleAction(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRuleAction(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRuleAction(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("BlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).BlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("BlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).BlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRuleAction(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("BlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).BlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("BlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).BlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The action to take on DNS requests that match the DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleActionTypeConverter))] + public partial interface IDnsSecurityRuleAction + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.TypeConverter.cs new file mode 100644 index 000000000000..697eb9c7c3e3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRuleActionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRuleAction.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRuleAction.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRuleAction.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.cs new file mode 100644 index 000000000000..1baef35b6e74 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The action to take on DNS requests that match the DNS security rule. + public partial class DnsSecurityRuleAction : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? _actionType; + + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => this._actionType; set => this._actionType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? _blockResponseCode; + + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? BlockResponseCode { get => this._blockResponseCode; set => this._blockResponseCode = value; } + + /// Creates an new instance. + public DnsSecurityRuleAction() + { + + } + } + /// The action to take on DNS requests that match the DNS security rule. + public partial interface IDnsSecurityRuleAction : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? BlockResponseCode { get; set; } + + } + /// The action to take on DNS requests that match the DNS security rule. + internal partial interface IDnsSecurityRuleActionInternal + + { + /// The type of action to take. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// The response code for block actions. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? BlockResponseCode { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.json.cs new file mode 100644 index 000000000000..09bf444268a4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The action to take on DNS requests that match the DNS security rule. + public partial class DnsSecurityRuleAction + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRuleAction(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)ActionType;} + {_blockResponseCode = If( json?.PropertyT("blockResponseCode"), out var __jsonBlockResponseCode) ? (string)__jsonBlockResponseCode : (string)BlockResponseCode;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRuleAction(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._actionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._actionType.ToString()) : null, "actionType" ,container.Add ); + AddIf( null != (((object)this._blockResponseCode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._blockResponseCode.ToString()) : null, "blockResponseCode" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.PowerShell.cs new file mode 100644 index 000000000000..8895be3ba09c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.PowerShell.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + /// + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleListResultTypeConverter))] + public partial class DnsSecurityRuleListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRuleListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRuleListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRuleListResult(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.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRuleListResult(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.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleListResultTypeConverter))] + public partial interface IDnsSecurityRuleListResult + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.TypeConverter.cs new file mode 100644 index 000000000000..c94c2cbb337d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRuleListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRuleListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRuleListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRuleListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.cs new file mode 100644 index 000000000000..900a2c4c6e85 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + /// + public partial class DnsSecurityRuleListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[] _value; + + /// Enumeration of the DNS security rules. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public DnsSecurityRuleListResult() + { + + } + } + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + public partial interface IDnsSecurityRuleListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The continuation token for the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Enumeration of the DNS security rules. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enumeration of the DNS security rules.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[] Value { get; set; } + + } + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + internal partial interface IDnsSecurityRuleListResultInternal + + { + /// The continuation token for the next page of results. + string NextLink { get; set; } + /// Enumeration of the DNS security rules. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.json.cs new file mode 100644 index 000000000000..3610612983cc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.json.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + /// + public partial class DnsSecurityRuleListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRuleListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRuleListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.PowerShell.cs new file mode 100644 index 000000000000..74d1ae40cf1c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.PowerShell.cs @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS security rule for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchTypeConverter))] + public partial class DnsSecurityRulePatch + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRulePatch(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRulePatch(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRulePatch(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.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRulePatch(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.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a DNS security rule for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchTypeConverter))] + public partial interface IDnsSecurityRulePatch + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.TypeConverter.cs new file mode 100644 index 000000000000..efcea9e6e34a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRulePatchTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRulePatch.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRulePatch.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRulePatch.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.cs new file mode 100644 index 000000000000..c09df013621c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.cs @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS security rule for PATCH operation. + public partial class DnsSecurityRulePatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal + { + + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ActionBlockResponseCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ActionBlockResponseCode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); } + + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsResolverDomainList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsResolverDomainList = value ?? null /* arrayOf */; } + + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsSecurityRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsSecurityRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); } + + /// Internal Acessors for Action + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Action = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties()); set { {_property = value;} } } + + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public int? Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Priority = value ?? default(int); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties _property; + + /// Updatable properties of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties()); set => this._property = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags _tag; + + /// Tags for DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags()); set => this._tag = value; } + + /// Creates an new instance. + public DnsSecurityRulePatch() + { + + } + } + /// Describes a DNS security rule for PATCH operation. + public partial interface IDnsSecurityRulePatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + int? Priority { get; set; } + /// Tags for DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS security rule.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags Tag { get; set; } + + } + /// Describes a DNS security rule for PATCH operation. + internal partial interface IDnsSecurityRulePatchInternal + + { + /// The action to take on DNS requests that match the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get; set; } + /// The response code for block actions. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + int? Priority { get; set; } + /// Updatable properties of the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties Property { get; set; } + /// Tags for DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.json.cs new file mode 100644 index 000000000000..5d7ec28a5881 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS security rule for PATCH operation. + public partial class DnsSecurityRulePatch + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRulePatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRulePatch(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.PowerShell.cs new file mode 100644 index 000000000000..93a293208e8b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.PowerShell.cs @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Represents the updatable properties of a DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchPropertiesTypeConverter))] + public partial class DnsSecurityRulePatchProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRulePatchProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRulePatchProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRulePatchProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRulePatchProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents the updatable properties of a DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchPropertiesTypeConverter))] + public partial interface IDnsSecurityRulePatchProperties + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.TypeConverter.cs new file mode 100644 index 000000000000..90ea9e95a7bb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRulePatchPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRulePatchProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRulePatchProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRulePatchProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.cs new file mode 100644 index 000000000000..f2b4a1ac822c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.cs @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the updatable properties of a DNS security rule. + public partial class DnsSecurityRulePatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction _action; + + /// The action to take on DNS requests that match the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction()); set => this._action = value; } + + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).BlockResponseCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).BlockResponseCode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); } + + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] _dnsResolverDomainList; + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => this._dnsResolverDomainList; set => this._dnsResolverDomainList = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? _dnsSecurityRuleState; + + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get => this._dnsSecurityRuleState; set => this._dnsSecurityRuleState = value; } + + /// Internal Acessors for Action + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal.Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction()); set { {_action = value;} } } + + /// Backing field for property. + private int? _priority; + + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public int? Priority { get => this._priority; set => this._priority = value; } + + /// Creates an new instance. + public DnsSecurityRulePatchProperties() + { + + } + } + /// Represents the updatable properties of a DNS security rule. + public partial interface IDnsSecurityRulePatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + int? Priority { get; set; } + + } + /// Represents the updatable properties of a DNS security rule. + internal partial interface IDnsSecurityRulePatchPropertiesInternal + + { + /// The action to take on DNS requests that match the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get; set; } + /// The response code for block actions. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + int? Priority { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.json.cs new file mode 100644 index 000000000000..f4ece5e50111 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.json.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the updatable properties of a DNS security rule. + public partial class DnsSecurityRulePatchProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRulePatchProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction.FromJson(__jsonAction) : Action;} + {_dnsResolverDomainList = If( json?.PropertyT("dnsResolverDomainLists"), out var __jsonDnsResolverDomainLists) ? If( __jsonDnsResolverDomainLists as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__u) )) ))() : null : DnsResolverDomainList;} + {_dnsSecurityRuleState = If( json?.PropertyT("dnsSecurityRuleState"), out var __jsonDnsSecurityRuleState) ? (string)__jsonDnsSecurityRuleState : (string)DnsSecurityRuleState;} + {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int?)__jsonPriority : Priority;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRulePatchProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._action ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._action.ToJson(null,serializationMode) : null, "action" ,container.Add ); + if (null != this._dnsResolverDomainList) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._dnsResolverDomainList ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("dnsResolverDomainLists",__w); + } + AddIf( null != (((object)this._dnsSecurityRuleState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsSecurityRuleState.ToString()) : null, "dnsSecurityRuleState" ,container.Add ); + AddIf( null != this._priority ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNumber((int)this._priority) : null, "priority" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.PowerShell.cs new file mode 100644 index 000000000000..9ffb2b7777a4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.PowerShell.cs @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Tags for DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchTagsTypeConverter))] + public partial class DnsSecurityRulePatchTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRulePatchTags(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRulePatchTags(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRulePatchTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRulePatchTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Tags for DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchTagsTypeConverter))] + public partial interface IDnsSecurityRulePatchTags + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.TypeConverter.cs new file mode 100644 index 000000000000..8cb3fee425d0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRulePatchTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRulePatchTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRulePatchTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRulePatchTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.cs new file mode 100644 index 000000000000..49582ebd1adb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS security rule. + public partial class DnsSecurityRulePatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTagsInternal + { + + /// Creates an new instance. + public DnsSecurityRulePatchTags() + { + + } + } + /// Tags for DNS security rule. + public partial interface IDnsSecurityRulePatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + + } + /// Tags for DNS security rule. + internal partial interface IDnsSecurityRulePatchTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.dictionary.cs new file mode 100644 index 000000000000..7cc452abc0d9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsSecurityRulePatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.json.cs new file mode 100644 index 000000000000..93f9d8890e29 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.json.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS security rule. + public partial class DnsSecurityRulePatchTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + /// + internal DnsSecurityRulePatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRulePatchTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.PowerShell.cs new file mode 100644 index 000000000000..6921dfabb5a4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.PowerShell.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Represents the properties of a DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePropertiesTypeConverter))] + public partial class DnsSecurityRuleProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRuleProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRuleProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRuleProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRuleProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Represents the properties of a DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePropertiesTypeConverter))] + public partial interface IDnsSecurityRuleProperties + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.TypeConverter.cs new file mode 100644 index 000000000000..e222b959ee27 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRulePropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRuleProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRuleProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRuleProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.cs new file mode 100644 index 000000000000..1b62b5de8c65 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS security rule. + public partial class DnsSecurityRuleProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction _action; + + /// The action to take on DNS requests that match the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction()); set => this._action = value; } + + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).BlockResponseCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).BlockResponseCode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); } + + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] _dnsResolverDomainList; + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => this._dnsResolverDomainList; set => this._dnsResolverDomainList = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? _dnsSecurityRuleState; + + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get => this._dnsSecurityRuleState; set => this._dnsSecurityRuleState = value; } + + /// Internal Acessors for Action + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal.Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction()); set { {_action = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private int _priority; + + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public int Priority { get => this._priority; set => this._priority = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; + + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Creates an new instance. + public DnsSecurityRuleProperties() + { + + } + } + /// Represents the properties of a DNS security rule. + public partial interface IDnsSecurityRuleProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + int Priority { get; set; } + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + + } + /// Represents the properties of a DNS security rule. + internal partial interface IDnsSecurityRulePropertiesInternal + + { + /// The action to take on DNS requests that match the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get; set; } + /// The response code for block actions. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + int Priority { get; set; } + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.json.cs new file mode 100644 index 000000000000..3979b961672e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.json.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS security rule. + public partial class DnsSecurityRuleProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction.FromJson(__jsonAction) : Action;} + {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int)__jsonPriority : Priority;} + {_dnsResolverDomainList = If( json?.PropertyT("dnsResolverDomainLists"), out var __jsonDnsResolverDomainLists) ? If( __jsonDnsResolverDomainLists as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__u) )) ))() : null : DnsResolverDomainList;} + {_dnsSecurityRuleState = If( json?.PropertyT("dnsSecurityRuleState"), out var __jsonDnsSecurityRuleState) ? (string)__jsonDnsSecurityRuleState : (string)DnsSecurityRuleState;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRuleProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._action ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._action.ToJson(null,serializationMode) : null, "action" ,container.Add ); + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNumber(this._priority), "priority" ,container.Add ); + if (null != this._dnsResolverDomainList) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._dnsResolverDomainList ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("dnsResolverDomainLists",__w); + } + AddIf( null != (((object)this._dnsSecurityRuleState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsSecurityRuleState.ToString()) : null, "dnsSecurityRuleState" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.PowerShell.cs new file mode 100644 index 000000000000..5ac866b2b859 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.PowerShell.cs @@ -0,0 +1,272 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a forwarding rule within a DNS forwarding ruleset. + [System.ComponentModel.TypeConverter(typeof(ForwardingRuleTypeConverter))] + public partial class ForwardingRule + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ForwardingRule(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ForwardingRule(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ForwardingRule(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.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("TargetDnsServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); + } + if (content.Contains("Metadata")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ForwardingRule(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.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("TargetDnsServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); + } + if (content.Contains("Metadata")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Describes a forwarding rule within a DNS forwarding ruleset. + [System.ComponentModel.TypeConverter(typeof(ForwardingRuleTypeConverter))] + public partial interface IForwardingRule + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.TypeConverter.cs index 25862c567610..fbbc3159124a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.cs similarity index 53% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.cs index 0d5b29727e43..ae29326ee322 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.cs @@ -3,24 +3,24 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a forwarding rule within a DNS forwarding ruleset. public partial class ForwardingRule : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); /// The domain name for the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).DomainName = value ; } + public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).DomainName = value ; } /// Backing field for property. private string _etag; @@ -30,98 +30,97 @@ public partial class ForwardingRule : public string Etag { get => this._etag; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } /// Metadata attached to the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).Metadata = value ?? null /* model class */; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties _property; /// Properties of the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleProperties()); set => this._property = value; } /// /// The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value /// will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).ProvisioningState; } /// The state of forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).ForwardingRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).ForwardingRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).TargetDnsServer = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).TargetDnsServer = value ; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } /// Creates an new instance. public ForwardingRule() @@ -144,7 +143,7 @@ public ForwardingRule() /// Describes a forwarding rule within a DNS forwarding ruleset. public partial interface IForwardingRule : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource { /// The domain name for the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -168,8 +167,8 @@ public partial interface IForwardingRule : ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value /// will be ignored. @@ -189,76 +188,28 @@ public partial interface IForwardingRule : SerializedName = @"forwardingRuleState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState) })] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? State { get; set; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } /// Describes a forwarding rule within a DNS forwarding ruleset. internal partial interface IForwardingRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal { /// The domain name for the forwarding rule. string DomainName { get; set; } /// ETag of the forwarding rule. string Etag { get; set; } /// Metadata attached to the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } /// Properties of the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties Property { get; set; } /// /// The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value /// will be ignored. @@ -266,22 +217,8 @@ internal partial interface IForwardingRuleInternal : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// The state of forwarding rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? State { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.json.cs index ab26d7858a62..5341577abb0f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,21 +65,20 @@ internal ForwardingRule(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.J { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRule(json) : null; } @@ -106,10 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.PowerShell.cs similarity index 74% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.PowerShell.cs index fecd00625934..5d294416bc65 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,35 +57,35 @@ public partial class ForwardingRuleListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRuleListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRuleListResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,17 +100,17 @@ internal ForwardingRuleListResult(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,11 +125,11 @@ internal ForwardingRuleListResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -139,7 +139,7 @@ internal ForwardingRuleListResult(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.TypeConverter.cs index dbed8bcfc0a3..32c2d5043dc0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.cs index 9058b6b7d1a2..4d6d19e1d064 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset. /// public partial class ForwardingRuleListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -26,11 +26,11 @@ public partial class ForwardingRuleListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule[] _value; /// Enumeration of the forwarding rules. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ForwardingRuleListResult() @@ -56,8 +56,8 @@ public partial interface IForwardingRuleListResult : ReadOnly = false, Description = @"Enumeration of the forwarding rules.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule[] Value { get; set; } } /// The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset. @@ -67,7 +67,7 @@ internal partial interface IForwardingRuleListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the forwarding rules. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.json.cs index 621ad3a09fcf..2357c3ffd7d4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -67,19 +67,19 @@ internal ForwardingRuleListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRuleListResult(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.PowerShell.cs similarity index 62% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.PowerShell.cs index 0edcbcf13cb1..5638eece3bee 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class ForwardingRulePatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRulePatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,25 +98,25 @@ internal ForwardingRulePatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,19 +131,19 @@ internal ForwardingRulePatch(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializePSObject(content); } @@ -151,7 +153,7 @@ internal ForwardingRulePatch(global::System.Management.Automation.PSObject conte /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.TypeConverter.cs index ec1c813abb92..244d5fdc1d1d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.cs similarity index 65% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.cs index 15b050567681..6f02328b4620 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.cs @@ -3,37 +3,37 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a forwarding rule for PATCH operation. public partial class ForwardingRulePatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal { /// The state of forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState)""); } /// Metadata attached to the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties _property; /// Updatable properties of the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchProperties()); set => this._property = value; } /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer = value ?? null /* arrayOf */; } /// Creates an new instance. public ForwardingRulePatch() @@ -59,16 +59,16 @@ public partial interface IForwardingRulePatch : ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } /// Describes a forwarding rule for PATCH operation. @@ -78,11 +78,11 @@ internal partial interface IForwardingRulePatchInternal /// The state of forwarding rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get; set; } /// Metadata attached to the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// Updatable properties of the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties Property { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.json.cs index fbc49b63d9d0..18a509ccfd19 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal ForwardingRulePatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runt { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRulePatch(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.PowerShell.cs similarity index 65% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.PowerShell.cs index 4e62fd755403..a0fa386bc334 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,35 +57,35 @@ public partial class ForwardingRulePatchProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRulePatchProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePatchProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,21 +100,21 @@ internal ForwardingRulePatchProperties(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,15 +129,15 @@ internal ForwardingRulePatchProperties(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializePSObject(content); } @@ -147,7 +147,7 @@ internal ForwardingRulePatchProperties(global::System.Management.Automation.PSOb /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.TypeConverter.cs index ed4845501c0c..866bea906daf 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.cs similarity index 80% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.cs index c9478ca22310..bdfd18b674ea 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// Represents the updatable properties of a forwarding rule within a DNS forwarding ruleset. /// public partial class ForwardingRulePatchProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal { /// Backing field for property. @@ -23,18 +23,18 @@ public partial class ForwardingRulePatchProperties : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get => this._forwardingRuleState; set => this._forwardingRuleState = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata _metadata; /// Metadata attached to the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadata()); set => this._metadata = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] _targetDnsServer; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] _targetDnsServer; /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } /// Creates an new instance. public ForwardingRulePatchProperties() @@ -60,16 +60,16 @@ public partial interface IForwardingRulePatchProperties : ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } /// Represents the updatable properties of a forwarding rule within a DNS forwarding ruleset. @@ -79,9 +79,9 @@ internal partial interface IForwardingRulePatchPropertiesInternal /// The state of forwarding rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get; set; } /// Metadata attached to the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.json.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.json.cs index 6a359ba8885b..48a1f73e4653 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -67,20 +67,20 @@ internal ForwardingRulePatchProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsRes { return; } - {_targetDnsServer = If( json?.PropertyT("targetDnsServers"), out var __jsonTargetDnsServers) ? If( __jsonTargetDnsServers as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_targetDnsServer = If( json?.PropertyT("targetDnsServers"), out var __jsonTargetDnsServers) ? If( __jsonTargetDnsServers as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} {_forwardingRuleState = If( json?.PropertyT("forwardingRuleState"), out var __jsonForwardingRuleState) ? (string)__jsonForwardingRuleState : (string)ForwardingRuleState;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRulePatchProperties(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.PowerShell.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.PowerShell.cs index 4f5d758850c4..6ea724f07c20 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ForwardingRulePatchPropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRulePatchPropertiesMetadata(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePatchPropertiesMetadata(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal ForwardingRulePatchPropertiesMetadata(global::System.Collections.IDicti } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,7 +128,7 @@ internal ForwardingRulePatchPropertiesMetadata(global::System.Management.Automat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs index 5d01952195ed..bd3a69776660 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.cs index a38682dda835..baa4b853afd5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Metadata attached to the forwarding rule. public partial class ForwardingRulePatchPropertiesMetadata : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadataInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.dictionary.cs index ef6a62a8b40d..fc007f93cae5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.json.cs index 10d8ec48d8c1..1e371ce12512 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ForwardingRulePatchPropertiesMetadata(Microsoft.Azure.PowerShell.Cmdlet } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRulePatchPropertiesMetadata(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.PowerShell.cs similarity index 60% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.PowerShell.cs index 3109ec11654c..6d5b8a796acb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ForwardingRuleProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRuleProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRuleProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,29 +98,29 @@ internal ForwardingRuleProperties(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,23 +135,23 @@ internal ForwardingRuleProperties(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServerTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } @@ -161,7 +161,7 @@ internal ForwardingRuleProperties(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.TypeConverter.cs index 05157078349f..d5923b68f1c8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.cs index 2da9c297d2ee..c2bfc1adee2b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a forwarding rule within a DNS forwarding ruleset. public partial class ForwardingRuleProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal { /// Backing field for property. @@ -28,14 +28,14 @@ public partial class ForwardingRuleProperties : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get => this._forwardingRuleState; set => this._forwardingRuleState = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata _metadata; /// Metadata attached to the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadata()); set => this._metadata = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -48,11 +48,11 @@ public partial class ForwardingRuleProperties : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] _targetDnsServer; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] _targetDnsServer; /// DNS servers to forward the DNS query to. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } /// Creates an new instance. public ForwardingRuleProperties() @@ -86,8 +86,8 @@ public partial interface IForwardingRuleProperties : ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value /// will be ignored. @@ -105,8 +105,8 @@ public partial interface IForwardingRuleProperties : ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } /// Represents the properties of a forwarding rule within a DNS forwarding ruleset. @@ -118,14 +118,14 @@ internal partial interface IForwardingRulePropertiesInternal /// The state of forwarding rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? ForwardingRuleState { get; set; } /// Metadata attached to the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the forwarding rule. This is a read-only property and any attempt to set this value /// will be ignored. /// Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.json.cs index 380dcd23d006..c4c825112ec3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -66,21 +66,21 @@ internal ForwardingRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver return; } {_domainName = If( json?.PropertyT("domainName"), out var __jsonDomainName) ? (string)__jsonDomainName : (string)DomainName;} - {_targetDnsServer = If( json?.PropertyT("targetDnsServers"), out var __jsonTargetDnsServers) ? If( __jsonTargetDnsServers as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_targetDnsServer = If( json?.PropertyT("targetDnsServers"), out var __jsonTargetDnsServers) ? If( __jsonTargetDnsServers as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} {_forwardingRuleState = If( json?.PropertyT("forwardingRuleState"), out var __jsonForwardingRuleState) ? (string)__jsonForwardingRuleState : (string)ForwardingRuleState;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRuleProperties(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.PowerShell.cs similarity index 88% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.PowerShell.cs index bf0596f1c88f..0b62c07bf140 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ForwardingRulePropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ForwardingRulePropertiesMetadata(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePropertiesMetadata(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal ForwardingRulePropertiesMetadata(global::System.Collections.IDictionary } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,7 +125,7 @@ internal ForwardingRulePropertiesMetadata(global::System.Management.Automation.P /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.TypeConverter.cs index 9c63a6f8a72a..bb31a2f9e1c2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.cs index 78199ba9c653..b123c2745ee0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Metadata attached to the forwarding rule. public partial class ForwardingRulePropertiesMetadata : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadataInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.dictionary.cs index cbd2c3ad4654..20697bfd4994 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.json.cs index b8d2fbac064c..9f8d63de3af8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ForwardingRulePropertiesMetadata(Microsoft.Azure.PowerShell.Cmdlets.Dns } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ForwardingRulePropertiesMetadata(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.PowerShell.cs similarity index 68% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.PowerShell.cs index 91dbeb3d4191..520df3676df5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class IPConfiguration partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new IPConfiguration(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new IPConfiguration(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,25 +103,25 @@ internal IPConfiguration(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("PrivateIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); } if (content.Contains("PrivateIPAllocationMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,19 +136,19 @@ internal IPConfiguration(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("PrivateIPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); } if (content.Contains("PrivateIPAllocationMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.TypeConverter.cs index 106c1f343565..ee66d323b996 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.cs similarity index 84% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.cs index b8c055b37d37..43b268c385d6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// IP configuration. public partial class IPConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal { /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set { {_subnet = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set { {_subnet = value;} } } /// Backing field for property. private string _privateIPAddress; @@ -31,15 +31,15 @@ public partial class IPConfiguration : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod? PrivateIPAllocationMethod { get => this._privateIPAllocationMethod; set => this._privateIPAllocationMethod = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource _subnet; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource _subnet; /// The reference to the subnet bound to the IP configuration. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set => this._subnet = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set => this._subnet = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)Subnet).Id = value ; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)Subnet).Id = value ; } /// Creates an new instance. public IPConfiguration() @@ -86,7 +86,7 @@ internal partial interface IIPConfigurationInternal /// Private IP address allocation method. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod? PrivateIPAllocationMethod { get; set; } /// The reference to the subnet bound to the IP configuration. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.json.cs index 56ac268f77eb..5d38b4e6424b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class IPConfiguration partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new IPConfiguration(json) : null; } @@ -77,7 +77,7 @@ internal IPConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime. { return; } - {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonSubnet) : Subnet;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__jsonSubnet) : Subnet;} {_privateIPAddress = If( json?.PropertyT("privateIpAddress"), out var __jsonPrivateIPAddress) ? (string)__jsonPrivateIPAddress : (string)PrivateIPAddress;} {_privateIPAllocationMethod = If( json?.PropertyT("privateIpAllocationMethod"), out var __jsonPrivateIPAllocationMethod) ? (string)__jsonPrivateIPAllocationMethod : (string)PrivateIPAllocationMethod;} AfterFromJson(json); diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.PowerShell.cs similarity index 52% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.PowerShell.cs index 06a0f51cf7e0..7f497657d194 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class InboundEndpoint partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InboundEndpoint(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpoint(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,77 +103,77 @@ internal InboundEndpoint(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)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.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("IPConfiguration")) + if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)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.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfigurationTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -188,71 +188,71 @@ internal InboundEndpoint(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)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.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("IPConfiguration")) + if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal)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.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfigurationTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.TypeConverter.cs index 8d1d021e28ee..6784ce120c3c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.cs similarity index 52% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.cs index 68955f6a0e07..014d3b5dd748 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes an inbound endpoint for a DNS resolver. public partial class InboundEndpoint : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); /// Backing field for property. private string _etag; @@ -28,104 +28,103 @@ public partial class InboundEndpoint : /// IP configurations for the inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).IPConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).IPConfiguration = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] IPConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).IPConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).IPConfiguration = value ; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type = value; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties _property; /// Properties of the inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointProperties()); set => this._property = value; } /// /// The current provisioning state of the inbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).ProvisioningState; } /// The resourceGuid property of the inbound endpoint resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public InboundEndpoint() @@ -148,7 +147,7 @@ public InboundEndpoint() /// Describes an inbound endpoint for a DNS resolver. public partial interface IInboundEndpoint : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource { /// ETag of the inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -164,8 +163,8 @@ public partial interface IInboundEndpoint : ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] IPConfiguration { get; set; } /// /// The current provisioning state of the inbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. @@ -185,66 +184,18 @@ public partial interface IInboundEndpoint : SerializedName = @"resourceGuid", PossibleTypes = new [] { typeof(string) })] string ResourceGuid { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } /// Describes an inbound endpoint for a DNS resolver. internal partial interface IInboundEndpointInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal { /// ETag of the inbound endpoint. string Etag { get; set; } /// IP configurations for the inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] IPConfiguration { get; set; } /// Properties of the inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties Property { get; set; } /// /// The current provisioning state of the inbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. @@ -252,20 +203,6 @@ internal partial interface IInboundEndpointInternal : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// The resourceGuid property of the inbound endpoint resource. string ResourceGuid { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.json.cs index 100bd3aca65d..80eddf1d5b76 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpoint(json) : null; } @@ -77,9 +77,8 @@ internal InboundEndpoint(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime. { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } @@ -106,10 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.PowerShell.cs index aa483c0fea7c..99690e33bbde 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class InboundEndpointListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InboundEndpointListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointListResult(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -107,17 +107,17 @@ internal InboundEndpointListResult(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,11 +132,11 @@ internal InboundEndpointListResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.TypeConverter.cs index 660f5bbc3ef9..739e37c7c056 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.cs index fe36b79cf76c..9fa737411d38 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// The response to an enumeration operation on inbound endpoints for a DNS resolver. /// public partial class InboundEndpointListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -26,11 +26,11 @@ public partial class InboundEndpointListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint[] _value; /// Enumeration of the inbound endpoints for a DNS resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public InboundEndpointListResult() @@ -56,8 +56,8 @@ public partial interface IInboundEndpointListResult : ReadOnly = false, Description = @"Enumeration of the inbound endpoints for a DNS resolver.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint[] Value { get; set; } } /// The response to an enumeration operation on inbound endpoints for a DNS resolver. @@ -67,7 +67,7 @@ internal partial interface IInboundEndpointListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the inbound endpoints for a DNS resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.json.cs index a8766060badf..5f7d96eb03bc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class InboundEndpointListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpointListResult(json) : null; } @@ -79,7 +79,7 @@ internal InboundEndpointListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.PowerShell.cs similarity index 79% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.PowerShell.cs index 40214fdbe0ad..1c5e99c27463 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class InboundEndpointPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InboundEndpointPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointPatch(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,13 +105,13 @@ internal InboundEndpointPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +126,7 @@ internal InboundEndpointPatch(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.TypeConverter.cs index 56e41f4a9c33..4b2bb23f1187 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.cs similarity index 78% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.cs index 96109ecd9d4a..bbf21cd1af0f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes an inbound endpoint for a DNS resolver for PATCH operation. public partial class InboundEndpointPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags _tag; /// Tags for inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTags()); set => this._tag = value; } /// Creates an new instance. public InboundEndpointPatch() @@ -36,8 +36,8 @@ public partial interface IInboundEndpointPatch : ReadOnly = false, Description = @"Tags for inbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags Tag { get; set; } } /// Describes an inbound endpoint for a DNS resolver for PATCH operation. @@ -45,7 +45,7 @@ internal partial interface IInboundEndpointPatchInternal { /// Tags for inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.json.cs index 6cfa6e30f9b0..ed848745cb51 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpointPatch partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpointPatch(json) : null; } @@ -77,7 +77,7 @@ internal InboundEndpointPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Run { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.PowerShell.cs similarity index 88% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.PowerShell.cs index 7950b70fd88c..ce0e2079b34d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InboundEndpointPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InboundEndpointPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointPatchTags(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -109,7 +109,7 @@ internal InboundEndpointPatchTags(global::System.Collections.IDictionary content } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.TypeConverter.cs index 3b00551788cf..533e4e140660 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.cs index 335f0660f9ee..e3d9f5fe10e1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for inbound endpoint. public partial class InboundEndpointPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.dictionary.cs index e346575d7026..dbd0b6c3cc17 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.json.cs index 3b722d43f8a0..9806755dc34f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpointPatchTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpointPatchTags(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.PowerShell.cs similarity index 68% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.PowerShell.cs index b0bf1326c1f6..f85ef9fd17f1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InboundEndpointProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new InboundEndpointProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,21 +105,21 @@ internal InboundEndpointProperties(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,15 +134,15 @@ internal InboundEndpointProperties(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.TypeConverter.cs index bd2d972667e8..888de735aed6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.cs index ca3df8faa80b..1c12959628bf 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of an inbound endpoint for a DNS resolver. public partial class InboundEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] _iPConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] _iPConfiguration; /// IP configurations for the inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get => this._iPConfiguration; set => this._iPConfiguration = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] IPConfiguration { get => this._iPConfiguration; set => this._iPConfiguration = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -59,8 +59,8 @@ public partial interface IInboundEndpointProperties : ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] IPConfiguration { get; set; } /// /// The current provisioning state of the inbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. @@ -87,7 +87,7 @@ internal partial interface IInboundEndpointPropertiesInternal { /// IP configurations for the inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] IPConfiguration { get; set; } /// /// The current provisioning state of the inbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.json.cs index 154618a5f5e8..c94730d734fb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpointProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpointProperties(json) : null; } @@ -77,7 +77,7 @@ internal InboundEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_iPConfiguration = If( json?.PropertyT("ipConfigurations"), out var __jsonIPConfigurations) ? If( __jsonIPConfigurations as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration.FromJson(__u) )) ))() : null : IPConfiguration;} + {_iPConfiguration = If( json?.PropertyT("ipConfigurations"), out var __jsonIPConfigurations) ? If( __jsonIPConfigurations as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration.FromJson(__u) )) ))() : null : IPConfiguration;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_resourceGuid = If( json?.PropertyT("resourceGuid"), out var __jsonResourceGuid) ? (string)__jsonResourceGuid : (string)ResourceGuid;} AfterFromJson(json); diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.PowerShell.cs similarity index 52% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.PowerShell.cs index 12a7165208ca..18b5cfe509b3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class OutboundEndpoint partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OutboundEndpoint(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpoint(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,81 +105,81 @@ internal OutboundEndpoint(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)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.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Subnet")) + if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)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.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -192,75 +194,75 @@ internal OutboundEndpoint(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)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.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Subnet")) + if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)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.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.TypeConverter.cs index 861feecc7d0b..82999ddb7d53 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.cs similarity index 51% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.cs index 4b0e6c37d8c7..0c26ef2d9d8f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes an outbound endpoint for a DNS resolver. public partial class OutboundEndpoint : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); /// Backing field for property. private string _etag; @@ -27,108 +27,107 @@ public partial class OutboundEndpoint : public string Etag { get => this._etag; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type = value; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).ResourceGuid = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).Subnet = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).Subnet = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties _property; /// Properties of the outbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointProperties()); set => this._property = value; } /// /// The current provisioning state of the outbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; } /// The resourceGuid property of the outbound endpoint resource. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).SubnetId = value ; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).SubnetId = value ; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public OutboundEndpoint() @@ -151,7 +150,7 @@ public OutboundEndpoint() /// Describes an outbound endpoint for a DNS resolver. public partial interface IOutboundEndpoint : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource { /// ETag of the outbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -188,64 +187,16 @@ public partial interface IOutboundEndpoint : SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string SubnetId { get; set; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } /// Describes an outbound endpoint for a DNS resolver. internal partial interface IOutboundEndpointInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal { /// ETag of the outbound endpoint. string Etag { get; set; } /// Properties of the outbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties Property { get; set; } /// /// The current provisioning state of the outbound endpoint. This is a read-only property and any attempt to set this value /// will be ignored. @@ -254,23 +205,9 @@ internal partial interface IOutboundEndpointInternal : /// The resourceGuid property of the outbound endpoint resource. string ResourceGuid { get; set; } /// The reference to the subnet used for the outbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.json.cs index 9a9485ed02bc..408d971896f7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpoint(json) : null; } @@ -77,9 +77,8 @@ internal OutboundEndpoint(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime { return; } - __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } @@ -106,10 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.PowerShell.cs index 97109d7435dc..d2429f0e3f26 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class OutboundEndpointListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OutboundEndpointListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointListResult(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -107,17 +107,17 @@ internal OutboundEndpointListResult(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,11 +132,11 @@ internal OutboundEndpointListResult(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.TypeConverter.cs index 463f74582d3a..01c0df8a2822 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.cs index 5d7c9153390e..8384c720e55e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// The response to an enumeration operation on outbound endpoints for a DNS resolver. /// public partial class OutboundEndpointListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -26,11 +26,11 @@ public partial class OutboundEndpointListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint[] _value; /// Enumeration of the outbound endpoints for a DNS resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public OutboundEndpointListResult() @@ -56,8 +56,8 @@ public partial interface IOutboundEndpointListResult : ReadOnly = false, Description = @"Enumeration of the outbound endpoints for a DNS resolver.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint[] Value { get; set; } } /// The response to an enumeration operation on outbound endpoints for a DNS resolver. @@ -67,7 +67,7 @@ internal partial interface IOutboundEndpointListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the outbound endpoints for a DNS resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.json.cs index 81dd90bc649c..93e3816b5ea8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class OutboundEndpointListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpointListResult(json) : null; } @@ -79,7 +79,7 @@ internal OutboundEndpointListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolv { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.PowerShell.cs similarity index 79% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.PowerShell.cs index 176e4f48ed55..dc00cb8d97d1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class OutboundEndpointPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OutboundEndpointPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointPatch(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,13 +105,13 @@ internal OutboundEndpointPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +126,7 @@ internal OutboundEndpointPatch(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.TypeConverter.cs index b512d1281e41..20f22680ff28 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.cs similarity index 78% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.cs index c7ee4173f585..7fb4d06d6923 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes an outbound endpoint for a DNS resolver for PATCH operation. public partial class OutboundEndpointPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags _tag; /// Tags for outbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTags()); set => this._tag = value; } /// Creates an new instance. public OutboundEndpointPatch() @@ -36,8 +36,8 @@ public partial interface IOutboundEndpointPatch : ReadOnly = false, Description = @"Tags for outbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags Tag { get; set; } } /// Describes an outbound endpoint for a DNS resolver for PATCH operation. @@ -45,7 +45,7 @@ internal partial interface IOutboundEndpointPatchInternal { /// Tags for outbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.json.cs index d7253c3bc968..d37d10518e00 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpointPatch partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpointPatch(json) : null; } @@ -77,7 +77,7 @@ internal OutboundEndpointPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.PowerShell.cs similarity index 88% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.PowerShell.cs index 28f7e0a653ac..e06046ad8765 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class OutboundEndpointPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OutboundEndpointPatchTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointPatchTags(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -109,7 +109,7 @@ internal OutboundEndpointPatchTags(global::System.Collections.IDictionary conten } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.TypeConverter.cs index e5bedcbc1431..eed46aa593ed 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.cs index 130257540a62..26c1f8982111 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for outbound endpoint. public partial class OutboundEndpointPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.dictionary.cs index 74ee8c05e364..e151082cc3ba 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.json.cs index 8bc6c526f870..8d75ab8f8bb3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpointPatchTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpointPatchTags(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.PowerShell.cs similarity index 67% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.PowerShell.cs index e28e50cc427f..b2a445c6e72c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class OutboundEndpointProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OutboundEndpointProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,25 +105,25 @@ internal OutboundEndpointProperties(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -138,19 +138,19 @@ internal OutboundEndpointProperties(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SubnetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.TypeConverter.cs index 0cd594336d55..0b7e651fe05a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.cs similarity index 82% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.cs index 355b502e8150..ab6b345c2fb6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.cs @@ -3,24 +3,24 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of an outbound endpoint for a DNS resolver. public partial class OutboundEndpointProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal { /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Internal Acessors for Subnet - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set { {_subnet = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set { {_subnet = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -40,15 +40,15 @@ public partial class OutboundEndpointProperties : public string ResourceGuid { get => this._resourceGuid; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource _subnet; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource _subnet; /// The reference to the subnet used for the outbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set => this._subnet = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set => this._subnet = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)Subnet).Id = value ; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)Subnet).Id = value ; } /// Creates an new instance. public OutboundEndpointProperties() @@ -101,7 +101,7 @@ internal partial interface IOutboundEndpointPropertiesInternal /// The resourceGuid property of the outbound endpoint resource. string ResourceGuid { get; set; } /// The reference to the subnet used for the outbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.json.cs index ca18053f0810..b2f68b532dbb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpointProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpointProperties(json) : null; } @@ -77,7 +77,7 @@ internal OutboundEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolv { return; } - {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonSubnet) : Subnet;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__jsonSubnet) : Subnet;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_resourceGuid = If( json?.PropertyT("resourceGuid"), out var __jsonResourceGuid) ? (string)__jsonResourceGuid : (string)ResourceGuid;} AfterFromJson(json); diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.PowerShell.cs similarity index 84% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.PowerShell.cs index d481d6b924ad..53668d0d18ac 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SubResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SubResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubResource(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,13 +103,13 @@ internal SubResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)this).Id, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +124,7 @@ internal SubResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)this).Id, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.TypeConverter.cs index 9cb243578dd2..2904d7084a8d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.cs index 555f66b0e2bf..ae7c10d8b099 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Reference to another ARM resource. public partial class SubResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal { /// Backing field for property. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.json.cs index 116e62cd5df1..5cd4c8f3e305 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SubResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new SubResource(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.PowerShell.cs index 07055eaa2003..8e9cd0e287c8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class SubResourceListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SubResourceListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubResourceListResult(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +105,17 @@ internal SubResourceListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +130,11 @@ internal SubResourceListResult(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.TypeConverter.cs index 322c1ab9f3d8..7c01560eeedf 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.cs index 45f381ebacd3..5a5be08d8176 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The response to an enumeration operation on sub-resources. public partial class SubResourceListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -24,11 +24,11 @@ public partial class SubResourceListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] _value; /// Enumeration of the sub-resources. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public SubResourceListResult() @@ -54,8 +54,8 @@ public partial interface ISubResourceListResult : ReadOnly = false, Description = @"Enumeration of the sub-resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] Value { get; set; } } /// The response to an enumeration operation on sub-resources. @@ -65,7 +65,7 @@ internal partial interface ISubResourceListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the sub-resources. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.json.cs index b37106718017..da22f500090c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SubResourceListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new SubResourceListResult(json) : null; } @@ -77,7 +77,7 @@ internal SubResourceListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.PowerShell.cs similarity index 78% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.PowerShell.cs index 17baedeb7fb3..2fa35fb0cf33 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TargetDnsServer partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TargetDnsServer(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetDnsServer(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +103,17 @@ internal TargetDnsServer(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +128,11 @@ internal TargetDnsServer(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.TypeConverter.cs index cc3174d9aa71..7a08c49a49e6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.cs index d318ad4f8e75..ee52bb7665d8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a server to forward the DNS queries to. public partial class TargetDnsServer : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal { /// Backing field for property. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.json.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.json.cs index 2b14acb7109c..af2f2a8b5c00 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TargetDnsServer partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new TargetDnsServer(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.PowerShell.cs similarity index 65% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.PowerShell.cs index 0ea253ff3a1c..3cfabcf2d565 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkDnsForwardingRuleset partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkDnsForwardingRuleset(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkDnsForwardingRuleset(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,25 +112,25 @@ internal VirtualNetworkDnsForwardingRuleset(global::System.Collections.IDictiona // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -145,19 +145,19 @@ internal VirtualNetworkDnsForwardingRuleset(global::System.Management.Automation // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs index 5cc9eb2810c6..7ec5f0b8c122 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.cs similarity index 68% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.cs index 2b14ab7467e4..0b4e49649d8e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Reference to DNS forwarding ruleset and associated virtual network link. public partial class VirtualNetworkDnsForwardingRuleset : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal { /// Backing field for property. @@ -21,21 +21,21 @@ public partial class VirtualNetworkDnsForwardingRuleset : public string Id { get => this._id; set => this._id = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkSubResourceProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkSubResourceProperties()); set { {_property = value;} } } /// Internal Acessors for VirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal.VirtualNetworkLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal.VirtualNetworkLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties _property; /// Properties of the virtual network link sub-resource reference. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkSubResourceProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkSubResourceProperties()); set => this._property = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId = value ?? null; } + public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId = value ?? null; } /// Creates an new instance. public VirtualNetworkDnsForwardingRuleset() @@ -72,9 +72,9 @@ internal partial interface IVirtualNetworkDnsForwardingRulesetInternal /// DNS Forwarding Ruleset Resource ID. string Id { get; set; } /// Properties of the virtual network link sub-resource reference. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties Property { get; set; } /// The reference to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetworkLink { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetworkLink { get; set; } /// Resource ID. string VirtualNetworkLinkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.json.cs similarity index 93% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.json.cs index 7d3f79c4410c..c814c1bd2355 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkDnsForwardingRuleset partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkDnsForwardingRuleset(json) : null; } @@ -103,7 +103,7 @@ internal VirtualNetworkDnsForwardingRuleset(Microsoft.Azure.PowerShell.Cmdlets.D { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkSubResourceProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkSubResourceProperties.FromJson(__jsonProperties) : Property;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs similarity index 71% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs index a40bb6b23b6e..5909ace4d4a8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkDnsForwardingRulesetListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkDnsForwardingRulesetListResult(content); } @@ -92,7 +92,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -100,7 +100,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -115,17 +115,17 @@ internal VirtualNetworkDnsForwardingRulesetListResult(global::System.Collections // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,11 +140,11 @@ internal VirtualNetworkDnsForwardingRulesetListResult(global::System.Management. // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs index e8a843a8e83d..0005fb22fdae 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.cs similarity index 83% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.cs index 41d59b7e9052..65903b09099a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// The response to an enumeration operation on Virtual Network DNS Forwarding Ruleset. /// public partial class VirtualNetworkDnsForwardingRulesetListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -26,11 +26,11 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset[] _value; /// Enumeration of the Virtual Network DNS Forwarding Ruleset. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } /// /// Creates an new instance. @@ -58,8 +58,8 @@ public partial interface IVirtualNetworkDnsForwardingRulesetListResult : ReadOnly = false, Description = @"Enumeration of the Virtual Network DNS Forwarding Ruleset.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } } /// The response to an enumeration operation on Virtual Network DNS Forwarding Ruleset. @@ -69,7 +69,7 @@ internal partial interface IVirtualNetworkDnsForwardingRulesetListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the Virtual Network DNS Forwarding Ruleset. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.json.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.json.cs index dcf0c58e01ff..edf32d51200f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkDnsForwardingRulesetListResult(json) : null; } @@ -118,7 +118,7 @@ internal VirtualNetworkDnsForwardingRulesetListResult(Microsoft.Azure.PowerShell { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRuleset.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRuleset.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.PowerShell.cs similarity index 50% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.PowerShell.cs index eca5ef3d1a0e..4499180ea891 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class VirtualNetworkLink partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLink(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLink(content); } @@ -85,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,73 +110,73 @@ internal VirtualNetworkLink(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)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.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("VirtualNetwork")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("Metadata")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)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.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -189,67 +191,67 @@ internal VirtualNetworkLink(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)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.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("VirtualNetwork")) + if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("Metadata")) + if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)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.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.TypeConverter.cs index 7e755ef18058..c106b48201d6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.cs similarity index 50% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.cs index 6bee450d2dce..d1204f9ed17d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.cs @@ -3,20 +3,20 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a virtual network link. public partial class VirtualNetworkLink : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); /// Backing field for property. private string _etag; @@ -26,97 +26,96 @@ public partial class VirtualNetworkLink : public string Etag { get => this._etag; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } /// Metadata attached to the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).Metadata = value ?? null /* model class */; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for VirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } - /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork = value; } + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties _property; /// Properties of the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkProperties()); set => this._property = value; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -139,7 +138,7 @@ public VirtualNetworkLink() /// Describes a virtual network link. public partial interface IVirtualNetworkLink : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource { /// ETag of the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -155,8 +154,8 @@ public partial interface IVirtualNetworkLink : ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. @@ -168,54 +167,6 @@ public partial interface IVirtualNetworkLink : SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, @@ -228,35 +179,21 @@ public partial interface IVirtualNetworkLink : } /// Describes a virtual network link. internal partial interface IVirtualNetworkLinkInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal { /// ETag of the virtual network link. string Etag { get; set; } /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } /// Properties of the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties Property { get; set; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. /// Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.json.cs index 81318b1c9845..e6e668c4001e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLink partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLink(json) : null; } @@ -87,10 +87,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } @@ -110,9 +106,8 @@ internal VirtualNetworkLink(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runti { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.PowerShell.cs index 4a3b5c1b3c59..c35bfbc39e31 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkListResult(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,17 +110,17 @@ internal VirtualNetworkLinkListResult(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,11 +135,11 @@ internal VirtualNetworkLinkListResult(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.TypeConverter.cs index 5b4ee1d339ad..b3ce6c9f3e27 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.cs similarity index 84% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.cs index f310785ee642..e6c32ac39015 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// The response to an enumeration operation on virtual network links. public partial class VirtualNetworkLinkListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Backing field for property. private string _nextLink; @@ -24,11 +24,11 @@ public partial class VirtualNetworkLinkListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink[] _value; /// Enumeration of the virtual network links. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public VirtualNetworkLinkListResult() @@ -54,8 +54,8 @@ public partial interface IVirtualNetworkLinkListResult : ReadOnly = false, Description = @"Enumeration of the virtual network links.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink[] Value { get; set; } } /// The response to an enumeration operation on virtual network links. @@ -65,7 +65,7 @@ internal partial interface IVirtualNetworkLinkListResultInternal /// The continuation token for the next page of results. string NextLink { get; set; } /// Enumeration of the virtual network links. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.json.cs index f9e9fd768a1e..8001306a9a1e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkListResult(json) : null; } @@ -113,7 +113,7 @@ internal VirtualNetworkLinkListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsReso { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.PowerShell.cs similarity index 72% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.PowerShell.cs index dce21976d2af..40f6d7ec6b22 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkPatch(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatch(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,17 +110,17 @@ internal VirtualNetworkLinkPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,11 +135,11 @@ internal VirtualNetworkLinkPatch(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.TypeConverter.cs index a3c43382c9c1..043060df263b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.cs similarity index 64% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.cs index 5e0c2c790828..945db1067801 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.cs @@ -3,29 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a virtual network link for PATCH operation. public partial class VirtualNetworkLinkPatch : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal { /// Metadata attached to the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties _property; /// Updatable properties of the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchProperties()); set => this._property = value; } /// Creates an new instance. public VirtualNetworkLinkPatch() @@ -43,8 +43,8 @@ public partial interface IVirtualNetworkLinkPatch : ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } } /// Describes a virtual network link for PATCH operation. @@ -52,9 +52,9 @@ internal partial interface IVirtualNetworkLinkPatchInternal { /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } /// Updatable properties of the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties Property { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.json.cs similarity index 93% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.json.cs index b84f28aae57f..d461165ff65f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPatch partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkPatch(json) : null; } @@ -101,7 +101,7 @@ internal VirtualNetworkLinkPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.PowerShell.cs similarity index 78% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.PowerShell.cs index b12d2311bd2e..c02143157fef 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPatchProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkPatchProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatchProperties(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,13 +112,13 @@ internal VirtualNetworkLinkPatchProperties(global::System.Collections.IDictionar // actually deserialize if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,7 +133,7 @@ internal VirtualNetworkLinkPatchProperties(global::System.Management.Automation. // actually deserialize if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.TypeConverter.cs index 4e27ea7f0fb9..e856b062fe8a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.cs similarity index 75% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.cs index fbdb65fb001d..a55f2f0fca41 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the updatable properties of the virtual network link. public partial class VirtualNetworkLinkPatchProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata _metadata; /// Metadata attached to the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadata()); set => this._metadata = value; } /// Creates an new instance. public VirtualNetworkLinkPatchProperties() @@ -36,8 +36,8 @@ public partial interface IVirtualNetworkLinkPatchProperties : ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } } /// Represents the updatable properties of the virtual network link. @@ -45,7 +45,7 @@ internal partial interface IVirtualNetworkLinkPatchPropertiesInternal { /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.json.cs similarity index 93% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.json.cs index 83ebe0898b36..78442d36ce66 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPatchProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkPatchProperties(json) : null; } @@ -101,7 +101,7 @@ internal VirtualNetworkLinkPatchProperties(Microsoft.Azure.PowerShell.Cmdlets.Dn { return; } - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} AfterFromJson(json); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs index a736cf78ade1..2c0cb0cf83f7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkPatchPropertiesMetadata(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatchPropertiesMetadata(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VirtualNetworkLinkPatchPropertiesMetadata(global::System.Collections.ID } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs index 91f36d502dd4..2cf8c33b4040 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.cs index 7cdb81fe10f0..349641d35891 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Metadata attached to the virtual network link. public partial class VirtualNetworkLinkPatchPropertiesMetadata : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadataInternal { /// diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs index 51de82331a66..01bafaa4710c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.json.cs index f51fb19de78a..4af08a9c9aed 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadata partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkPatchPropertiesMetadata(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.PowerShell.cs similarity index 64% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.PowerShell.cs index 07f49313c29e..727ea935698b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkProperties(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,25 +110,25 @@ internal VirtualNetworkLinkProperties(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -143,19 +143,19 @@ internal VirtualNetworkLinkProperties(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.TypeConverter.cs index 6f10192e6806..de73bd04efa5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.cs similarity index 75% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.cs index 44b68ef9573f..ad56f93acf8b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Represents the properties of a virtual network link. public partial class VirtualNetworkLinkProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata _metadata; /// Metadata attached to the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata()); set => this._metadata = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for VirtualNetwork - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set { {_virtualNetwork = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set { {_virtualNetwork = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -37,15 +37,15 @@ public partial class VirtualNetworkLinkProperties : public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource _virtualNetwork; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource _virtualNetwork; /// The reference to the virtual network. This cannot be changed after creation. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set => this._virtualNetwork = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set => this._virtualNetwork = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetwork).Id = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetwork).Id = value ; } /// Creates an new instance. public VirtualNetworkLinkProperties() @@ -63,8 +63,8 @@ public partial interface IVirtualNetworkLinkProperties : ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. @@ -91,14 +91,14 @@ internal partial interface IVirtualNetworkLinkPropertiesInternal { /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. /// Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.json.cs similarity index 93% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.json.cs index ee386a9bdd1c..9b9fdc83f17c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkProperties(json) : null; } @@ -106,8 +106,8 @@ internal VirtualNetworkLinkProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsReso { return; } - {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs index 9ee4db66733b..86d6a850d5c9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkPropertiesMetadata(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPropertiesMetadata(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -116,7 +116,7 @@ internal VirtualNetworkLinkPropertiesMetadata(global::System.Collections.IDictio } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs index e01842de8ee1..a88fe5495cfe 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.cs index 3576f90ca9bf..a03f99ad60ca 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Metadata attached to the virtual network link. public partial class VirtualNetworkLinkPropertiesMetadata : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadataInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.dictionary.cs index 708e4ecb5587..ae2996324b5e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.json.cs index a93a70e85797..9310267187a9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPropertiesMetadata partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkPropertiesMetadata(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.PowerShell.cs similarity index 74% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.PowerShell.cs index e38d28e5a0b9..c966d057bb1a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class VirtualNetworkLinkSubResourceProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLinkSubResourceProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkSubResourceProperties(content); } @@ -92,7 +92,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -100,7 +100,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -115,17 +115,17 @@ internal VirtualNetworkLinkSubResourceProperties(global::System.Collections.IDic // actually deserialize if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,11 +140,11 @@ internal VirtualNetworkLinkSubResourceProperties(global::System.Management.Autom // actually deserialize if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs index ae5061684e6e..f6c9fe0e9837 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.cs similarity index 71% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.cs index dffc2b4168a5..9135be3186dd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,23 +11,23 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// The reference to the virtual network link that associates between the DNS forwarding ruleset and virtual network. /// public partial class VirtualNetworkLinkSubResourceProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal { /// Internal Acessors for VirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal.VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set { {_virtualNetworkLink = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal.VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set { {_virtualNetworkLink = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource _virtualNetworkLink; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource _virtualNetworkLink; /// The reference to the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set => this._virtualNetworkLink = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set => this._virtualNetworkLink = value; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetworkLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetworkLink).Id = value ?? null; } + public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetworkLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetworkLink).Id = value ?? null; } /// Creates an new instance. public VirtualNetworkLinkSubResourceProperties() @@ -54,7 +54,7 @@ internal partial interface IVirtualNetworkLinkSubResourcePropertiesInternal { /// The reference to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetworkLink { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetworkLink { get; set; } /// Resource ID. string VirtualNetworkLinkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.json.cs similarity index 93% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.json.cs index dd327b9768ed..dd7724c4ee0b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class VirtualNetworkLinkSubResourceProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkSubResourceProperties(json) : null; } @@ -105,7 +105,7 @@ internal VirtualNetworkLinkSubResourceProperties(Microsoft.Azure.PowerShell.Cmdl { return; } - {_virtualNetworkLink = If( json?.PropertyT("virtualNetworkLink"), out var __jsonVirtualNetworkLink) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonVirtualNetworkLink) : VirtualNetworkLink;} + {_virtualNetworkLink = If( json?.PropertyT("virtualNetworkLink"), out var __jsonVirtualNetworkLink) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__jsonVirtualNetworkLink) : VirtualNetworkLink;} AfterFromJson(json); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs similarity index 67% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs index c2dcff836393..19d700f9bfb5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs @@ -3,15 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] - public partial class Resource + /// The resource management error additional info. + [System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfoTypeConverter))] + public partial class ErrorAdditionalInfo { /// @@ -57,44 +55,37 @@ public partial class Resource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new Resource(content); + return new ErrorAdditionalInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new Resource(content); + return new ErrorAdditionalInfo(content); } /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal Resource(global::System.Collections.IDictionary content) + internal ErrorAdditionalInfo(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -103,27 +94,23 @@ internal Resource(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Type")) + if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal Resource(global::System.Management.Automation.PSObject content) + internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -132,29 +119,32 @@ internal Resource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) + if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Type")) + if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.AnyTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// Common fields that are returned in the response for all Azure Resource Manager resources - [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] - public partial interface IResource + /// The resource management error additional info. + [System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfoTypeConverter))] + public partial interface IErrorAdditionalInfo { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs new file mode 100644 index 000000000000..ed145ca7b2c0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorAdditionalInfoTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ErrorAdditionalInfo.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ErrorAdditionalInfo.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ErrorAdditionalInfo.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs new file mode 100644 index 000000000000..79c4d7e9430b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The resource management error additional info. + public partial class ErrorAdditionalInfo : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny _info; + + /// The additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Any()); } + + /// Internal Acessors for Info + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Any()); set { {_info = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _type; + + /// The additional info type. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public ErrorAdditionalInfo() + { + + } + } + /// The resource management error additional info. + public partial interface IErrorAdditionalInfo : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The additional info.", + SerializedName = @"info", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny Info { get; } + /// The additional info type. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The additional info type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// The resource management error additional info. + internal partial interface IErrorAdditionalInfoInternal + + { + /// The additional info. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny Info { get; set; } + /// The additional info type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs new file mode 100644 index 000000000000..7214c0dfa483 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The resource management error additional info. + public partial class ErrorAdditionalInfo + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Any.FromJson(__jsonInfo) : Info;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._info ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._info.ToJson(null,serializationMode) : null, "info" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs similarity index 56% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs index 1672dce7002a..584e90b82e67 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs @@ -3,15 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// - /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - /// - [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] - public partial class TrackedResource + /// The error detail. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))] + public partial class ErrorDetail { /// @@ -57,49 +55,37 @@ public partial class TrackedResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new TrackedResource(content); + return new ErrorDetail(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new TrackedResource(content); + return new ErrorDetail(content); } /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal TrackedResource(global::System.Collections.IDictionary content) + internal ErrorDetail(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -108,35 +94,35 @@ internal TrackedResource(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Tag")) + if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } - if (content.Contains("Location")) + if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } - if (content.Contains("Name")) + if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); } - if (content.Contains("Type")) + if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal TrackedResource(global::System.Management.Automation.PSObject content) + internal ErrorDetail(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -145,32 +131,44 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Tag")) + if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } - if (content.Contains("Location")) + if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } - if (content.Contains("Name")) + if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); } - if (content.Contains("Type")) + if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); } - /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] - public partial interface ITrackedResource + /// The error detail. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))] + public partial interface IErrorDetail { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs new file mode 100644 index 000000000000..8e93e79e579c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorDetailTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ErrorDetail.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ErrorDetail.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ErrorDetail.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.cs new file mode 100644 index 000000000000..8fcdacd18862 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.cs @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The error detail. + public partial class ErrorDetail : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] _additionalInfo; + + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } + + /// Backing field for property. + private string _code; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Code { get => this._code; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] _detail; + + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get => this._detail; } + + /// Backing field for property. + private string _message; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Message { get => this._message; } + + /// Internal Acessors for AdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } } + + /// Internal Acessors for Detail + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } } + + /// Internal Acessors for Target + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } } + + /// Backing field for property. + private string _target; + + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Target { get => this._target; } + + /// Creates an new instance. + public ErrorDetail() + { + + } + } + /// The error detail. + public partial interface IErrorDetail : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error additional info.", + SerializedName = @"additionalInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; } + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error details.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error target.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; } + + } + /// The error detail. + internal partial interface IErrorDetailInternal + + { + /// The error additional info. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + /// The error code. + string Code { get; set; } + /// The error details. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; set; } + /// The error message. + string Message { get; set; } + /// The error target. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs new file mode 100644 index 000000000000..5d329203add7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The error detail. + public partial class ErrorDetail + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail.FromJson(__u) )) ))() : null : Detail;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._detail) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._detail ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("details",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._additionalInfo) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __s in this._additionalInfo ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("additionalInfo",__r); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs new file mode 100644 index 000000000000..904c4258982b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs @@ -0,0 +1,188 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + /// + [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] + public partial class ErrorResponse + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ErrorResponse(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ErrorResponse(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ErrorResponse(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("AdditionalInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ErrorResponse(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("AdditionalInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] + public partial interface IErrorResponse + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs new file mode 100644 index 000000000000..5a3fe6d5ff01 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorResponseTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ErrorResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ErrorResponse.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ErrorResponse.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.cs new file mode 100644 index 000000000000..3972ad374a4d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.cs @@ -0,0 +1,136 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + /// + public partial class ErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal + { + + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo; } + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Code; } + + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Detail; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail _error; + + /// The error object. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail()); set => this._error = value; } + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Message; } + + /// Internal Acessors for AdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo = value; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Code = value; } + + /// Internal Acessors for Detail + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Detail = value; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail()); set { {_error = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Message = value; } + + /// Internal Acessors for Target + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Target = value; } + + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Target; } + + /// Creates an new instance. + public ErrorResponse() + { + + } + } + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + public partial interface IErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error additional info.", + SerializedName = @"additionalInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; } + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error details.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error target.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; } + + } + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + internal partial interface IErrorResponseInternal + + { + /// The error additional info. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + /// The error code. + string Code { get; set; } + /// The error details. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; set; } + /// The error object. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail Error { get; set; } + /// The error message. + string Message { get; set; } + /// The error target. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs new file mode 100644 index 000000000000..34ba90bd5c84 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + /// + public partial class ErrorResponse + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail.FromJson(__jsonError) : Error;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.PowerShell.cs new file mode 100644 index 000000000000..37e2cbb085d2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.PowerShell.cs @@ -0,0 +1,218 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + /// + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial class ProxyResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProxyResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProxyResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProxyResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProxyResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial interface IProxyResource + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.TypeConverter.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.TypeConverter.cs index c3a4ac86557b..4c74a7f56e06 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.cs new file mode 100644 index 000000000000..456c0473efc8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + /// + public partial class ProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ProxyResource() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + public partial interface IProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource + { + + } + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + internal partial interface IProxyResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.json.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.json.cs index 440ab172e2b6..e15aa3501645 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ProxyResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ProxyResource(json) : null; } @@ -79,7 +79,7 @@ internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Js { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.PowerShell.cs new file mode 100644 index 000000000000..0caa7ecd33f5 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.PowerShell.cs @@ -0,0 +1,218 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial class Resource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Resource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Resource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Resource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Resource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Common fields that are returned in the response for all Azure Resource Manager resources + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial interface IResource + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.TypeConverter.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.TypeConverter.cs index 28a8e072d850..41ccbfdb0d5a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.cs new file mode 100644 index 000000000000..6ea7a83f8b33 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.cs @@ -0,0 +1,208 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// + public partial class Resource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal + { + + /// Backing field for property. + private string _id; + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData()); set { {_systemData = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData _systemData; + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData()); } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Backing field for property. + private string _type; + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public Resource() + { + + } + } + /// Common fields that are returned in the response for all Azure Resource Manager resources + public partial interface IResource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Fully qualified resource ID for the resource. E.g. ""/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}""", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of the resource", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource creation (UTC).", + SerializedName = @"createdAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataCreatedAt { get; set; } + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that created the resource.", + SerializedName = @"createdBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataCreatedBy { get; set; } + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that created the resource.", + SerializedName = @"createdByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource last modification (UTC)", + SerializedName = @"lastModifiedAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataLastModifiedAt { get; set; } + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that last modified the resource.", + SerializedName = @"lastModifiedBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataLastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that last modified the resource.", + SerializedName = @"lastModifiedByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// Common fields that are returned in the response for all Azure Resource Manager resources + internal partial interface IResourceInternal + + { + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + string Id { get; set; } + /// The name of the resource + string Name { get; set; } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get; set; } + /// The timestamp of resource creation (UTC). + global::System.DateTime? SystemDataCreatedAt { get; set; } + /// The identity that created the resource. + string SystemDataCreatedBy { get; set; } + /// The type of identity that created the resource. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } + /// The timestamp of resource last modification (UTC) + global::System.DateTime? SystemDataLastModifiedAt { get; set; } + /// The identity that last modified the resource. + string SystemDataLastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.json.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.json.cs index 4e256692960d..9c790ab171e4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class Resource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new Resource(json) : null; } @@ -79,6 +79,7 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.Js { return; } + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData.FromJson(__jsonSystemData) : SystemData;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} @@ -105,6 +106,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.PowerShell.cs similarity index 84% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.PowerShell.cs index 6acfeceb24d1..1cfe0cb684f1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SystemData partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SystemData(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SystemData(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISyste /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,33 +103,33 @@ internal SystemData(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)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.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)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("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -144,27 +144,27 @@ internal SystemData(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)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.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)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("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.TypeConverter.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.TypeConverter.cs index 8ef1d1476283..ba89734c98cd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.cs similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.cs index 4a7844880796..7b3109104761 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Metadata pertaining to creation and last modification of the resource. public partial class SystemData : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal { /// Backing field for property. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.json.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.json.cs index 3a5042930069..c15271e7f1d2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SystemData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new SystemData(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.PowerShell.cs new file mode 100644 index 000000000000..39d08e131939 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.PowerShell.cs @@ -0,0 +1,234 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + /// + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] + public partial class TrackedResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TrackedResource(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TrackedResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal TrackedResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TrackedResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] + public partial interface ITrackedResource + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.TypeConverter.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.TypeConverter.cs index 112bd4ee3d1b..072ddf9cea2d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.cs new file mode 100644 index 000000000000..81d10fe7862f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + /// + public partial class TrackedResource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } + + /// Backing field for property. + private string _location; + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags()); set => this._tag = value; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public TrackedResource() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + public partial interface ITrackedResource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource + { + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The geo-location where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get; set; } + + } + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + internal partial interface ITrackedResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal + { + /// The geo-location where the resource lives + string Location { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.json.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.json.cs index aa9504ef6a1b..20b7456d1b14 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class TrackedResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new TrackedResource(json) : null; } @@ -105,8 +105,8 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(json); - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTags.FromJson(__jsonTags) : Tag;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags.FromJson(__jsonTags) : Tag;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.PowerShell.cs similarity index 92% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.PowerShell.cs index eecb38fca01c..639d43011a42 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TrackedResourceTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResourceTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResourceTags(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrack /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrack public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,7 +112,7 @@ internal TrackedResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.TypeConverter.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.TypeConverter.cs index f5eb0b6c1e1a..8e1b0b57a003 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.cs index 35e2f09c0b60..14a263013dd0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Resource tags. public partial class TrackedResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.dictionary.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.dictionary.cs index 20a5c607b5b4..6dbc46d2f096 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.json.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.json.cs index e6139af9fe5d..700310ad971a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TrackedResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new TrackedResourceTags(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..515d0617212c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListsDeleteAcceptedResponseHeadersTypeConverter))] + public partial class DnsResolverDomainListsDeleteAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListsDeleteAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListsDeleteAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListsDeleteAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverDomainListsDeleteAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content + /// from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListsDeleteAcceptedResponseHeadersTypeConverter))] + public partial interface IDnsResolverDomainListsDeleteAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..cd306a0d90a3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListsDeleteAcceptedResponseHeadersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a + /// type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListsDeleteAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListsDeleteAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListsDeleteAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..5891a4285b18 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverDomainListsDeleteAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// Creates an new instance. + /// + public DnsResolverDomainListsDeleteAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + } + } + public partial interface IDnsResolverDomainListsDeleteAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + } + internal partial interface IDnsResolverDomainListsDeleteAcceptedResponseHeadersInternal + + { + string Location { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..b94664dc4644 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsDeleteAcceptedResponseHeaders.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverDomainListsDeleteAcceptedResponseHeaders + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainListsDeleteAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsDeleteAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListsDeleteAcceptedResponseHeaders(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..b6aacaf1f2d5 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListsUpdateAcceptedResponseHeadersTypeConverter))] + public partial class DnsResolverDomainListsUpdateAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListsUpdateAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListsUpdateAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListsUpdateAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverDomainListsUpdateAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content + /// from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListsUpdateAcceptedResponseHeadersTypeConverter))] + public partial interface IDnsResolverDomainListsUpdateAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..dc33fcb1b07e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListsUpdateAcceptedResponseHeadersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a + /// type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListsUpdateAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListsUpdateAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListsUpdateAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..7a6e5c98c00b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverDomainListsUpdateAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// Creates an new instance. + /// + public DnsResolverDomainListsUpdateAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + } + } + public partial interface IDnsResolverDomainListsUpdateAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + } + internal partial interface IDnsResolverDomainListsUpdateAcceptedResponseHeadersInternal + + { + string Location { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..80b6c3c72ed5 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverDomainListsUpdateAcceptedResponseHeaders.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverDomainListsUpdateAcceptedResponseHeaders + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainListsUpdateAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverDomainListsUpdateAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListsUpdateAcceptedResponseHeaders(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs index abb9beed30b7..966727a1972e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs @@ -129,6 +129,22 @@ internal DnsResolverIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName = (string) content.GetValueForProperty("VirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName, global::System.Convert.ToString); } + if (content.Contains("DnsResolverPolicyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName = (string) content.GetValueForProperty("DnsResolverPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName, global::System.Convert.ToString); + } + if (content.Contains("DnsSecurityRuleName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName = (string) content.GetValueForProperty("DnsSecurityRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName, global::System.Convert.ToString); + } + if (content.Contains("DnsResolverPolicyVirtualNetworkLinkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName = (string) content.GetValueForProperty("DnsResolverPolicyVirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName, global::System.Convert.ToString); + } + if (content.Contains("DnsResolverDomainListName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName = (string) content.GetValueForProperty("DnsResolverDomainListName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName, global::System.Convert.ToString); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).Id, global::System.Convert.ToString); @@ -186,6 +202,22 @@ internal DnsResolverIdentity(global::System.Management.Automation.PSObject conte { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName = (string) content.GetValueForProperty("VirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName, global::System.Convert.ToString); } + if (content.Contains("DnsResolverPolicyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName = (string) content.GetValueForProperty("DnsResolverPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName, global::System.Convert.ToString); + } + if (content.Contains("DnsSecurityRuleName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName = (string) content.GetValueForProperty("DnsSecurityRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName, global::System.Convert.ToString); + } + if (content.Contains("DnsResolverPolicyVirtualNetworkLinkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName = (string) content.GetValueForProperty("DnsResolverPolicyVirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName, global::System.Convert.ToString); + } + if (content.Contains("DnsResolverDomainListName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName = (string) content.GetValueForProperty("DnsResolverDomainListName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName, global::System.Convert.ToString); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).Id, global::System.Convert.ToString); diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs index 8d4ea8b71708..e885fd27d384 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs @@ -19,6 +19,13 @@ public partial class DnsResolverIdentity : [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string DnsForwardingRulesetName { get => this._dnsForwardingRulesetName; set => this._dnsForwardingRulesetName = value; } + /// Backing field for property. + private string _dnsResolverDomainListName; + + /// The name of the DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string DnsResolverDomainListName { get => this._dnsResolverDomainListName; set => this._dnsResolverDomainListName = value; } + /// Backing field for property. private string _dnsResolverName; @@ -26,6 +33,31 @@ public partial class DnsResolverIdentity : [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string DnsResolverName { get => this._dnsResolverName; set => this._dnsResolverName = value; } + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// + /// Backing field for property. + /// + private string _dnsResolverPolicyVirtualNetworkLinkName; + + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string DnsResolverPolicyVirtualNetworkLinkName { get => this._dnsResolverPolicyVirtualNetworkLinkName; set => this._dnsResolverPolicyVirtualNetworkLinkName = value; } + + /// Backing field for property. + private string _dnsSecurityRuleName; + + /// The name of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string DnsSecurityRuleName { get => this._dnsSecurityRuleName; set => this._dnsSecurityRuleName = value; } + /// Backing field for property. private string _forwardingRuleName; @@ -64,7 +96,7 @@ public partial class DnsResolverIdentity : /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -99,6 +131,14 @@ public partial interface IDnsResolverIdentity : SerializedName = @"dnsForwardingRulesetName", PossibleTypes = new [] { typeof(string) })] string DnsForwardingRulesetName { get; set; } + /// The name of the DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the DNS resolver domain list.", + SerializedName = @"dnsResolverDomainListName", + PossibleTypes = new [] { typeof(string) })] + string DnsResolverDomainListName { get; set; } /// The name of the DNS resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -107,6 +147,32 @@ public partial interface IDnsResolverIdentity : SerializedName = @"dnsResolverName", PossibleTypes = new [] { typeof(string) })] string DnsResolverName { get; set; } + /// The name of the DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + string DnsResolverPolicyName { get; set; } + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the DNS resolver policy virtual network link for the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyVirtualNetworkLinkName", + PossibleTypes = new [] { typeof(string) })] + string DnsResolverPolicyVirtualNetworkLinkName { get; set; } + /// The name of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the DNS security rule.", + SerializedName = @"dnsSecurityRuleName", + PossibleTypes = new [] { typeof(string) })] + string DnsSecurityRuleName { get; set; } /// The name of the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -147,11 +213,11 @@ public partial interface IDnsResolverIdentity : SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] string ResourceGroupName { get; set; } - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] string SubscriptionId { get; set; } @@ -178,8 +244,18 @@ internal partial interface IDnsResolverIdentityInternal { /// The name of the DNS forwarding ruleset. string DnsForwardingRulesetName { get; set; } + /// The name of the DNS resolver domain list. + string DnsResolverDomainListName { get; set; } /// The name of the DNS resolver. string DnsResolverName { get; set; } + /// The name of the DNS resolver policy. + string DnsResolverPolicyName { get; set; } + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + string DnsResolverPolicyVirtualNetworkLinkName { get; set; } + /// The name of the DNS security rule. + string DnsSecurityRuleName { get; set; } /// The name of the forwarding rule. string ForwardingRuleName { get; set; } /// Resource identity path @@ -190,7 +266,7 @@ internal partial interface IDnsResolverIdentityInternal string OutboundEndpointName { get; set; } /// The name of the resource group. The name is case insensitive. string ResourceGroupName { get; set; } - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. string SubscriptionId { get; set; } /// The name of the virtual network link. string VirtualNetworkLinkName { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs index 4bff27802e07..a7cb4e5da4d8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs @@ -73,6 +73,10 @@ internal DnsResolverIdentity(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runt {_dnsForwardingRulesetName = If( json?.PropertyT("dnsForwardingRulesetName"), out var __jsonDnsForwardingRulesetName) ? (string)__jsonDnsForwardingRulesetName : (string)DnsForwardingRulesetName;} {_forwardingRuleName = If( json?.PropertyT("forwardingRuleName"), out var __jsonForwardingRuleName) ? (string)__jsonForwardingRuleName : (string)ForwardingRuleName;} {_virtualNetworkLinkName = If( json?.PropertyT("virtualNetworkLinkName"), out var __jsonVirtualNetworkLinkName) ? (string)__jsonVirtualNetworkLinkName : (string)VirtualNetworkLinkName;} + {_dnsResolverPolicyName = If( json?.PropertyT("dnsResolverPolicyName"), out var __jsonDnsResolverPolicyName) ? (string)__jsonDnsResolverPolicyName : (string)DnsResolverPolicyName;} + {_dnsSecurityRuleName = If( json?.PropertyT("dnsSecurityRuleName"), out var __jsonDnsSecurityRuleName) ? (string)__jsonDnsSecurityRuleName : (string)DnsSecurityRuleName;} + {_dnsResolverPolicyVirtualNetworkLinkName = If( json?.PropertyT("dnsResolverPolicyVirtualNetworkLinkName"), out var __jsonDnsResolverPolicyVirtualNetworkLinkName) ? (string)__jsonDnsResolverPolicyVirtualNetworkLinkName : (string)DnsResolverPolicyVirtualNetworkLinkName;} + {_dnsResolverDomainListName = If( json?.PropertyT("dnsResolverDomainListName"), out var __jsonDnsResolverDomainListName) ? (string)__jsonDnsResolverDomainListName : (string)DnsResolverDomainListName;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } @@ -117,6 +121,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs AddIf( null != (((object)this._dnsForwardingRulesetName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsForwardingRulesetName.ToString()) : null, "dnsForwardingRulesetName" ,container.Add ); AddIf( null != (((object)this._forwardingRuleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._forwardingRuleName.ToString()) : null, "forwardingRuleName" ,container.Add ); AddIf( null != (((object)this._virtualNetworkLinkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._virtualNetworkLinkName.ToString()) : null, "virtualNetworkLinkName" ,container.Add ); + AddIf( null != (((object)this._dnsResolverPolicyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverPolicyName.ToString()) : null, "dnsResolverPolicyName" ,container.Add ); + AddIf( null != (((object)this._dnsSecurityRuleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsSecurityRuleName.ToString()) : null, "dnsSecurityRuleName" ,container.Add ); + AddIf( null != (((object)this._dnsResolverPolicyVirtualNetworkLinkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverPolicyVirtualNetworkLinkName.ToString()) : null, "dnsResolverPolicyVirtualNetworkLinkName" ,container.Add ); + AddIf( null != (((object)this._dnsResolverDomainListName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverDomainListName.ToString()) : null, "dnsResolverDomainListName" ,container.Add ); AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..27adb4de3675 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(DnsResolverPoliciesDeleteAcceptedResponseHeadersTypeConverter))] + public partial class DnsResolverPoliciesDeleteAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPoliciesDeleteAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPoliciesDeleteAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPoliciesDeleteAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPoliciesDeleteAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(DnsResolverPoliciesDeleteAcceptedResponseHeadersTypeConverter))] + public partial interface IDnsResolverPoliciesDeleteAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..5d867c8c0bc1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPoliciesDeleteAcceptedResponseHeadersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPoliciesDeleteAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPoliciesDeleteAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPoliciesDeleteAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..021d0c309e5a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPoliciesDeleteAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// Creates an new instance. + /// + public DnsResolverPoliciesDeleteAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + } + } + public partial interface IDnsResolverPoliciesDeleteAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + } + internal partial interface IDnsResolverPoliciesDeleteAcceptedResponseHeadersInternal + + { + string Location { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..92d3c9c932aa --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesDeleteAcceptedResponseHeaders.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPoliciesDeleteAcceptedResponseHeaders + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPoliciesDeleteAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesDeleteAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPoliciesDeleteAcceptedResponseHeaders(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..4656fda635fe --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(DnsResolverPoliciesUpdateAcceptedResponseHeadersTypeConverter))] + public partial class DnsResolverPoliciesUpdateAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPoliciesUpdateAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPoliciesUpdateAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPoliciesUpdateAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPoliciesUpdateAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(DnsResolverPoliciesUpdateAcceptedResponseHeadersTypeConverter))] + public partial interface IDnsResolverPoliciesUpdateAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..175891c01ff1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPoliciesUpdateAcceptedResponseHeadersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable + /// conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPoliciesUpdateAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPoliciesUpdateAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPoliciesUpdateAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..365e1c17d80f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPoliciesUpdateAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// Creates an new instance. + /// + public DnsResolverPoliciesUpdateAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + } + } + public partial interface IDnsResolverPoliciesUpdateAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + } + internal partial interface IDnsResolverPoliciesUpdateAcceptedResponseHeadersInternal + + { + string Location { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..68312df2e502 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPoliciesUpdateAcceptedResponseHeaders.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPoliciesUpdateAcceptedResponseHeaders + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPoliciesUpdateAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPoliciesUpdateAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPoliciesUpdateAcceptedResponseHeaders(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..1346d4e0fe27 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeadersTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing + /// the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeadersTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..72a71d4d6ba2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeadersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there + /// is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there + /// is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..cb1c1a9ecb7d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// Creates an new instance. + /// + public DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + } + } + public partial interface IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + } + internal partial interface IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeadersInternal + + { + string Location { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..4e66e7cace09 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinksDeleteAcceptedResponseHeaders(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..65fde5f73ce8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeadersTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing + /// the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeadersTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..fe1016a54072 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeadersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there + /// is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there + /// is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..5ced6dac274c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// Creates an new instance. + /// + public DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + } + } + public partial interface IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + } + internal partial interface IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeadersInternal + + { + string Location { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..367bc66fd1da --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinksUpdateAcceptedResponseHeaders(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..41fd0b659750 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulesDeleteAcceptedResponseHeadersTypeConverter))] + public partial class DnsSecurityRulesDeleteAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRulesDeleteAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRulesDeleteAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRulesDeleteAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRulesDeleteAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulesDeleteAcceptedResponseHeadersTypeConverter))] + public partial interface IDnsSecurityRulesDeleteAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..22eb7934e7df --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRulesDeleteAcceptedResponseHeadersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRulesDeleteAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRulesDeleteAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRulesDeleteAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..e33853bbbf2a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsSecurityRulesDeleteAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// Creates an new instance. + /// + public DnsSecurityRulesDeleteAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + } + } + public partial interface IDnsSecurityRulesDeleteAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + } + internal partial interface IDnsSecurityRulesDeleteAcceptedResponseHeadersInternal + + { + string Location { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..2224d75fb398 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesDeleteAcceptedResponseHeaders.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsSecurityRulesDeleteAcceptedResponseHeaders + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRulesDeleteAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesDeleteAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRulesDeleteAcceptedResponseHeaders(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.PowerShell.cs new file mode 100644 index 000000000000..8541dbb76ef8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.PowerShell.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulesUpdateAcceptedResponseHeadersTypeConverter))] + public partial class DnsSecurityRulesUpdateAcceptedResponseHeaders + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRulesUpdateAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRulesUpdateAcceptedResponseHeaders(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRulesUpdateAcceptedResponseHeaders(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRulesUpdateAcceptedResponseHeaders(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeadersInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeadersInternal)this).Location, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from + /// a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulesUpdateAcceptedResponseHeadersTypeConverter))] + public partial interface IDnsSecurityRulesUpdateAcceptedResponseHeaders + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.TypeConverter.cs new file mode 100644 index 000000000000..f40f9260c24f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRulesUpdateAcceptedResponseHeadersTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeaders ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeaders).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRulesUpdateAcceptedResponseHeaders.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRulesUpdateAcceptedResponseHeaders.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRulesUpdateAcceptedResponseHeaders.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.cs new file mode 100644 index 000000000000..6aa6c4985347 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsSecurityRulesUpdateAcceptedResponseHeaders : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeadersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable + { + + /// Backing field for property. + private string _location; + + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// + /// Creates an new instance. + /// + public DnsSecurityRulesUpdateAcceptedResponseHeaders() + { + + } + + /// + void Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IHeaderSerializable.ReadHeaders(global::System.Net.Http.Headers.HttpResponseHeaders headers) + { + if (headers.TryGetValues("Location", out var __locationHeader0)) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeadersInternal)this).Location = System.Linq.Enumerable.FirstOrDefault(__locationHeader0) is string __headerLocationHeader0 ? __headerLocationHeader0 : (string)null; + } + } + } + public partial interface IDnsSecurityRulesUpdateAcceptedResponseHeaders + + { + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"Location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + + } + internal partial interface IDnsSecurityRulesUpdateAcceptedResponseHeadersInternal + + { + string Location { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.json.cs new file mode 100644 index 000000000000..24fac4618088 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsSecurityRulesUpdateAcceptedResponseHeaders.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsSecurityRulesUpdateAcceptedResponseHeaders + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRulesUpdateAcceptedResponseHeaders(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeaders. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeaders. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsSecurityRulesUpdateAcceptedResponseHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRulesUpdateAcceptedResponseHeaders(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.Completer.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.Completer.cs new file mode 100644 index 000000000000..4a7679bd2f5b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.Completer.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The type of action to take. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionTypeTypeConverter))] + public partial struct ActionType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Allow".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Allow'", "Allow", global::System.Management.Automation.CompletionResultType.ParameterValue, "Allow"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Alert".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Alert'", "Alert", global::System.Management.Automation.CompletionResultType.ParameterValue, "Alert"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Block".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Block'", "Block", global::System.Management.Automation.CompletionResultType.ParameterValue, "Block"); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.TypeConverter.cs new file mode 100644 index 000000000000..f0cc23d6ef81 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The type of action to take. + public partial class ActionTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ActionType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.cs new file mode 100644 index 000000000000..1abdb69145ae --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The type of action to take. + public partial struct ActionType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType Alert = @"Alert"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType Allow = @"Allow"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType Block = @"Block"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private ActionType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to ActionType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ActionType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type ActionType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ActionType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ActionType && Equals((ActionType)obj); + } + + /// Returns hashCode for enum ActionType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ActionType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ActionType + /// the value to convert to an instance of . + + public static implicit operator ActionType(string value) + { + return new ActionType(value); + } + + /// Implicit operator to convert ActionType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType e) + { + return e._value; + } + + /// Overriding != operator for enum ActionType + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ActionType + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.Completer.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.Completer.cs new file mode 100644 index 000000000000..db8f60c0fa98 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.Completer.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The response code for block actions. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCodeTypeConverter))] + public partial struct BlockResponseCode : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "SERVFAIL".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'SERVFAIL'", "SERVFAIL", global::System.Management.Automation.CompletionResultType.ParameterValue, "SERVFAIL"); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.TypeConverter.cs new file mode 100644 index 000000000000..9fd5d5584408 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The response code for block actions. + public partial class BlockResponseCodeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => BlockResponseCode.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.cs new file mode 100644 index 000000000000..4aea3478e6ef --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.cs @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The response code for block actions. + public partial struct BlockResponseCode : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode Servfail = @"SERVFAIL"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private BlockResponseCode(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to BlockResponseCode + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new BlockResponseCode(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type BlockResponseCode + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type BlockResponseCode (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is BlockResponseCode && Equals((BlockResponseCode)obj); + } + + /// Returns hashCode for enum BlockResponseCode + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for BlockResponseCode + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to BlockResponseCode + /// the value to convert to an instance of . + + public static implicit operator BlockResponseCode(string value) + { + return new BlockResponseCode(value); + } + + /// Implicit operator to convert BlockResponseCode to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode e) + { + return e._value; + } + + /// Overriding != operator for enum BlockResponseCode + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum BlockResponseCode + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.Completer.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.Completer.cs new file mode 100644 index 000000000000..efea74a5f2ea --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The state of DNS security rule. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleStateTypeConverter))] + public partial struct DnsSecurityRuleState : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.TypeConverter.cs new file mode 100644 index 000000000000..0a1b4866fab9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The state of DNS security rule. + public partial class DnsSecurityRuleStateTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => DnsSecurityRuleState.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.cs new file mode 100644 index 000000000000..a6c501041c61 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The state of DNS security rule. + public partial struct DnsSecurityRuleState : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState Disabled = @"Disabled"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState Enabled = @"Enabled"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to DnsSecurityRuleState + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new DnsSecurityRuleState(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private DnsSecurityRuleState(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type DnsSecurityRuleState + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type DnsSecurityRuleState (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is DnsSecurityRuleState && Equals((DnsSecurityRuleState)obj); + } + + /// Returns hashCode for enum DnsSecurityRuleState + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for DnsSecurityRuleState + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to DnsSecurityRuleState + /// the value to convert to an instance of . + + public static implicit operator DnsSecurityRuleState(string value) + { + return new DnsSecurityRuleState(value); + } + + /// Implicit operator to convert DnsSecurityRuleState to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState e) + { + return e._value; + } + + /// Overriding != operator for enum DnsSecurityRuleState + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum DnsSecurityRuleState + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs index 6c95d75f4929..23f7b26ff37b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetForwardingRule_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetForwardingRule_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -142,12 +142,12 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_Get : global::Syste /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -162,24 +162,24 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_Get : global::Syste /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs index a555f03f0a38..e408eca9f8be 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetForwardingRule_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity : gl /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs index 493f54e82354..c8b4b6a545db 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetForwardingRule_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists forwarding rules in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetForwardingRule_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -133,12 +133,12 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_List : global::Syst /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_List : global::Syst /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs index c797ce01e392..85886677523d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetVirtualNetworkLink_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -142,12 +142,12 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_Get : global::S /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -162,24 +162,24 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_Get : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs index 5e948a68693f..00ddcd6f3153 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs index 0546d2b5d3a5..a40fcc547d04 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetVirtualNetworkLink_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists virtual network links to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -133,12 +133,12 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_List : global:: /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_List : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs index d61c341cf3b0..fabfa6a9902e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRuleset_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets a DNS forwarding ruleset properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRuleset_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -128,12 +128,12 @@ public partial class GetAzDnsForwardingRuleset_Get : global::System.Management.A /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -148,24 +148,24 @@ public partial class GetAzDnsForwardingRuleset_Get : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -373,12 +373,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +395,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -413,12 +413,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +430,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs index 68ade125d02a..6526f425c5b4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRuleset_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets a DNS forwarding ruleset properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRuleset_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsForwardingRuleset_GetViaIdentity : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -351,12 +351,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -373,7 +373,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -391,12 +391,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -408,7 +408,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs index e40a146d8d58..34af3794478b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRuleset_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding rulesets within a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRuleset_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -119,12 +119,12 @@ public partial class GetAzDnsForwardingRuleset_List : global::System.Management. /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -155,24 +155,24 @@ public partial class GetAzDnsForwardingRuleset_List : global::System.Management. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -380,12 +380,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -402,7 +402,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -420,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs index f9da56fa1881..939ee86abc8e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRuleset_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding rulesets in all resource groups of a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRuleset_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -105,12 +105,12 @@ public partial class GetAzDnsForwardingRuleset_List1 : global::System.Management /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -141,24 +141,24 @@ public partial class GetAzDnsForwardingRuleset_List1 : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -366,12 +366,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -388,7 +388,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -406,12 +406,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs index 353de740e708..ae4583436ca7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] ListByVirtualNetwork=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsForwardingRulesets" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRuleset_List2", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding ruleset resource IDs attached to a virtual network.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsForwardingRulesets", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsForwardingRulesets", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRuleset_List2 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -119,12 +119,12 @@ public partial class GetAzDnsForwardingRuleset_List2 : global::System.Management /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsForwardingRuleset_List2 : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -397,12 +397,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -419,7 +419,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VirtualNetworkName=VirtualNetworkName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -437,12 +437,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_Get.cs new file mode 100644 index 000000000000..95d9768ad11e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_Get.cs @@ -0,0 +1,438 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver domain list. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverDomainList_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver domain list. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver domain list.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver domain list.", + SerializedName = @"dnsResolverDomainListName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverDomainListName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverDomainList_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsGet(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_GetViaIdentity.cs new file mode 100644 index 000000000000..4d27a5701bf8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_GetViaIdentity.cs @@ -0,0 +1,416 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver domain list. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverDomainList_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverDomainList_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverDomainListsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverDomainListName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverDomainListName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverDomainListsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverDomainListName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List.cs new file mode 100644 index 000000000000..d2ef976ab8a9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List.cs @@ -0,0 +1,461 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver domain lists within a resource group. + /// + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver domain lists within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverDomainList_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverDomainList_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List1.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List1.cs new file mode 100644 index 000000000000..b4e6c4c2c0c3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List1.cs @@ -0,0 +1,447 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver domain lists in all resource groups of a subscription. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverDomainLists" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver domain lists in all resource groups of a subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverDomainLists", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverDomainList_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverDomainList_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs index ca4c4d342ce7..fed67bb0ac14 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverInboundEndpoint_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverInboundEndpoint_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -142,12 +142,12 @@ public partial class GetAzDnsResolverInboundEndpoint_Get : global::System.Manage /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -162,24 +162,24 @@ public partial class GetAzDnsResolverInboundEndpoint_Get : global::System.Manage /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs index cf8bd78a80e3..80fd0baad9ac 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverInboundEndpoint_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverInboundEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsResolverInboundEndpoint_GetViaIdentity : global::Sy /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs index 97b79d85b43c..715087b8de4f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverInboundEndpoint_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists inbound endpoints for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverInboundEndpoint_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -133,12 +133,12 @@ public partial class GetAzDnsResolverInboundEndpoint_List : global::System.Manag /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsResolverInboundEndpoint_List : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs index c7720616585d..91b331e81ddc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverOutboundEndpoint_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverOutboundEndpoint_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -142,12 +142,12 @@ public partial class GetAzDnsResolverOutboundEndpoint_Get : global::System.Manag /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -162,24 +162,24 @@ public partial class GetAzDnsResolverOutboundEndpoint_Get : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs index e0ce351a7ec8..07ea542d350d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverOutboundEndpoint_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverOutboundEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsResolverOutboundEndpoint_GetViaIdentity : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs index 773c60981c24..c5480ef2f7bb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverOutboundEndpoint_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists outbound endpoints for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverOutboundEndpoint_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -133,12 +133,12 @@ public partial class GetAzDnsResolverOutboundEndpoint_List : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsResolverOutboundEndpoint_List : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_Get.cs new file mode 100644 index 000000000000..609415737b26 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_Get.cs @@ -0,0 +1,452 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS security rule for a DNS resolver policy. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyDnsSecurityRule_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS security rule for a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyDnsSecurityRule_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS security rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS security rule.", + SerializedName = @"dnsSecurityRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsSecurityRuleName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyDnsSecurityRule_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsSecurityRulesGet(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity.cs new file mode 100644 index 000000000000..fc420566dde1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity.cs @@ -0,0 +1,420 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS security rule for a DNS resolver policy. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyDnsSecurityRule_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS security rule for a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsSecurityRulesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsSecurityRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsSecurityRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsSecurityRulesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsSecurityRuleName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_List.cs new file mode 100644 index 000000000000..1af91a11350b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_List.cs @@ -0,0 +1,475 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS security rules for a DNS resolver policy. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyDnsSecurityRule_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS security rules for a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyDnsSecurityRule_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyDnsSecurityRule_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsSecurityRulesList(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsSecurityRulesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_Get.cs new file mode 100644 index 000000000000..026043401f37 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_Get.cs @@ -0,0 +1,454 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver policy virtual network link. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyVirtualNetworkLink_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyVirtualNetworkLink_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy virtual network link for the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy virtual network link for the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyVirtualNetworkLinkName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyVirtualNetworkLinkName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyVirtualNetworkLink_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPolicyVirtualNetworkLinksGet(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity.cs new file mode 100644 index 000000000000..714db990f6b7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity.cs @@ -0,0 +1,420 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver policy virtual network link. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPolicyVirtualNetworkLinksGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyVirtualNetworkLinkName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyVirtualNetworkLinkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPolicyVirtualNetworkLinksGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsResolverPolicyVirtualNetworkLinkName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_List.cs new file mode 100644 index 000000000000..f992489a65e2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_List.cs @@ -0,0 +1,475 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver policy virtual network links. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyVirtualNetworkLink_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policy virtual network links.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyVirtualNetworkLink_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyVirtualNetworkLink_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPolicyVirtualNetworkLinksList(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPolicyVirtualNetworkLinksList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_Get.cs new file mode 100644 index 000000000000..0a4854b2f336 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_Get.cs @@ -0,0 +1,438 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver policy. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicy_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicy_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesGet(SubscriptionId, ResourceGroupName, Name, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_GetViaIdentity.cs new file mode 100644 index 000000000000..1ba0077c1d29 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_GetViaIdentity.cs @@ -0,0 +1,416 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver policy. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicy_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicy_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPoliciesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPoliciesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List.cs new file mode 100644 index 000000000000..75e2d1147536 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List.cs @@ -0,0 +1,461 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver policies within a resource group. + /// + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policies within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicy_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicy_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List1.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List1.cs new file mode 100644 index 000000000000..dfc3159b9989 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List1.cs @@ -0,0 +1,447 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver policies in all resource groups of a subscription. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverPolicies" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policies in all resource groups of a subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverPolicies", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicy_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicy_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List2.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List2.cs new file mode 100644 index 000000000000..b05a96b93507 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List2.cs @@ -0,0 +1,462 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver policy resource IDs linked to a virtual network. + /// + /// [OpenAPI] ListByVirtualNetwork=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolverPolicies" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_List2", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policy resource IDs linked to a virtual network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolverPolicies", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicy_List2 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _virtualNetworkName; + + /// The name of the virtual network. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the virtual network.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the virtual network.", + SerializedName = @"virtualNetworkName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string VirtualNetworkName { get => this._virtualNetworkName; set => this._virtualNetworkName = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicy_List2() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesListByVirtualNetwork' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesListByVirtualNetwork(SubscriptionId, ResourceGroupName, VirtualNetworkName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,VirtualNetworkName=VirtualNetworkName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VirtualNetworkName=VirtualNetworkName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VirtualNetworkName=VirtualNetworkName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesListByVirtualNetwork_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs index 3ce256cd3156..b437f8352183 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolver_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -128,12 +128,12 @@ public partial class GetAzDnsResolver_Get : global::System.Management.Automation /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -148,24 +148,24 @@ public partial class GetAzDnsResolver_Get : global::System.Management.Automation /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -373,12 +373,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +395,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -413,12 +413,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +430,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs index eca798fa6cc7..d470def8418d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolver_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsResolver_GetViaIdentity : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -351,12 +351,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -373,7 +373,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -391,12 +391,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -408,7 +408,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs index 92b324ea2be3..edf33bd253dc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolvers within a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolver_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -119,12 +119,12 @@ public partial class GetAzDnsResolver_List : global::System.Management.Automatio /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -155,24 +155,24 @@ public partial class GetAzDnsResolver_List : global::System.Management.Automatio /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -380,12 +380,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -402,7 +402,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -420,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs index bf32ace1586e..9268fac546be 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolvers in all resource groups of a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolver_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -105,12 +105,12 @@ public partial class GetAzDnsResolver_List1 : global::System.Management.Automati /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -141,24 +141,24 @@ public partial class GetAzDnsResolver_List1 : global::System.Management.Automati /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -366,12 +366,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -388,7 +388,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -406,12 +406,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs index aec99dc5a0ef..b9b1ecf9e625 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] ListByVirtualNetwork=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_List2", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver resource IDs linked to a virtual network.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolver_List2 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -119,12 +119,12 @@ public partial class GetAzDnsResolver_List2 : global::System.Management.Automati /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsResolver_List2 : global::System.Management.Automati /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -397,12 +397,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -419,7 +419,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VirtualNetworkName=VirtualNetworkName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -437,12 +437,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs index 3cb343c8deed..2771c4c3d7d9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsForwardingRulesetForwardingRule_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a forwarding rule within a DNS forwarding ruleset. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -149,8 +149,8 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -213,12 +213,12 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -237,44 +237,44 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } /// /// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onCreated method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -480,12 +480,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 201 (Created). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -497,7 +497,7 @@ protected override void StopProcessing() return ; } // onCreated - response for 201 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } @@ -506,12 +506,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -528,7 +528,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -546,12 +546,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -563,7 +563,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs index 771611beb4e7..cfb0593eebc0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a virtual network link. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -131,8 +131,8 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -203,12 +203,12 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -234,24 +234,24 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -518,12 +518,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -540,7 +540,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -558,12 +558,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -575,7 +575,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs index 4a3847c094bd..e6bb9aa9bcf7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsForwardingRuleset_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS forwarding ruleset. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -72,8 +72,8 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -203,12 +203,12 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -227,32 +227,32 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -516,12 +516,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -538,7 +538,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -556,12 +556,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -573,7 +573,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverDomainList_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverDomainList_CreateExpanded.cs new file mode 100644 index 000000000000..80af42d38cca --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverDomainList_CreateExpanded.cs @@ -0,0 +1,578 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Creates or updates a DNS resolver domain list. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverDomainList_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class NewAzDnsResolverDomainList_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver domain list. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// The domains in the domain list. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The domains in the domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + public string[] Domain { get => _parametersBody.Domain ?? null /* arrayOf */; set => _parametersBody.Domain = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private string _ifNoneMatch; + + /// + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", + SerializedName = @"If-None-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The geo-location where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The geo-location where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver domain list. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver domain list.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver domain list.", + SerializedName = @"dnsResolverDomainListName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverDomainListName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzDnsResolverDomainList_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverDomainList_CreateExpanded Clone() + { + var clone = new NewAzDnsResolverDomainList_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + clone.IfNoneMatch = this.IfNoneMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDnsResolverDomainList_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverDomainListsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs index 4e42ee26d1c2..c13d9f0e14e3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverInboundEndpoint_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an inbound endpoint for a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -95,8 +95,8 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get => _parametersBody.IPConfiguration ?? null /* arrayOf */; set => _parametersBody.IPConfiguration = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] IPConfiguration { get => _parametersBody.IPConfiguration ?? null /* arrayOf */; set => _parametersBody.IPConfiguration = value; } /// Backing field for property. private string _ifMatch; @@ -214,12 +214,12 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -238,32 +238,32 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -528,12 +528,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -550,7 +550,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -568,12 +568,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -585,7 +585,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs index ae915baf390f..e0b97208c468 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverOutboundEndpoint_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an outbound endpoint for a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -213,12 +213,12 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -237,32 +237,32 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -527,12 +527,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -549,7 +549,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -567,12 +567,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -584,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded.cs new file mode 100644 index 000000000000..71e01fefdedf --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded.cs @@ -0,0 +1,640 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Creates or updates a DNS security rule for a DNS resolver policy. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverPolicyDnsSecurityRule_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS security rule for a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS security rule. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule(); + + /// The response code for block actions. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The response code for block actions.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode ActionBlockResponseCode { get => _parametersBody.ActionBlockResponseCode ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); set => _parametersBody.ActionBlockResponseCode = value; } + + /// The type of action to take. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of action to take.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType ActionType { get => _parametersBody.ActionType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); set => _parametersBody.ActionType = value; } + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "DNS resolver policy domains lists that the DNS security rule applies to.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// The state of DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The state of DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState DnsSecurityRuleState { get => _parametersBody.State ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); set => _parametersBody.State = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private string _ifNoneMatch; + + /// + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", + SerializedName = @"If-None-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The geo-location where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The geo-location where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS security rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS security rule.", + SerializedName = @"dnsSecurityRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsSecurityRuleName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The priority of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The priority of the DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + public int Priority { get => _parametersBody.Priority; set => _parametersBody.Priority = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded Clone() + { + var clone = new NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + clone.IfNoneMatch = this.IfNoneMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsSecurityRulesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsSecurityRulesCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded.cs new file mode 100644 index 000000000000..82d154fd4874 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded.cs @@ -0,0 +1,594 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Creates or updates a DNS resolver policy virtual network link. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy virtual network link. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private string _ifNoneMatch; + + /// + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", + SerializedName = @"If-None-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The geo-location where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The geo-location where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy virtual network link for the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy virtual network link for the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyVirtualNetworkLinkName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyVirtualNetworkLinkName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// Resource ID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource ID.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + public string VirtualNetworkId { get => _parametersBody.VirtualNetworkId ?? null; set => _parametersBody.VirtualNetworkId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded Clone() + { + var clone = new NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + clone.IfNoneMatch = this.IfNoneMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicy_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicy_CreateExpanded.cs new file mode 100644 index 000000000000..eb4410237b79 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicy_CreateExpanded.cs @@ -0,0 +1,566 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Creates or updates a DNS resolver policy. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverPolicy_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class NewAzDnsResolverPolicy_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private string _ifNoneMatch; + + /// + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", + SerializedName = @"If-None-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The geo-location where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The geo-location where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzDnsResolverPolicy_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverPolicy_CreateExpanded Clone() + { + var clone = new NewAzDnsResolverPolicy_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + clone.IfNoneMatch = this.IfNoneMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDnsResolverPolicy_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs index 18acfe9e1497..c7365620fbef 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolver_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsResolver_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -188,12 +188,12 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -212,8 +212,8 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// Resource ID. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource ID.")] @@ -231,24 +231,24 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -512,12 +512,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -534,7 +534,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -552,12 +552,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -569,7 +569,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs index 751441574999..7c043b47b6bf 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRulesetForwardingRule_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -168,12 +168,12 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_Delete : global: /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_Delete : global: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -421,12 +421,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -443,7 +443,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs index fe5a8de9b2fb..eeb3af11bca8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -135,12 +135,12 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentit /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -392,12 +392,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -414,7 +414,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs index b3ca3a02ef6c..75543dedd3df 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -181,12 +181,12 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete : glo /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -201,12 +201,12 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete : glo /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -489,12 +489,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -511,7 +511,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs index e70c4976d117..9775def1252f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -148,12 +148,12 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIde /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -459,12 +459,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -481,7 +481,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs index b9874353f310..1758b5c72855 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will be deleted.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRuleset_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -168,12 +168,12 @@ public partial class RemoveAzDnsForwardingRuleset_Delete : global::System.Manage /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class RemoveAzDnsForwardingRuleset_Delete : global::System.Manage /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -475,12 +475,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -497,7 +497,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs index 7328d233d174..16ff3135d779 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will be deleted.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRuleset_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -149,12 +149,12 @@ public partial class RemoveAzDnsForwardingRuleset_DeleteViaIdentity : global::Sy /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -453,12 +453,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -475,7 +475,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_Delete.cs new file mode 100644 index 000000000000..698abeb9b159 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_Delete.cs @@ -0,0 +1,527 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Deletes a DNS resolver domain list. WARNING: This operation cannot be undone. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverDomainList_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverDomainList_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver domain list. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver domain list.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver domain list.", + SerializedName = @"dnsResolverDomainListName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverDomainListName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverDomainList_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverDomainList_Delete Clone() + { + var clone = new RemoveAzDnsResolverDomainList_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverDomainListsDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsDelete(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverDomainList_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_DeleteViaIdentity.cs new file mode 100644 index 000000000000..b3fd91765f28 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_DeleteViaIdentity.cs @@ -0,0 +1,505 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Deletes a DNS resolver domain list. WARNING: This operation cannot be undone. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverDomainList_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverDomainList_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverDomainList_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverDomainList_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDnsResolverDomainList_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverDomainListsDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverDomainListsDeleteViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverDomainListName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverDomainListName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverDomainListsDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverDomainListName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverDomainList_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs index 1ae0577c25cd..91133976757c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolverInboundEndpoint_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -181,12 +181,12 @@ public partial class RemoveAzDnsResolverInboundEndpoint_Delete : global::System. /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -201,12 +201,12 @@ public partial class RemoveAzDnsResolverInboundEndpoint_Delete : global::System. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -489,12 +489,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -511,7 +511,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs index 47f8f9be358c..7c94a70a9dc8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -148,12 +148,12 @@ public partial class RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity : glob /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -456,12 +456,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -478,7 +478,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs index 47b4766dcc81..da5a0c150ecd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolverOutboundEndpoint_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -181,12 +181,12 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_Delete : global::System /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -201,12 +201,12 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_Delete : global::System /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -489,12 +489,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -511,7 +511,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs index 15e7022f4751..2837c7742e98 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -148,12 +148,12 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity : glo /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -456,12 +456,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -478,7 +478,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_Delete.cs new file mode 100644 index 000000000000..c060f9cb1202 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_Delete.cs @@ -0,0 +1,544 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// + /// Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicyDnsSecurityRule_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicyDnsSecurityRule_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS security rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS security rule.", + SerializedName = @"dnsSecurityRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsSecurityRuleName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverPolicyDnsSecurityRule_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicyDnsSecurityRule_Delete Clone() + { + var clone = new RemoveAzDnsResolverPolicyDnsSecurityRule_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsSecurityRulesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsSecurityRulesDelete(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicyDnsSecurityRule_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity.cs new file mode 100644 index 000000000000..c05558f21b49 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity.cs @@ -0,0 +1,513 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// + /// Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsSecurityRulesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsSecurityRulesDeleteViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsSecurityRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsSecurityRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsSecurityRulesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsSecurityRuleName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete.cs new file mode 100644 index 000000000000..bfa9b1b14a3e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete.cs @@ -0,0 +1,546 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// + /// Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone. + /// + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicyVirtualNetworkLink_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy virtual network link for the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy virtual network link for the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyVirtualNetworkLinkName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyVirtualNetworkLinkName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete Clone() + { + var clone = new RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPolicyVirtualNetworkLinksDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPolicyVirtualNetworkLinksDelete(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity.cs new file mode 100644 index 000000000000..c8fd74108197 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity.cs @@ -0,0 +1,513 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// + /// Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone. + /// + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPolicyVirtualNetworkLinksDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPolicyVirtualNetworkLinksDeleteViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyVirtualNetworkLinkName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyVirtualNetworkLinkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPolicyVirtualNetworkLinksDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsResolverPolicyVirtualNetworkLinkName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_Delete.cs new file mode 100644 index 000000000000..eaec5beaa042 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_Delete.cs @@ -0,0 +1,527 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Deletes a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicy_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicy_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverPolicy_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicy_Delete Clone() + { + var clone = new RemoveAzDnsResolverPolicy_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesDelete(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicy_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_DeleteViaIdentity.cs new file mode 100644 index 000000000000..b71a8de67b5e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_DeleteViaIdentity.cs @@ -0,0 +1,505 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Deletes a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicy_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicy_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverPolicy_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicy_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDnsResolverPolicy_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPoliciesDeleteViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPoliciesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicy_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs index abdc8f7c5af2..741d4cd03439 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolver_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -165,12 +165,12 @@ public partial class RemoveAzDnsResolver_Delete : global::System.Management.Auto /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -185,12 +185,12 @@ public partial class RemoveAzDnsResolver_Delete : global::System.Management.Auto /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -472,12 +472,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -494,7 +494,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs index aa4776dfd930..1afd76ba40b0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolver_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -146,12 +146,12 @@ public partial class RemoveAzDnsResolver_DeleteViaIdentity : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -450,12 +450,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -472,7 +472,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs index 54ae0e57a65a..139e652ed28d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRulesetForwardingRule_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a forwarding rule for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatch(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -122,8 +122,8 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -186,12 +186,12 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -210,32 +210,32 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -443,12 +443,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -465,7 +465,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -483,12 +483,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -500,7 +500,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs index 7fc49c09b82c..3f0d21a797cb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentit private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a forwarding rule for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatch(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -116,8 +116,8 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentit ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -157,32 +157,32 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentit ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -415,12 +415,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -437,7 +437,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -455,12 +455,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -472,7 +472,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs index e299663ce932..616f31d4e735 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a virtual network link for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -115,8 +115,8 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -187,12 +187,12 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -207,24 +207,24 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -490,12 +490,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -512,7 +512,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -530,12 +530,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -547,7 +547,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs index 7206e05fbfd5..238eb14cd0a8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIde private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a virtual network link for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -109,8 +109,8 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIde ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -154,24 +154,24 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIde /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -458,12 +458,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -480,7 +480,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -498,12 +498,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -515,7 +515,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs index cb32b9958a5a..488237f45a05 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRuleset_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS forwarding ruleset PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -72,8 +72,8 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -176,12 +176,12 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -200,32 +200,32 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -488,12 +488,12 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -510,7 +510,7 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -528,12 +528,12 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -545,7 +545,7 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs index f79469a30c08..fbc86b54433f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRuleset_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS forwarding ruleset PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -72,8 +72,8 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -161,32 +161,32 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -466,12 +466,12 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -506,12 +506,12 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -523,7 +523,7 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateExpanded.cs new file mode 100644 index 000000000000..93ebef125821 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateExpanded.cs @@ -0,0 +1,550 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver domain list. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverDomainList_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverDomainList_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver domain list for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatch(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// The domains in the domain list. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The domains in the domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + public string[] Domain { get => _parametersBody.Domain ?? null /* arrayOf */; set => _parametersBody.Domain = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver domain list. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver domain list.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver domain list.", + SerializedName = @"dnsResolverDomainListName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverDomainListName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Tags for DNS resolver domain list. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS resolver domain list.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzDnsResolverDomainList_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverDomainList_UpdateExpanded Clone() + { + var clone = new UpdateAzDnsResolverDomainList_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverDomainListsUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverDomainList_UpdateExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..ed8d5179fe43 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded.cs @@ -0,0 +1,528 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver domain list. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverDomainList_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver domain list for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatch(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// The domains in the domain list. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The domains in the domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + public string[] Domain { get => _parametersBody.Domain ?? null /* arrayOf */; set => _parametersBody.Domain = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Tags for DNS resolver domain list. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS resolver domain list.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverDomainListsUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverDomainListsUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverDomainListName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverDomainListName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverDomainListsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverDomainListName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs index 31bd79a60489..395cb18c55f1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverInboundEndpoint_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an inbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -175,12 +175,12 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -199,32 +199,32 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: ReadOnly = false, Description = @"Tags for inbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -488,12 +488,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -510,7 +510,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -528,12 +528,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -545,7 +545,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs index 0555239654ad..d3ec745a5976 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpande private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an inbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -146,32 +146,32 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpande ReadOnly = false, Description = @"Tags for inbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -457,12 +457,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -479,7 +479,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -497,12 +497,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -514,7 +514,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs index 89bb60f0d186..cf0fb1296773 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverOutboundEndpoint_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an outbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -175,12 +175,12 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -199,32 +199,32 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global ReadOnly = false, Description = @"Tags for outbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -488,12 +488,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -510,7 +510,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -528,12 +528,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -545,7 +545,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs index b367dcb5ed02..839bbd06d281 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpand private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an outbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -146,32 +146,32 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpand ReadOnly = false, Description = @"Tags for outbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -457,12 +457,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -479,7 +479,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -497,12 +497,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -514,7 +514,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded.cs new file mode 100644 index 000000000000..6c3fab7fa216 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded.cs @@ -0,0 +1,612 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS security rule. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS security rule for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatch(); + + /// The response code for block actions. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The response code for block actions.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode ActionBlockResponseCode { get => _parametersBody.ActionBlockResponseCode ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); set => _parametersBody.ActionBlockResponseCode = value; } + + /// The type of action to take. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of action to take.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType ActionType { get => _parametersBody.ActionType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); set => _parametersBody.ActionType = value; } + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "DNS resolver policy domains lists that the DNS security rule applies to.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// The state of DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The state of DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState DnsSecurityRuleState { get => _parametersBody.DnsSecurityRuleState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); set => _parametersBody.DnsSecurityRuleState = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS security rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS security rule.", + SerializedName = @"dnsSecurityRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsSecurityRuleName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The priority of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The priority of the DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + public int Priority { get => _parametersBody.Priority ?? default(int); set => _parametersBody.Priority = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Tags for DNS security rule. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS security rule.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsSecurityRulesUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsSecurityRulesUpdate(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..4973b37848c3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded.cs @@ -0,0 +1,582 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS security rule. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS security rule for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatch(); + + /// The response code for block actions. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The response code for block actions.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode ActionBlockResponseCode { get => _parametersBody.ActionBlockResponseCode ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); set => _parametersBody.ActionBlockResponseCode = value; } + + /// The type of action to take. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of action to take.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType ActionType { get => _parametersBody.ActionType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); set => _parametersBody.ActionType = value; } + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "DNS resolver policy domains lists that the DNS security rule applies to.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } + + /// The state of DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The state of DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState DnsSecurityRuleState { get => _parametersBody.DnsSecurityRuleState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); set => _parametersBody.DnsSecurityRuleState = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The priority of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The priority of the DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + public int Priority { get => _parametersBody.Priority ?? default(int); set => _parametersBody.Priority = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Tags for DNS security rule. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS security rule.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsSecurityRulesUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsSecurityRulesUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsSecurityRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsSecurityRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsSecurityRulesUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsSecurityRuleName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded.cs new file mode 100644 index 000000000000..2241a0790cbe --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded.cs @@ -0,0 +1,557 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver policy virtual network link. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy virtual network link for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatch(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy virtual network link for the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy virtual network link for the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyVirtualNetworkLinkName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyVirtualNetworkLinkName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Tags for the DNS resolver policy virtual network link. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for the DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for the DNS resolver policy virtual network link.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPolicyVirtualNetworkLinksUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPolicyVirtualNetworkLinksUpdate(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..92be60468a89 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded.cs @@ -0,0 +1,523 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver policy virtual network link. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy virtual network link for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatch(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Tags for the DNS resolver policy virtual network link. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for the DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for the DNS resolver policy virtual network link.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPolicyVirtualNetworkLinksUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPolicyVirtualNetworkLinksUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyVirtualNetworkLinkName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyVirtualNetworkLinkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPolicyVirtualNetworkLinksUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsResolverPolicyVirtualNetworkLinkName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the + /// cmdlet class. + /// + public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateExpanded.cs new file mode 100644 index 000000000000..a4615aa5c705 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateExpanded.cs @@ -0,0 +1,538 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver policy. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicy_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicy_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatch(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyName")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string Name { get => this._name; set => this._name = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Tags for DNS resolver policy. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS resolver policy.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzDnsResolverPolicy_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicy_UpdateExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicy_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesUpdate(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverPolicy_UpdateExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..30e1528af45e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded.cs @@ -0,0 +1,516 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver policy. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicy_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatch(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Tags for DNS resolver policy. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS resolver policy.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPoliciesUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPoliciesUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs index 3de689594309..18e500331006 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolver_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Managem private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -161,12 +161,12 @@ public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Managem /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -185,32 +185,32 @@ public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Managem ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -473,12 +473,12 @@ public UpdateAzDnsResolver_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -495,7 +495,7 @@ public UpdateAzDnsResolver_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -513,12 +513,12 @@ public UpdateAzDnsResolver_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -530,7 +530,7 @@ public UpdateAzDnsResolver_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs index 2585035bb836..b9e276c92db8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolver_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::Sys private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -146,32 +146,32 @@ public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::Sys ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -451,12 +451,12 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -473,7 +473,7 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -491,12 +491,12 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -508,7 +508,7 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Accounts.format.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Accounts.format.ps1xml new file mode 100644 index 000000000000..4d28aa4b2f4f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Accounts.format.ps1xml @@ -0,0 +1,554 @@ + + + + + AzureErrorRecords + + Microsoft.Azure.Commands.Profile.Errors.AzureErrorRecord + Microsoft.Azure.Commands.Profile.Errors.AzureExceptionRecord + Microsoft.Azure.Commands.Profile.Errors.AzureRestExceptionRecord + + + + + + Microsoft.Azure.Commands.Profile.Errors.AzureRestExceptionRecord + + AzureErrorRecords + + + $_.InvocationInfo.HistoryId + + + + + + + + ErrorCategory + + + ErrorDetail + + + + "{" + $_.InvocationInfo.MyCommand + "}" + + + + $_.InvocationInfo.Line + + + + $_.InvocationInfo.PositionMessage + + + + $_.InvocationInfo.BoundParameters + + + + $_.InvocationInfo.UnboundParameters + + + + $_.InvocationInfo.HistoryId + + + + + + + AzureErrorRecords + $_.GetType() -eq [Microsoft.Azure.Commands.Profile.Errors.AzureRestExceptionRecord] + + + + + RequestId + + + Message + + + ServerMessage + + + ServerResponse + + + RequestMessage + + + + "{" + $_.InvocationInfo.MyCommand + "}" + + + + $_.InvocationInfo.Line + + + + $_.InvocationInfo.PositionMessage + + + StackTrace + + + + $_.InvocationInfo.HistoryId + + + + + + + AzureErrorRecords + $_.GetType() -eq [Microsoft.Azure.Commands.Profile.Errors.AzureExceptionRecord] + + + + + Message + + + StackTrace + + + + $_.Exception.GetType() + + + + "{" + $_.InvocationInfo.MyCommand + "}" + + + + $_.InvocationInfo.Line + + + + $_.InvocationInfo.PositionMessage + + + + $_.InvocationInfo.HistoryId + + + + + + + + Microsoft.Azure.Commands.Profile.CommonModule.PSAzureServiceProfile + + Microsoft.Azure.Commands.Profile.CommonModule.PSAzureServiceProfile + + + + + Left + + + + Left + + + + + + + + Left + Name + + + Left + Description + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAccessToken + + Microsoft.Azure.Commands.Profile.Models.PSAccessToken + + + + + + + Token + + + ExpiresOn + + + Type + + + TenantId + + + UserId + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscriptionPolicy + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscriptionPolicy + + + + + Left + + + + Left + + + + Left + + + + + + + + Left + locationPlacementId + + + Left + QuotaId + + + Left + SpendingLimit + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount + + Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount + + + + + + + Id + + + Type + + + Tenants + + + Credential + + + TenantMap + + + CertificateThumbprint + + + + $_.ExtendedProperties.GetEnumerator() + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSConfig + + Microsoft.Azure.Commands.Profile.Models.PSConfig + + + + + Left + + + + Left + + + + Left + + + + Left + + + + Left + + + + + + + + Left + Key + + + Left + Value + + + Left + AppliesTo + + + Left + Scope + + + Left + HelpMessage + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Accounts.generated.format.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Accounts.generated.format.ps1xml new file mode 100644 index 000000000000..8271581789c7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Accounts.generated.format.ps1xml @@ -0,0 +1,471 @@ + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment + + Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment + + + + + Left + + + + Left + + + + Left + + + + Left + + + + + + + + Left + Name + + + Left + ResourceManagerUrl + + + Left + ActiveDirectoryAuthority + + + Left + Type + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription + + + + + Left + + + + Left + + + + Left + + + + Left + + + + + + + + Left + Name + + + Left + Id + + + Left + TenantId + + + Left + State + + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile + + + + + Left + + + + Left + + + + Left + + + + Left + + + + + + + + Left + $_.Context.Account.ToString() + + + Left + $_.Context.Subscription.Name + + + Left + $_.Context.Tenant.ToString() + + + Left + $_.Context.Environment.ToString() + + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + + + 40 + Left + + + + Left + + + + Left + + + + Left + + + + Left + + + + + + + + Left + Name + + + Left + Account + + + Left + $_.Subscription.Name + + + Left + Environment + + + Left + $_.Tenant.ToString() + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureTenant + + Microsoft.Azure.Commands.Profile.Models.PSAzureTenant + + + + + Left + + + + Left + + + + Left + + + + Left + + + + + + + + Left + Id + + + Left + $_.Name + + + Left + $_.TenantCategory + + + Left + $_.Domains + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Accounts.types.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Accounts.types.ps1xml new file mode 100644 index 000000000000..2873f28fd663 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Accounts.types.ps1xml @@ -0,0 +1,306 @@ + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile + + + PSStandardMembers + + + SerializationDepth + 10 + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + PSStandardMembers + + + SerializationDepth + 10 + + + + + + + Microsoft.Azure.Commands.Common.Authentication.Core.AuthenticationStoreTokenCache + + + PSStandardMembers + + + SerializationMethod + SpecificProperties + + + PropertySerializationSet + + CacheData + + + + + + + + Microsoft.Azure.Commands.Common.Authentication.Core.ProtectedFileTokenCache + + + PSStandardMembers + + + SerializationMethod + SpecificProperties + + + PropertySerializationSet + + CacheData + + + + + + + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + PSStandardMembers + + + SerializationDepth + 10 + + + + + + Microsoft.Azure.Commands.Profile.Models.AzureContextConverter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Az.Accounts.nuspec b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Az.Accounts.nuspec new file mode 100644 index 000000000000..c7025c12758f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Az.Accounts.nuspec @@ -0,0 +1,19 @@ + + + + Az.Accounts + 2.13.1 + Microsoft Corporation + Microsoft Corporation + true + https://aka.ms/azps-license + https://github.com/Azure/azure-powershell + Microsoft Azure PowerShell - Accounts credential management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. + +For more information on account credential management, please visit the following: https://learn.microsoft.com/powershell/azure/authenticate-azureps + * Added the module name in breaking change messages +* Upgraded Microsoft.ApplicationInsights version from 2.13.1 to 2.18.0 + Microsoft Corporation. All rights reserved. + Azure ResourceManager ARM Accounts Authentication Environment Subscription PSModule PSIncludes_Cmdlet PSCmdlet_Disable-AzDataCollection PSCmdlet_Disable-AzContextAutosave PSCmdlet_Enable-AzDataCollection PSCmdlet_Enable-AzContextAutosave PSCmdlet_Remove-AzEnvironment PSCmdlet_Get-AzEnvironment PSCmdlet_Set-AzEnvironment PSCmdlet_Add-AzEnvironment PSCmdlet_Get-AzSubscription PSCmdlet_Connect-AzAccount PSCmdlet_Get-AzContext PSCmdlet_Set-AzContext PSCmdlet_Import-AzContext PSCmdlet_Save-AzContext PSCmdlet_Get-AzTenant PSCmdlet_Send-Feedback PSCmdlet_Resolve-AzError PSCmdlet_Select-AzContext PSCmdlet_Rename-AzContext PSCmdlet_Remove-AzContext PSCmdlet_Clear-AzContext PSCmdlet_Disconnect-AzAccount PSCmdlet_Get-AzContextAutosaveSetting PSCmdlet_Set-AzDefault PSCmdlet_Get-AzDefault PSCmdlet_Clear-AzDefault PSCmdlet_Register-AzModule PSCmdlet_Enable-AzureRmAlias PSCmdlet_Disable-AzureRmAlias PSCmdlet_Uninstall-AzureRm PSCmdlet_Invoke-AzRestMethod PSCmdlet_Get-AzAccessToken PSCmdlet_Open-AzSurveyLink PSCmdlet_Get-AzConfig PSCmdlet_Update-AzConfig PSCmdlet_Clear-AzConfig PSCmdlet_Export-AzConfig PSCmdlet_Import-AzConfig PSCommand_Disable-AzDataCollection PSCommand_Disable-AzContextAutosave PSCommand_Enable-AzDataCollection PSCommand_Enable-AzContextAutosave PSCommand_Remove-AzEnvironment PSCommand_Get-AzEnvironment PSCommand_Set-AzEnvironment PSCommand_Add-AzEnvironment PSCommand_Get-AzSubscription PSCommand_Connect-AzAccount PSCommand_Get-AzContext PSCommand_Set-AzContext PSCommand_Import-AzContext PSCommand_Save-AzContext PSCommand_Get-AzTenant PSCommand_Send-Feedback PSCommand_Resolve-AzError PSCommand_Select-AzContext PSCommand_Rename-AzContext PSCommand_Remove-AzContext PSCommand_Clear-AzContext PSCommand_Disconnect-AzAccount PSCommand_Get-AzContextAutosaveSetting PSCommand_Set-AzDefault PSCommand_Get-AzDefault PSCommand_Clear-AzDefault PSCommand_Register-AzModule PSCommand_Enable-AzureRmAlias PSCommand_Disable-AzureRmAlias PSCommand_Uninstall-AzureRm PSCommand_Invoke-AzRestMethod PSCommand_Get-AzAccessToken PSCommand_Open-AzSurveyLink PSCommand_Get-AzConfig PSCommand_Update-AzConfig PSCommand_Clear-AzConfig PSCommand_Export-AzConfig PSCommand_Import-AzConfig PSCommand_Add-AzAccount PSCommand_Login-AzAccount PSCommand_Remove-AzAccount PSCommand_Logout-AzAccount PSCommand_Select-AzSubscription PSCommand_Resolve-Error PSCommand_Save-AzProfile PSCommand_Get-AzDomain PSCommand_Invoke-AzRest PSCommand_Set-AzConfig + + \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Az.Accounts.psd1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Az.Accounts.psd1 new file mode 100644 index 000000000000..8b322becabf0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Az.Accounts.psd1 @@ -0,0 +1,389 @@ +# +# Module manifest for module 'Az.Accounts' +# +# Generated by: Microsoft Corporation +# +# Generated on: 9/20/2023 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'Az.Accounts.psm1' + +# Version number of this module. +ModuleVersion = '2.13.1' + +# Supported PSEditions +CompatiblePSEditions = 'Core', 'Desktop' + +# ID used to uniquely identify this module +GUID = '17a2feff-488b-47f9-8729-e2cec094624c' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = 'Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'Microsoft Azure PowerShell - Accounts credential management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. + +For more information on account credential management, please visit the following: https://learn.microsoft.com/powershell/azure/authenticate-azureps' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '5.1' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +DotNetFrameworkVersion = '4.7.2' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# ClrVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +# RequiredModules = @() + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'Microsoft.Azure.PowerShell.AssemblyLoading.dll', + 'Microsoft.Azure.PowerShell.Authentication.Abstractions.dll', + 'Microsoft.Azure.PowerShell.Authentication.dll', + 'Microsoft.Azure.PowerShell.Authenticators.dll', + 'Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll', + 'Microsoft.Azure.PowerShell.Clients.Authorization.dll', + 'Microsoft.Azure.PowerShell.Clients.Compute.dll', + 'Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll', + 'Microsoft.Azure.PowerShell.Clients.Monitor.dll', + 'Microsoft.Azure.PowerShell.Clients.Network.dll', + 'Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll', + 'Microsoft.Azure.PowerShell.Clients.ResourceManager.dll', + 'Microsoft.Azure.PowerShell.Common.dll', + 'Microsoft.Azure.PowerShell.Storage.dll', + 'Microsoft.Azure.PowerShell.Clients.Storage.Management.dll', + 'Microsoft.Azure.PowerShell.Clients.KeyVault.dll', + 'Microsoft.Azure.PowerShell.Clients.Websites.dll', + 'Hyak.Common.dll', 'Microsoft.ApplicationInsights.dll', + 'Microsoft.Azure.Common.dll', 'Microsoft.Rest.ClientRuntime.dll', + 'Microsoft.Rest.ClientRuntime.Azure.dll', + 'Microsoft.WindowsAzure.Storage.dll', + 'Microsoft.WindowsAzure.Storage.DataMovement.dll', + 'Microsoft.Azure.PowerShell.Clients.Aks.dll', + 'Microsoft.Azure.PowerShell.Strategies.dll', + 'Microsoft.Azure.PowerShell.Common.Share.dll', 'FuzzySharp.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +FormatsToProcess = 'Accounts.format.ps1xml', 'Accounts.generated.format.ps1xml' + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = @() + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = 'Disable-AzDataCollection', 'Disable-AzContextAutosave', + 'Enable-AzDataCollection', 'Enable-AzContextAutosave', + 'Remove-AzEnvironment', 'Get-AzEnvironment', 'Set-AzEnvironment', + 'Add-AzEnvironment', 'Get-AzSubscription', 'Connect-AzAccount', + 'Get-AzContext', 'Set-AzContext', 'Import-AzContext', 'Save-AzContext', + 'Get-AzTenant', 'Send-Feedback', 'Resolve-AzError', 'Select-AzContext', + 'Rename-AzContext', 'Remove-AzContext', 'Clear-AzContext', + 'Disconnect-AzAccount', 'Get-AzContextAutosaveSetting', + 'Set-AzDefault', 'Get-AzDefault', 'Clear-AzDefault', + 'Register-AzModule', 'Enable-AzureRmAlias', 'Disable-AzureRmAlias', + 'Uninstall-AzureRm', 'Invoke-AzRestMethod', 'Get-AzAccessToken', + 'Open-AzSurveyLink', 'Get-AzConfig', 'Update-AzConfig', + 'Clear-AzConfig', 'Export-AzConfig', 'Import-AzConfig' + +# Variables to export from this module +# VariablesToExport = @() + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = 'Add-AzAccount', 'Login-AzAccount', 'Remove-AzAccount', + 'Logout-AzAccount', 'Select-AzSubscription', 'Resolve-Error', + 'Save-AzProfile', 'Get-AzDomain', 'Invoke-AzRest', 'Set-AzConfig' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'Azure','ResourceManager','ARM','Accounts','Authentication','Environment','Subscription' + + # A URL to the license for this module. + LicenseUri = 'https://aka.ms/azps-license' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/Azure/azure-powershell' + + # A URL to an icon representing this module. + # IconUri = '' + + # ReleaseNotes of this module + ReleaseNotes = '* Added the module name in breaking change messages +* Upgraded Microsoft.ApplicationInsights version from 2.13.1 to 2.18.0 ' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} + + +# SIG # Begin signature block +# MIIn0QYJKoZIhvcNAQcCoIInwjCCJ74CAQExDzANBglghkgBZQMEAgEFADB5Bgor +# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG +# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAk2HPcwhsJ45gq +# tueQH3lZy0qaJUF7KlbsF568k8m1kaCCDYUwggYDMIID66ADAgECAhMzAAADTU6R +# phoosHiPAAAAAANNMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD +# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy +# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p +# bmcgUENBIDIwMTEwHhcNMjMwMzE2MTg0MzI4WhcNMjQwMzE0MTg0MzI4WjB0MQsw +# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u +# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy +# b3N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9k54TDZAUP17OpTM11gpTYfm +# uVAWZaqh086moHKLZsjVU/rzFA3En+QY5ZticB0LytwkIY+7pS6ikN4Q3e/pzPLH +# CSa2OZN3bXezZzOWMFLQwJ2IQJLpCKs0RiICTOaOKTpsjcoK2eBLwzXsgnnNZmj/ +# q1XMWGUJbnNJH4mszFVJ6X0cUo3OJvkF9V796VoZZMUS9i0EmCUZNE0rcvPdBnIE +# c8P+QSbLudmDA+XXno2ItqeA1ZkatNLyZGYGSjK4BU48MzcHMkWKCcUlqyfUiJt7 +# 7UGXDTuCzVkqCVVo7XpJNbN7X1oLkh8yTPr5RBbmlzzykIfEkoVnYj4Qc89ohb1N +# qXKDWby0ldBFOZIgyOgRiYJ984yyeAAXvOpTexhDtDCguYGfV56U+NTMve18Oa8u +# IODMD1Nfr+JLHL+J2tkMfZGFa71tGGnI2w9W6xUltjs8XINLrF08szKC6Vlo20wl +# F09Em/cF6qbZ2cnC/BDOt3xDDnJHYOHLR9QCZABbMd7JiuH32PE5C79PbpPYzyje +# p0LB6iM1n1UYaSSFWCx/a3Itdf6/ +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Az.Accounts.psm1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Az.Accounts.psm1 new file mode 100644 index 000000000000..2022fcfde49d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Az.Accounts.psm1 @@ -0,0 +1,365 @@ +# +# Script module for module 'Az.Accounts' that is executed when 'Az.Accounts' is imported in a PowerShell session. +# +# Generated by: Microsoft Corporation +# +# Generated on: 09/20/2023 05:38:15 +# + +$PSDefaultParameterValues.Clear() +Set-StrictMode -Version Latest + +function Test-DotNet +{ + try + { + if ((Get-PSDrive 'HKLM' -ErrorAction Ignore) -and (-not (Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' -ErrorAction Stop | Get-ItemPropertyValue -ErrorAction Stop -Name Release | Where-Object { $_ -ge 461808 }))) + { + throw ".NET Framework versions lower than 4.7.2 are not supported in Az. Please upgrade to .NET Framework 4.7.2 or higher." + } + } + catch [System.Management.Automation.DriveNotFoundException] + { + Write-Verbose ".NET Framework version check failed." + } +} + +function Preload-Assembly { + param ( + [string] + $AssemblyDirectory + ) + if($PSEdition -eq 'Desktop' -and (Test-Path $AssemblyDirectory -ErrorAction Ignore)) + { + try + { + Get-ChildItem -ErrorAction Stop -Path $AssemblyDirectory -Filter "*.dll" | ForEach-Object { + try + { + Add-Type -Path $_.FullName -ErrorAction Ignore | Out-Null + } + catch { + Write-Verbose $_ + } + } + } + catch {} + } +} + +if ($true -and ($PSEdition -eq 'Desktop')) +{ + if ($PSVersionTable.PSVersion -lt [Version]'5.1') + { + throw "PowerShell versions lower than 5.1 are not supported in Az. Please upgrade to PowerShell 5.1 or higher." + } + + Test-DotNet +} + +if ($true -and ($PSEdition -eq 'Core')) +{ + if ($PSVersionTable.PSVersion -lt [Version]'6.2.4') + { + throw "Current Az version doesn't support PowerShell Core versions lower than 6.2.4. Please upgrade to PowerShell Core 6.2.4 or higher." + } + if ($PSVersionTable.PSVersion -lt [Version]'7.0.6') + { + Write-Warning "This version of Az.Accounts is only supported on Windows PowerShell 5.1 and PowerShell 7.0.6 or greater, open https://aka.ms/install-powershell to learn how to upgrade. For further information, go to https://aka.ms/azpslifecycle." + } +} + +if (Test-Path -Path "$PSScriptRoot\StartupScripts" -ErrorAction Ignore) +{ + Get-ChildItem "$PSScriptRoot\StartupScripts" -ErrorAction Stop | ForEach-Object { + . $_.FullName + } +} + +# [windows powershell] preload assemblies +if ($PSEdition -eq "Desktop") { + [Microsoft.Azure.PowerShell.AssemblyLoading.ConditionalAssemblyProvider]::GetAssemblies().Values | ForEach-Object { + $path = $_.Item1 + try { + Add-Type -Path $path -ErrorAction Ignore | Out-Null + } + catch { + Write-Verbose "Could not preload $path" + } + } +} + +# [windows powershell] preload module alc assemblies +$preloadPath = (Join-Path $PSScriptRoot -ChildPath "ModuleAlcAssemblies") +Preload-Assembly -AssemblyDirectory $preloadPath + +if (Get-Module AzureRM.profile -ErrorAction Ignore) +{ + Write-Warning ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + + "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") + throw ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + + "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") +} + +Import-Module (Join-Path -Path $PSScriptRoot -ChildPath Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll) + + +if (Test-Path -Path "$PSScriptRoot\PostImportScripts" -ErrorAction Ignore) +{ + Get-ChildItem "$PSScriptRoot\PostImportScripts" -ErrorAction Stop | ForEach-Object { + . $_.FullName + } +} + +$FilteredCommands = @() + +if ($Env:ACC_CLOUD -eq $null) +{ + $FilteredCommands | ForEach-Object { + + $existingDefault = $false + foreach ($key in $global:PSDefaultParameterValues.Keys) + { + if ($_ -like "$key") + { + $existingDefault = $true + } + } + + if (!$existingDefault) + { + $global:PSDefaultParameterValues.Add($_, + { + if ((Get-Command Get-AzContext -ErrorAction Ignore) -eq $null) + { + $context = Get-AzureRmContext + } + else + { + $context = Get-AzContext + } + if (($context -ne $null) -and $context.ExtendedProperties.ContainsKey("Default Resource Group")) { + $context.ExtendedProperties["Default Resource Group"] + } + }) + } + } +} + +[Microsoft.Azure.Commands.Profile.Utilities.CommandNotFoundHelper]::RegisterCommandNotFoundAction($ExecutionContext.InvokeCommand) + +# SIG # Begin signature block +# MIInwgYJKoZIhvcNAQcC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ECLJkkerZA79OU9UJFL6cdrr5s6KENdLQkXIO +# o3M2KywJgUYUVK4v2mSeUzyahW3XW0+i5K03EPAlDi4ONFZZSE5l73er2SziU0go +# a8R5O6oYM6AAPmSBTX/6EpF1vb5fkPfOSI3nBe1TBlovGg3WvWQGn9Ft5B/kSq6F +# MXMUpngZ +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/FuzzySharp.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/FuzzySharp.dll new file mode 100644 index 000000000000..d25fb236c3e9 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/FuzzySharp.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Hyak.Common.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Hyak.Common.dll new file mode 100644 index 000000000000..18a53248894f Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Hyak.Common.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.ApplicationInsights.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.ApplicationInsights.dll new file mode 100644 index 000000000000..8ef5eef2989d Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.ApplicationInsights.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.Common.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.Common.dll new file mode 100644 index 000000000000..1c9d8e2a0ef5 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.Common.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.AssemblyLoading.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.AssemblyLoading.dll new file mode 100644 index 000000000000..38f5f8542077 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.AssemblyLoading.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.Abstractions.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.Abstractions.dll new file mode 100644 index 000000000000..77cc1c46f5a7 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.Abstractions.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll new file mode 100644 index 000000000000..d8429b2b6881 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.dll new file mode 100644 index 000000000000..1503a5b6d3ac Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authentication.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll new file mode 100644 index 000000000000..acc0eb23524f Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authenticators.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authenticators.dll new file mode 100644 index 000000000000..1d35ab395d17 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Authenticators.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Aks.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Aks.dll new file mode 100644 index 000000000000..3ab15df83c30 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Aks.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Authorization.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Authorization.dll new file mode 100644 index 000000000000..4b6131e2a0f6 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Authorization.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Compute.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Compute.dll new file mode 100644 index 000000000000..b5c2285f8237 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Compute.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll new file mode 100644 index 000000000000..afd56a7b9208 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.KeyVault.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.KeyVault.dll new file mode 100644 index 000000000000..b6838bea7093 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.KeyVault.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Monitor.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Monitor.dll new file mode 100644 index 000000000000..d28204acd31a Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Monitor.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Network.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Network.dll new file mode 100644 index 000000000000..b35c96f4c5cb Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Network.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll new file mode 100644 index 000000000000..3a37aeb3a3d5 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.ResourceManager.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.ResourceManager.dll new file mode 100644 index 000000000000..6b3270044fbc Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.ResourceManager.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Storage.Management.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Storage.Management.dll new file mode 100644 index 000000000000..eaa53e5a4ac9 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Storage.Management.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Websites.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Websites.dll new file mode 100644 index 000000000000..947ac62a5ac0 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Clients.Websites.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll new file mode 100644 index 000000000000..f2f380543ee1 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml new file mode 100644 index 000000000000..07d9948aca17 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml @@ -0,0 +1,13631 @@ + + + + + Add-AzEnvironment + Add + AzEnvironment + + Adds endpoints and metadata for an instance of Azure Resource Manager. + + + + The Add-AzEnvironment cmdlet adds endpoints and metadata to enable Azure Resource Manager cmdlets to connect with a new instance of Azure Resource Manager. The built-in environments AzureCloud and AzureChinaCloud target existing public instances of Azure Resource Manager. + + + + Add-AzEnvironment + + Name + + Specifies the name of the environment to add. + + System.String + + System.String + + + None + + + PublishSettingsFileUrl + + Specifies the URL from which .publishsettings files can be downloaded. + + System.String + + System.String + + + None + + + AzureKeyVaultDnsSuffix + + Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net + + System.String + + System.String + + + None + + + AzureKeyVaultServiceEndpointResourceId + + Resource identifier of Azure Key Vault data service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + TrafficManagerDnsSuffix + + Specifies the domain-name suffix for Azure Traffic Manager services. + + System.String + + System.String + + + None + + + SqlDatabaseDnsSuffix + + Specifies the domain-name suffix for Azure SQL Database servers. + + System.String + + System.String + + + None + + + AzureDataLakeStoreFileSystemEndpointSuffix + + Dns Suffix of Azure Data Lake Store FileSystem. Example: azuredatalake.net + + System.String + + System.String + + + None + + + AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix + + Dns Suffix of Azure Data Lake Analytics job and catalog services + + System.String + + System.String + + + None + + + EnableAdfsAuthentication + + Indicates that Active Directory Federation Services (ADFS) on-premise authentication is allowed. + + + System.Management.Automation.SwitchParameter + + + False + + + AdTenant + + Specifies the default Active Directory tenant. + + System.String + + System.String + + + None + + + GraphAudience + + The audience for tokens authenticating with the AD Graph Endpoint. + + System.String + + System.String + + + None + + + DataLakeAudience + + The audience for tokens authenticating with the AD Data Lake services Endpoint. + + System.String + + System.String + + + None + + + ServiceEndpoint + + Specifies the endpoint for Service Management (RDFE) requests. + + System.String + + System.String + + + None + + + BatchEndpointResourceId + + The resource identifier of the Azure Batch service that is the recipient of the requested token + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpointResourceId + + The audience for tokens authenticating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpoint + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + ManagementPortalUrl + + Specifies the URL for the Management Portal. + + System.String + + System.String + + + None + + + StorageEndpoint + + Specifies the endpoint for storage (blob, table, queue, and file) access. + + System.String + + System.String + + + None + + + ActiveDirectoryEndpoint + + Specifies the base authority for Azure Active Directory authentication. + + System.String + + System.String + + + None + + + ResourceManagerEndpoint + + Specifies the URL for Azure Resource Manager requests. + + System.String + + System.String + + + None + + + GalleryEndpoint + + Specifies the endpoint for the Azure Resource Manager gallery of deployment templates. The parameter is to set the value to `GalleryUrl` of `PSAzureEnvironment`. As `GalleryUrl` is removed from ArmMetadata, Azure PowerShell will no longer provide for the value and so it is not recommended to set `GalleryEndpoint` anymore. + + System.String + + System.String + + + None + + + ActiveDirectoryServiceEndpointResourceId + + Specifies the audience for tokens that authenticate requests to Azure Resource Manager or Service Management (RDFE) endpoints. + + System.String + + System.String + + + None + + + GraphEndpoint + + Specifies the URL for Graph (Active Directory metadata) requests. + + System.String + + System.String + + + None + + + AzureAnalysisServicesEndpointResourceId + + The resource identifier of the Azure Analysis Services resource. + + System.String + + System.String + + + None + + + AzureAnalysisServicesEndpointSuffix + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointResourceId + + The The resource identifier of the Azure Attestation service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointSuffix + + Dns suffix of Azure Attestation service. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointResourceId + + The The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointSuffix + + Dns suffix of Azure Synapse Analytics. + + System.String + + System.String + + + None + + + ContainerRegistryEndpointSuffix + + Suffix of Azure Container Registry. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + MicrosoftGraphEndpointResourceId + + The resource identifier of Microsoft Graph + + System.String + + System.String + + + None + + + MicrosoftGraphUrl + + Microsoft Graph Url + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Add-AzEnvironment + + Name + + Specifies the name of the environment to add. + + System.String + + System.String + + + None + + + ARMEndpoint + + The Azure Resource Manager endpoint + + System.String + + System.String + + + None + + + AzureKeyVaultDnsSuffix + + Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net + + System.String + + System.String + + + None + + + AzureKeyVaultServiceEndpointResourceId + + Resource identifier of Azure Key Vault data service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + DataLakeAudience + + The audience for tokens authenticating with the AD Data Lake services Endpoint. + + System.String + + System.String + + + None + + + BatchEndpointResourceId + + The resource identifier of the Azure Batch service that is the recipient of the requested token + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpointResourceId + + The audience for tokens authenticating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpoint + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + StorageEndpoint + + Specifies the endpoint for storage (blob, table, queue, and file) access. + + System.String + + System.String + + + None + + + AzureAnalysisServicesEndpointResourceId + + The resource identifier of the Azure Analysis Services resource. + + System.String + + System.String + + + None + + + AzureAnalysisServicesEndpointSuffix + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointResourceId + + The The resource identifier of the Azure Attestation service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointSuffix + + Dns suffix of Azure Attestation service. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointResourceId + + The The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointSuffix + + Dns suffix of Azure Synapse Analytics. + + System.String + + System.String + + + None + + + ContainerRegistryEndpointSuffix + + Suffix of Azure Container Registry. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Add-AzEnvironment + + AutoDiscover + + Discovers environments via default or configured endpoint. + + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Uri + + Specifies URI of the internet resource to fetch environments. + + System.Uri + + System.Uri + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + ActiveDirectoryEndpoint + + Specifies the base authority for Azure Active Directory authentication. + + System.String + + System.String + + + None + + + ActiveDirectoryServiceEndpointResourceId + + Specifies the audience for tokens that authenticate requests to Azure Resource Manager or Service Management (RDFE) endpoints. + + System.String + + System.String + + + None + + + AdTenant + + Specifies the default Active Directory tenant. + + System.String + + System.String + + + None + + + ARMEndpoint + + The Azure Resource Manager endpoint + + System.String + + System.String + + + None + + + AutoDiscover + + Discovers environments via default or configured endpoint. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + AzureAnalysisServicesEndpointResourceId + + The resource identifier of the Azure Analysis Services resource. + + System.String + + System.String + + + None + + + AzureAnalysisServicesEndpointSuffix + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointResourceId + + The The resource identifier of the Azure Attestation service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointSuffix + + Dns suffix of Azure Attestation service. + + System.String + + System.String + + + None + + + AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix + + Dns Suffix of Azure Data Lake Analytics job and catalog services + + System.String + + System.String + + + None + + + AzureDataLakeStoreFileSystemEndpointSuffix + + Dns Suffix of Azure Data Lake Store FileSystem. Example: azuredatalake.net + + System.String + + System.String + + + None + + + AzureKeyVaultDnsSuffix + + Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net + + System.String + + System.String + + + None + + + AzureKeyVaultServiceEndpointResourceId + + Resource identifier of Azure Key Vault data service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpoint + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpointResourceId + + The audience for tokens authenticating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointResourceId + + The The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointSuffix + + Dns suffix of Azure Synapse Analytics. + + System.String + + System.String + + + None + + + BatchEndpointResourceId + + The resource identifier of the Azure Batch service that is the recipient of the requested token + + System.String + + System.String + + + None + + + ContainerRegistryEndpointSuffix + + Suffix of Azure Container Registry. + + System.String + + System.String + + + None + + + DataLakeAudience + + The audience for tokens authenticating with the AD Data Lake services Endpoint. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + EnableAdfsAuthentication + + Indicates that Active Directory Federation Services (ADFS) on-premise authentication is allowed. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + GalleryEndpoint + + Specifies the endpoint for the Azure Resource Manager gallery of deployment templates. The parameter is to set the value to `GalleryUrl` of `PSAzureEnvironment`. As `GalleryUrl` is removed from ArmMetadata, Azure PowerShell will no longer provide for the value and so it is not recommended to set `GalleryEndpoint` anymore. + + System.String + + System.String + + + None + + + GraphAudience + + The audience for tokens authenticating with the AD Graph Endpoint. + + System.String + + System.String + + + None + + + GraphEndpoint + + Specifies the URL for Graph (Active Directory metadata) requests. + + System.String + + System.String + + + None + + + ManagementPortalUrl + + Specifies the URL for the Management Portal. + + System.String + + System.String + + + None + + + MicrosoftGraphEndpointResourceId + + The resource identifier of Microsoft Graph + + System.String + + System.String + + + None + + + MicrosoftGraphUrl + + Microsoft Graph Url + + System.String + + System.String + + + None + + + Name + + Specifies the name of the environment to add. + + System.String + + System.String + + + None + + + PublishSettingsFileUrl + + Specifies the URL from which .publishsettings files can be downloaded. + + System.String + + System.String + + + None + + + ResourceManagerEndpoint + + Specifies the URL for Azure Resource Manager requests. + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + ServiceEndpoint + + Specifies the endpoint for Service Management (RDFE) requests. + + System.String + + System.String + + + None + + + SqlDatabaseDnsSuffix + + Specifies the domain-name suffix for Azure SQL Database servers. + + System.String + + System.String + + + None + + + StorageEndpoint + + Specifies the endpoint for storage (blob, table, queue, and file) access. + + System.String + + System.String + + + None + + + TrafficManagerDnsSuffix + + Specifies the domain-name suffix for Azure Traffic Manager services. + + System.String + + System.String + + + None + + + Uri + + Specifies URI of the internet resource to fetch environments. + + System.Uri + + System.Uri + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + System.String + + + + + + + + System.Management.Automation.SwitchParameter + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment + + + + + + + + + + + + + + ----- Example 1: Creating and modifying a new environment ----- + Add-AzEnvironment -Name TestEnvironment ` + -ActiveDirectoryEndpoint TestADEndpoint ` + -ActiveDirectoryServiceEndpointResourceId TestADApplicationId ` + -ResourceManagerEndpoint TestRMEndpoint ` + -GalleryEndpoint TestGalleryEndpoint ` + -GraphEndpoint TestGraphEndpoint + +Name Resource Manager Url ActiveDirectory Authority +---- -------------------- ------------------------- +TestEnvironment TestRMEndpoint TestADEndpoint/ + +Set-AzEnvironment -Name TestEnvironment ` + -ActiveDirectoryEndpoint NewTestADEndpoint ` + -GraphEndpoint NewTestGraphEndpoint | Format-List + +Name : TestEnvironment +EnableAdfsAuthentication : False +OnPremise : False +ActiveDirectoryServiceEndpointResourceId : TestADApplicationId +AdTenant : +GalleryUrl : TestGalleryEndpoint +ManagementPortalUrl : +ServiceManagementUrl : +PublishSettingsFileUrl : +ResourceManagerUrl : TestRMEndpoint +SqlDatabaseDnsSuffix : +StorageEndpointSuffix : +ActiveDirectoryAuthority : NewTestADEndpoint +GraphUrl : NewTestGraphEndpoint +GraphEndpointResourceId : +TrafficManagerDnsSuffix : +AzureKeyVaultDnsSuffix : +DataLakeEndpointResourceId : +AzureDataLakeStoreFileSystemEndpointSuffix : +AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix : +AzureKeyVaultServiceEndpointResourceId : +AzureOperationalInsightsEndpointResourceId : +AzureOperationalInsightsEndpoint : +AzureAnalysisServicesEndpointSuffix : +AzureAttestationServiceEndpointSuffix : +AzureAttestationServiceEndpointResourceId : +AzureSynapseAnalyticsEndpointSuffix : +AzureSynapseAnalyticsEndpointResourceId : +VersionProfiles : {} +ExtendedProperties : {} +BatchEndpointResourceId : + + In this example we are creating a new Azure environment with sample endpoints using Add-AzEnvironment, and then we are changing the value of the ActiveDirectoryEndpoint and GraphEndpoint attributes of the created environment using the cmdlet Set-AzEnvironment. + + + + + + ------- Example 2: Discovering a new environment via Uri ------- + <# +Uri https://configuredmetadata.net returns an array of environment metadata. The following example contains a payload for the AzureCloud default environment. + +[ + { + "portal": "https://portal.azure.com", + "authentication": { + "loginEndpoint": "https://login.microsoftonline.com/", + "audiences": [ + "https://management.core.windows.net/" + ], + "tenant": "common", + "identityProvider": "AAD" + }, + "media": "https://rest.media.azure.net", + "graphAudience": "https://graph.windows.net/", + "graph": "https://graph.windows.net/", + "name": "AzureCloud", + "suffixes": { + "azureDataLakeStoreFileSystem": "azuredatalakestore.net", + "acrLoginServer": "azurecr.io", + "sqlServerHostname": ".database.windows.net", + "azureDataLakeAnalyticsCatalogAndJob": "azuredatalakeanalytics.net", + "keyVaultDns": "vault.azure.net", + "storage": "core.windows.net", + "azureFrontDoorEndpointSuffix": "azurefd.net" + }, + "batch": "https://batch.core.windows.net/", + "resourceManager": "https://management.azure.com/", + "vmImageAliasDoc": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json", + "activeDirectoryDataLake": "https://datalake.azure.net/", + "sqlManagement": "https://management.core.windows.net:8443/", + "gallery": "https://gallery.azure.com/" + }, +…… +] +#> + +Add-AzEnvironment -AutoDiscover -Uri https://configuredmetadata.net + +Name Resource Manager Url ActiveDirectory Authority +---- -------------------- ------------------------- +TestEnvironment TestRMEndpoint TestADEndpoint/ + + In this example, we are discovering a new Azure environment from the `https://configuredmetadata.net` Uri. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/add-azenvironment + + + Get-AzEnvironment + + + + Remove-AzEnvironment + + + + Set-AzEnvironment + + + + + + + Clear-AzConfig + Clear + AzConfig + + Clears the values of configs that are set by the user. + + + + Clears the values of configs that are set by the user. By default all the configs will be cleared. You can also specify keys of configs to clear. + + + + Clear-AzConfig + + AppliesTo + + Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. + - Module name: the config applies to a certain module of Azure PowerShell. + For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". + + System.String + + System.String + + + None + + + CheckForUpgrade + + When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value will be changed from false to true in Az version 11.0.0. + + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + DefaultSubscriptionForLogin + + Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. + + + System.Management.Automation.SwitchParameter + + + False + + + DisableErrorRecordsPersistence + + When disabled, error records will not be written to ~/.Azure/ErrorRecords. This config will be replaced by "EnableErrorRecordsPersistence" as opt-in in the next major release of Az around November 2023. + + + System.Management.Automation.SwitchParameter + + + False + + + DisplayBreakingChangeWarning + + Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. + + + System.Management.Automation.SwitchParameter + + + False + + + DisplayRegionIdentified + + When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. + + + System.Management.Automation.SwitchParameter + + + False + + + DisplaySurveyMessage + + When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. + + + System.Management.Automation.SwitchParameter + + + False + + + EnableDataCollection + + When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy + + + System.Management.Automation.SwitchParameter + + + False + + + EnableLoginByWam + + [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue + + + System.Management.Automation.SwitchParameter + + + False + + + PassThru + + Returns true if cmdlet executes correctly. + + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. + + + CurrentUser + Process + Default + Environment + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Clear-AzConfig + + AppliesTo + + Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. + - Module name: the config applies to a certain module of Azure PowerShell. + For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Do not ask for confirmation when clearing all configs. + + + System.Management.Automation.SwitchParameter + + + False + + + PassThru + + Returns true if cmdlet executes correctly. + + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. + + + CurrentUser + Process + Default + Environment + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + AppliesTo + + Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. + - Module name: the config applies to a certain module of Azure PowerShell. + For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". + + System.String + + System.String + + + None + + + CheckForUpgrade + + When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value will be changed from false to true in Az version 11.0.0. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + DefaultSubscriptionForLogin + + Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DisableErrorRecordsPersistence + + When disabled, error records will not be written to ~/.Azure/ErrorRecords. This config will be replaced by "EnableErrorRecordsPersistence" as opt-in in the next major release of Az around November 2023. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DisplayBreakingChangeWarning + + Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DisplayRegionIdentified + + When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DisplaySurveyMessage + + When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + EnableDataCollection + + When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + EnableLoginByWam + + [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Force + + Do not ask for confirmation when clearing all configs. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + PassThru + + Returns true if cmdlet executes correctly. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + System.Boolean + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Clear-AzConfig -Force + + Clear all the configs. `-Force` suppresses the prompt for confirmation. + + + + + + -------------------------- Example 2 -------------------------- + Clear-AzConfig -EnableDataCollection + + Clear the "EnableDataCollection" config. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/clear-azconfig + + + + + + Clear-AzContext + Clear + AzContext + + Remove all Azure credentials, account, and subscription information. + + + + Remove all Azure Credentials, account, and subscription information. + + + + Clear-AzContext + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Delete all users and groups from the global scope without prompting + + + System.Management.Automation.SwitchParameter + + + False + + + PassThru + + Return a value indicating success or failure + + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Clear the context only for the current PowerShell session, or for all sessions. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Delete all users and groups from the global scope without prompting + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + PassThru + + Return a value indicating success or failure + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Clear the context only for the current PowerShell session, or for all sessions. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + System.Boolean + + + + + + + + + + + + + + --------------- Example 1: Clear global context --------------- + Clear-AzContext -Scope CurrentUser + + Remove all account, subscription, and credential information for any powershell session. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/clear-azcontext + + + + + + Clear-AzDefault + Clear + AzDefault + + Clears the defaults set by the user in the current context. + + + + The Clear-AzDefault cmdlet removes the defaults set by the user depending on the switch parameters specified by the user. + + + + Clear-AzDefault + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Remove all defaults if no default is specified + + + System.Management.Automation.SwitchParameter + + + False + + + PassThru + + {{Fill PassThru Description}} + + + System.Management.Automation.SwitchParameter + + + False + + + ResourceGroup + + Clear Default Resource Group + + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Remove all defaults if no default is specified + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + PassThru + + {{Fill PassThru Description}} + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + ResourceGroup + + Clear Default Resource Group + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + System.Management.Automation.SwitchParameter + + + + + + + + + + System.Boolean + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Clear-AzDefault + + This command removes all the defaults set by the user in the current context. + + + + + + -------------------------- Example 2 -------------------------- + Clear-AzDefault -ResourceGroup + + This command removes the default resource group set by the user in the current context. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/clear-azdefault + + + + + + Connect-AzAccount + Connect + AzAccount + + Connect to Azure with an authenticated account for use with cmdlets from the Az PowerShell modules. + + + + The `Connect-AzAccount` cmdlet connects to Azure with an authenticated account for use with cmdlets from the Az PowerShell modules. You can use this authenticated account only with Azure Resource Manager requests. To add an authenticated account for use with Service Management, use the `Add-AzureAccount` cmdlet from the Azure PowerShell module. If no context is found for the current user, the user's context list is populated with a context for each of their first 25 subscriptions. The list of contexts created for the user can be found by running `Get-AzContext -ListAvailable`. To skip this context population, specify the SkipContextPopulation switch parameter. After executing this cmdlet, you can disconnect from an Azure account using `Disconnect-AzAccount`. + + + + Connect-AzAccount + + AccessToken + + Specifies an access token. + > [!CAUTION] > Access tokens are a type of credential. You should take the appropriate security precautions to > keep them confidential. Access tokens also timeout and may prevent long running tasks from > completing. + + System.String + + System.String + + + None + + + AccountId + + Account Id / User Id / User Name to login with in Default (UserWithSubscriptionId) parameter set; Account ID for access token in AccessToken parameter set; Account ID for managed service in ManagedService parameter set. Can be a managed service resource ID, or the associated client ID. To use the system assigned identity, leave this field blank. + + System.String + + System.String + + + None + + + ContextName + + Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Environment + + Environment containing the Azure account. + + System.String + + System.String + + + None + + + Force + + Overwrite the existing context with the same name without prompting. + + + System.Management.Automation.SwitchParameter + + + False + + + GraphAccessToken + + AccessToken for Graph Service. + + System.String + + System.String + + + None + + + KeyVaultAccessToken + + AccessToken for KeyVault Service. + + System.String + + System.String + + + None + + + MaxContextPopulation + + Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. + + System.Int32 + + System.Int32 + + + None + + + MicrosoftGraphAccessToken + + Access token to Microsoft Graph + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + SkipContextPopulation + + Skips context population if no contexts are found. + + + System.Management.Automation.SwitchParameter + + + False + + + SkipValidation + + Skip validation for access token. + + + System.Management.Automation.SwitchParameter + + + False + + + Subscription + + Subscription Name or ID. + + System.String + + System.String + + + None + + + Tenant + + Optional tenant name or ID. + > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Connect-AzAccount + + AccountId + + Account Id / User Id / User Name to login with in Default (UserWithSubscriptionId) parameter set; Account ID for access token in AccessToken parameter set; Account ID for managed service in ManagedService parameter set. Can be a managed service resource ID, or the associated client ID. To use the system assigned identity, leave this field blank. + + System.String + + System.String + + + None + + + AuthScope + + Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. + + System.String + + System.String + + + None + + + ContextName + + Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Environment + + Environment containing the Azure account. + + System.String + + System.String + + + None + + + Force + + Overwrite the existing context with the same name without prompting. + + + System.Management.Automation.SwitchParameter + + + False + + + MaxContextPopulation + + Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. + + System.Int32 + + System.Int32 + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + SkipContextPopulation + + Skips context population if no contexts are found. + + + System.Management.Automation.SwitchParameter + + + False + + + Subscription + + Subscription Name or ID. + + System.String + + System.String + + + None + + + Tenant + + Optional tenant name or ID. + > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. + + System.String + + System.String + + + None + + + UseDeviceAuthentication + + Use device code authentication instead of a browser control. + + + System.Management.Automation.SwitchParameter + + + False + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Connect-AzAccount + + AccountId + + Account Id / User Id / User Name to login with in Default (UserWithSubscriptionId) parameter set; Account ID for access token in AccessToken parameter set; Account ID for managed service in ManagedService parameter set. Can be a managed service resource ID, or the associated client ID. To use the system assigned identity, leave this field blank. + + System.String + + System.String + + + None + + + AuthScope + + Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. + + System.String + + System.String + + + None + + + ContextName + + Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Environment + + Environment containing the Azure account. + + System.String + + System.String + + + None + + + Force + + Overwrite the existing context with the same name without prompting. + + + System.Management.Automation.SwitchParameter + + + False + + + Identity + + Login using a Managed Service Identity. + + + System.Management.Automation.SwitchParameter + + + False + + + MaxContextPopulation + + Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. + + System.Int32 + + System.Int32 + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + SkipContextPopulation + + Skips context population if no contexts are found. + + + System.Management.Automation.SwitchParameter + + + False + + + Subscription + + Subscription Name or ID. + + System.String + + System.String + + + None + + + Tenant + + Optional tenant name or ID. + > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Connect-AzAccount + + ApplicationId + + Application ID of the service principal. + + System.String + + System.String + + + None + + + AuthScope + + Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. + + System.String + + System.String + + + None + + + CertificateThumbprint + + Certificate Hash or Thumbprint. + + System.String + + System.String + + + None + + + ContextName + + Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Environment + + Environment containing the Azure account. + + System.String + + System.String + + + None + + + Force + + Overwrite the existing context with the same name without prompting. + + + System.Management.Automation.SwitchParameter + + + False + + + MaxContextPopulation + + Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. + + System.Int32 + + System.Int32 + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + SendCertificateChain + + Specifies if the x5c claim (public key of the certificate) should be sent to the STS to achieve easy certificate rollover in Azure AD. + + + System.Management.Automation.SwitchParameter + + + False + + + ServicePrincipal + + Indicates that this account authenticates by providing service principal credentials. + + + System.Management.Automation.SwitchParameter + + + False + + + SkipContextPopulation + + Skips context population if no contexts are found. + + + System.Management.Automation.SwitchParameter + + + False + + + Subscription + + Subscription Name or ID. + + System.String + + System.String + + + None + + + Tenant + + Optional tenant name or ID. + > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Connect-AzAccount + + ApplicationId + + Application ID of the service principal. + + System.String + + System.String + + + None + + + ContextName + + Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Environment + + Environment containing the Azure account. + + System.String + + System.String + + + None + + + FederatedToken + + Specifies a token provided by another identity provider. The issuer and subject in this token must be first configured to be trusted by the ApplicationId. + > [!CAUTION] > Federated tokens are a type of credential. You should take the appropriate security precautions to keep them confidential. Federated tokens also timeout and may prevent long running tasks from completing. + + System.String + + System.String + + + None + + + Force + + Overwrite the existing context with the same name without prompting. + + + System.Management.Automation.SwitchParameter + + + False + + + MaxContextPopulation + + Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. + + System.Int32 + + System.Int32 + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + ServicePrincipal + + Indicates that this account authenticates by providing service principal credentials. + + + System.Management.Automation.SwitchParameter + + + False + + + SkipContextPopulation + + Skips context population if no contexts are found. + + + System.Management.Automation.SwitchParameter + + + False + + + Subscription + + Subscription Name or ID. + + System.String + + System.String + + + None + + + Tenant + + Optional tenant name or ID. + > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Connect-AzAccount + + ApplicationId + + Application ID of the service principal. + + System.String + + System.String + + + None + + + CertificatePassword + + The password required to access the pkcs#12 certificate file. + + System.Security.SecureString + + System.Security.SecureString + + + None + + + CertificatePath + + The path of certficate file in pkcs#12 format. + + System.String + + System.String + + + None + + + ContextName + + Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Environment + + Environment containing the Azure account. + + System.String + + System.String + + + None + + + Force + + Overwrite the existing context with the same name without prompting. + + + System.Management.Automation.SwitchParameter + + + False + + + MaxContextPopulation + + Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. + + System.Int32 + + System.Int32 + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + SendCertificateChain + + Specifies if the x5c claim (public key of the certificate) should be sent to the STS to achieve easy certificate rollover in Azure AD. + + + System.Management.Automation.SwitchParameter + + + False + + + ServicePrincipal + + Indicates that this account authenticates by providing service principal credentials. + + + System.Management.Automation.SwitchParameter + + + False + + + SkipContextPopulation + + Skips context population if no contexts are found. + + + System.Management.Automation.SwitchParameter + + + False + + + Subscription + + Subscription Name or ID. + + System.String + + System.String + + + None + + + Tenant + + Optional tenant name or ID. + > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Connect-AzAccount + + AuthScope + + Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. + + System.String + + System.String + + + None + + + ContextName + + Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). + + System.String + + System.String + + + None + + + Credential + + Specifies a PSCredential object. For more information about the PSCredential object, type `Get-Help Get-Credential`. The PSCredential object provides the user ID and password for organizational ID credentials, or the application ID and secret for service principal credentials. + + System.Management.Automation.PSCredential + + System.Management.Automation.PSCredential + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Environment + + Environment containing the Azure account. + + System.String + + System.String + + + None + + + Force + + Overwrite the existing context with the same name without prompting. + + + System.Management.Automation.SwitchParameter + + + False + + + MaxContextPopulation + + Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. + + System.Int32 + + System.Int32 + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + ServicePrincipal + + Indicates that this account authenticates by providing service principal credentials. + + + System.Management.Automation.SwitchParameter + + + False + + + SkipContextPopulation + + Skips context population if no contexts are found. + + + System.Management.Automation.SwitchParameter + + + False + + + Subscription + + Subscription Name or ID. + + System.String + + System.String + + + None + + + Tenant + + Optional tenant name or ID. + > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Connect-AzAccount + + AuthScope + + Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. + + System.String + + System.String + + + None + + + ContextName + + Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). + + System.String + + System.String + + + None + + + Credential + + Specifies a PSCredential object. For more information about the PSCredential object, type `Get-Help Get-Credential`. The PSCredential object provides the user ID and password for organizational ID credentials, or the application ID and secret for service principal credentials. + + System.Management.Automation.PSCredential + + System.Management.Automation.PSCredential + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Environment + + Environment containing the Azure account. + + System.String + + System.String + + + None + + + Force + + Overwrite the existing context with the same name without prompting. + + + System.Management.Automation.SwitchParameter + + + False + + + MaxContextPopulation + + Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. + + System.Int32 + + System.Int32 + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + SkipContextPopulation + + Skips context population if no contexts are found. + + + System.Management.Automation.SwitchParameter + + + False + + + Subscription + + Subscription Name or ID. + + System.String + + System.String + + + None + + + Tenant + + Optional tenant name or ID. + > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + AccessToken + + Specifies an access token. + > [!CAUTION] > Access tokens are a type of credential. You should take the appropriate security precautions to > keep them confidential. Access tokens also timeout and may prevent long running tasks from > completing. + + System.String + + System.String + + + None + + + AccountId + + Account Id / User Id / User Name to login with in Default (UserWithSubscriptionId) parameter set; Account ID for access token in AccessToken parameter set; Account ID for managed service in ManagedService parameter set. Can be a managed service resource ID, or the associated client ID. To use the system assigned identity, leave this field blank. + + System.String + + System.String + + + None + + + ApplicationId + + Application ID of the service principal. + + System.String + + System.String + + + None + + + AuthScope + + Optional OAuth scope for login, supported pre-defined values: AadGraph, AnalysisServices, Attestation, Batch, DataLake, KeyVault, OperationalInsights, Storage, Synapse. It also supports resource id like `https://storage.azure.com/`. + + System.String + + System.String + + + None + + + CertificatePassword + + The password required to access the pkcs#12 certificate file. + + System.Security.SecureString + + System.Security.SecureString + + + None + + + CertificatePath + + The path of certficate file in pkcs#12 format. + + System.String + + System.String + + + None + + + CertificateThumbprint + + Certificate Hash or Thumbprint. + + System.String + + System.String + + + None + + + ContextName + + Name of the default Azure context for this login. For more information about Azure contexts, see Azure PowerShell context objects (/powershell/azure/context-persistence). + + System.String + + System.String + + + None + + + Credential + + Specifies a PSCredential object. For more information about the PSCredential object, type `Get-Help Get-Credential`. The PSCredential object provides the user ID and password for organizational ID credentials, or the application ID and secret for service principal credentials. + + System.Management.Automation.PSCredential + + System.Management.Automation.PSCredential + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Environment + + Environment containing the Azure account. + + System.String + + System.String + + + None + + + FederatedToken + + Specifies a token provided by another identity provider. The issuer and subject in this token must be first configured to be trusted by the ApplicationId. + > [!CAUTION] > Federated tokens are a type of credential. You should take the appropriate security precautions to keep them confidential. Federated tokens also timeout and may prevent long running tasks from completing. + + System.String + + System.String + + + None + + + Force + + Overwrite the existing context with the same name without prompting. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + GraphAccessToken + + AccessToken for Graph Service. + + System.String + + System.String + + + None + + + Identity + + Login using a Managed Service Identity. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + KeyVaultAccessToken + + AccessToken for KeyVault Service. + + System.String + + System.String + + + None + + + MaxContextPopulation + + Max subscription number to populate contexts after login. Default is 25. To populate all subscriptions to contexts, set to -1. + + System.Int32 + + System.Int32 + + + None + + + MicrosoftGraphAccessToken + + Access token to Microsoft Graph + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + SendCertificateChain + + Specifies if the x5c claim (public key of the certificate) should be sent to the STS to achieve easy certificate rollover in Azure AD. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + ServicePrincipal + + Indicates that this account authenticates by providing service principal credentials. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + SkipContextPopulation + + Skips context population if no contexts are found. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + SkipValidation + + Skip validation for access token. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Subscription + + Subscription Name or ID. + + System.String + + System.String + + + None + + + Tenant + + Optional tenant name or ID. + > [!NOTE] > Due to limitations of the current API, you must use a tenant ID instead of a tenant name when > connecting with a business-to-business (B2B) account. + + System.String + + System.String + + + None + + + UseDeviceAuthentication + + Use device code authentication instead of a browser control. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + System.String + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile + + + + + + + + + + + + + + ------------ Example 1: Connect to an Azure account ------------ + Connect-AzAccount + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +azureuser@contoso.com Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud + + + + + + + + Example 2: Connect to Azure using organizational ID credentials + $Credential = Get-Credential +Connect-AzAccount -Credential $Credential + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +azureuser@contoso.com Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud + + + + + + + + Example 3: Connect to Azure using a service principal account + $SecurePassword = ConvertTo-SecureString -String "Password123!" -AsPlainText -Force +$TenantId = 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy' +$ApplicationId = 'zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzz' +$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $ApplicationId, $SecurePassword +Connect-AzAccount -ServicePrincipal -TenantId $TenantId -Credential $Credential + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +xxxx-xxxx-xxxx-xxxx Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud + + + + + + + + Example 4: Use an interactive login to connect to a specific tenant and subscription + Connect-AzAccount -Tenant 'xxxx-xxxx-xxxx-xxxx' -SubscriptionId 'yyyy-yyyy-yyyy-yyyy' + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +azureuser@contoso.com Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud + + + + + + + + ----- Example 5: Connect using a Managed Service Identity ----- + Connect-AzAccount -Identity +Set-AzContext -Subscription Subscription1 + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +MSI@50342 Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud + + + + + + + + Example 6: Connect using Managed Service Identity login and ClientId + $identity = Get-AzUserAssignedIdentity -ResourceGroupName 'myResourceGroup' -Name 'myUserAssignedIdentity' +Get-AzVM -ResourceGroupName contoso -Name testvm | Update-AzVM -IdentityType UserAssigned -IdentityId $identity.Id +Connect-AzAccount -Identity -AccountId $identity.ClientId # Run on the virtual machine + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +yyyy-yyyy-yyyy-yyyy Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud + + + + + + + + ------------ Example 7: Connect using certificates ------------ + $Thumbprint = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' +$TenantId = 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy' +$ApplicationId = '00000000-0000-0000-0000-00000000' +Connect-AzAccount -CertificateThumbprint $Thumbprint -ApplicationId $ApplicationId -Tenant $TenantId -ServicePrincipal + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +xxxxxxxx-xxxx-xxxx-xxxxxxxxx Subscription1 yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy AzureCloud + +Account : xxxxxxxx-xxxx-xxxx-xxxxxxxx +SubscriptionName : MyTestSubscription +SubscriptionId : zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzz +TenantId : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy +Environment : AzureCloud + + + + + + + + -------------- Example 8: Connect with AuthScope -------------- + Connect-AzAccount -AuthScope Storage + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +yyyy-yyyy-yyyy-yyyy Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud + + + + + + + + ---------- Example 9: Connect using certificate file ---------- + $SecurePassword = ConvertTo-SecureString -String "Password123!" -AsPlainText -Force +$TenantId = 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy' +$ApplicationId = 'zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzz' +Connect-AzAccount -ServicePrincipal -ApplicationId $ApplicationId -TenantId $TenantId -CertificatePath './certificatefortest.pfx' -CertificatePassword $securePassword + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +xxxxxxxx-xxxx-xxxx-xxxxxxxx Subscription1 yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy AzureCloud + + + + + + + + --------- Example 10: Connect interactively using WAM --------- + Update-AzConfig -EnableLoginByWam $true +Connect-AzAccount + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +xxxxxxxx-xxxx-xxxx-xxxxxxxx Subscription1 yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyy AzureCloud + + + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/connect-azaccount + + + + + + Disable-AzContextAutosave + Disable + AzContextAutosave + + Turn off autosaving Azure credentials. Your login information will be forgotten the next time you open a PowerShell window + + + + Turn off autosaving Azure credentials. Your login information will be forgotten the next time you open a PowerShell window + + + + Disable-AzContextAutosave + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + Microsoft.Azure.Commands.Common.Authentication.ContextAutosaveSettings + + + + + + + + + + + + + + ---------- Example 1: Disable autosaving the context ---------- + Disable-AzContextAutosave + + Disable autosave for the current user. + + + + + + -------------------------- Example 2 -------------------------- + Disable-AzContextAutosave -Scope Process + + + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/disable-azcontextautosave + + + + + + Disable-AzDataCollection + Disable + AzDataCollection + + Opts out of collecting data to improve the Azure PowerShell cmdlets. Data is collected by default unless you explicitly opt out. + + + + The `Disable-AzDataCollection` cmdlet is used to opt out of data collection. Azure PowerShell automatically collects telemetry data by default. To disable data collection, you must explicitly opt-out. Microsoft aggregates collected data to identify patterns of usage, to identify common issues, and to improve the experience of Azure PowerShell. Microsoft Azure PowerShell doesn't collect any private or personal data. If you've previously opted out, run the `Enable-AzDataCollection` cmdlet to re-enable data collection for the current user on the current machine. + + + + Disable-AzDataCollection + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + System.Void + + + + + + + + + + + + + + -- Example 1: Disabling data collection for the current user -- + Disable-AzDataCollection + + + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/disable-azdatacollection + + + Enable-AzDataCollection + + + + + + + Disable-AzureRmAlias + Disable + AzureRmAlias + + Disables AzureRm prefix aliases for Az modules. + + + + Disables AzureRm prefix aliases for Az modules. If -Module is specified, only modules listed will have aliases disabled. Otherwise all AzureRm aliases are disabled. + + + + Disable-AzureRmAlias + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Module + + Indicates which modules to disable aliases for. If none are specified, default is all enabled modules. + + System.String[] + + System.String[] + + + None + + + PassThru + + If specified, cmdlet will return all disabled aliases + + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Indicates what scope aliases should be disabled for. Default is 'Process' + + + Process + CurrentUser + LocalMachine + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Module + + Indicates which modules to disable aliases for. If none are specified, default is all enabled modules. + + System.String[] + + System.String[] + + + None + + + PassThru + + If specified, cmdlet will return all disabled aliases + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Indicates what scope aliases should be disabled for. Default is 'Process' + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + System.String + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Disable-AzureRmAlias + + Disables all AzureRm prefixes for the current PowerShell session. + + + + + + -------------------------- Example 2 -------------------------- + Disable-AzureRmAlias -Module Az.Accounts -Scope CurrentUser + + Disables AzureRm aliases for the Az.Accounts module for both the current process and for the current user. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/disable-azurermalias + + + + + + Disconnect-AzAccount + Disconnect + AzAccount + + Disconnects a connected Azure account and removes all credentials and contexts associated with that account. + + + + The Disconnect-AzAccount cmdlet disconnects a connected Azure account and removes all credentials and contexts (subscription and tenant information) associated with that account. After executing this cmdlet, you will need to login again using Connect-AzAccount. + + + + Disconnect-AzAccount + + ApplicationId + + ServicePrincipal id (globally unique id) + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + TenantId + + Tenant id (globally unique id) + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not executed. + + + System.Management.Automation.SwitchParameter + + + False + + + + Disconnect-AzAccount + + AzureContext + + Context + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not executed. + + + System.Management.Automation.SwitchParameter + + + False + + + + Disconnect-AzAccount + + ContextName + + Name of the context to log out of + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not executed. + + + System.Management.Automation.SwitchParameter + + + False + + + + Disconnect-AzAccount + + InputObject + + The account object to remove + + Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount + + Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not executed. + + + System.Management.Automation.SwitchParameter + + + False + + + + Disconnect-AzAccount + + Username + + User name of the form 'user@contoso.org' + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not executed. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + ApplicationId + + ServicePrincipal id (globally unique id) + + System.String + + System.String + + + None + + + AzureContext + + Context + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + None + + + ContextName + + Name of the context to log out of + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + InputObject + + The account object to remove + + Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount + + Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + TenantId + + Tenant id (globally unique id) + + System.String + + System.String + + + None + + + Username + + User name of the form 'user@contoso.org' + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not executed. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount + + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureRmAccount + + + + + + + + + + + + + + ----------- Example 1: Logout of the current account ----------- + Disconnect-AzAccount + + Logs out of the Azure account associated with the current context. + + + + + + Example 2: Logout of the account associated with a particular context + Get-AzContext "Work" | Disconnect-AzAccount -Scope CurrentUser + + Logs out the account associated with the given context (named 'Work'). Because this uses the 'CurrentUser' scope, all credentials and contexts will be permanently deleted. + + + + + + ------------- Example 3: Log out a particular user ------------- + Disconnect-AzAccount -Username 'user1@contoso.org' + + Logs out the 'user1@contoso.org' user - all credentials and all contexts associated with this user will be removed. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/disconnect-azaccount + + + + + + Enable-AzContextAutosave + Enable + AzContextAutosave + + Azure contexts are PowerShell objects representing your active subscription to run commands against, and the authentication information needed to connect to an Azure cloud. With Azure contexts, Azure PowerShell doesn't need to reauthenticate your account each time you switch subscriptions. For more information, see Azure PowerShell context objects (https://learn.microsoft.com/powershell/azure/context-persistence). + This cmdlet allows the Azure context information to be saved and automatically loaded when you start a PowerShell process. For example, when opening a new window. + + + + Allows the Azure context information to be saved and automatically loaded when a PowerShell process starts. The context is saved at the end of the execution of any cmdlet that affects the context. For example, any profile cmdlet. If you're using user authentication, then tokens can be updated during the course of running any cmdlet. + + + + Enable-AzContextAutosave + + DefaultProfile + + The credentials, tenant, and subscription used for communication with Azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes. For example, whether changes apply only to the current process, or to all sessions started by this user. Changes made with the scope `CurrentUser` will affect all PowerShell sessions started by the user. If a particular session needs to have different settings, use the scope `Process`. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + CurrentUser + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet isn't run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with Azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes. For example, whether changes apply only to the current process, or to all sessions started by this user. Changes made with the scope `CurrentUser` will affect all PowerShell sessions started by the user. If a particular session needs to have different settings, use the scope `Process`. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + CurrentUser + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet isn't run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + Microsoft.Azure.Commands.Common.Authentication.ContextAutosaveSettings + + + + + + + + + + + + + + Example 1: Enable autosaving credentials for the current user + Enable-AzContextAutosave + + + + + + + + -------------------------- Example 2 -------------------------- + Enable-AzContextAutosave -Scope Process + + + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/enable-azcontextautosave + + + + + + Enable-AzDataCollection + Enable + AzDataCollection + + Enables Azure PowerShell to collect data to improve the user experience with the Azure PowerShell cmdlets. Executing this cmdlet opts in to data collection for the current user on the current machine. Data is collected by default unless you explicitly opt out. + + + + The `Enable-AzDataCollection` cmdlet is used to opt in to data collection. Azure PowerShell automatically collects telemetry data by default. Microsoft aggregates collected data to identify patterns of usage, to identify common issues, and to improve the experience of Azure PowerShell. Microsoft Azure PowerShell doesn't collect any private or personal data. To disable data collection, you must explicitly opt out by executing `Disable-AzDataCollection`. + + + + Enable-AzDataCollection + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + System.Void + + + + + + + + + + + + + + --- Example 1: Enabling data collection for the current user --- + Enable-AzDataCollection + + + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/enable-azdatacollection + + + Disable-AzDataCollection + + + + + + + Enable-AzureRmAlias + Enable + AzureRmAlias + + Enables AzureRm prefix aliases for Az modules. + + + + Enables AzureRm prefix aliases for Az modules. If -Module is specified, only modules listed will have aliases enabled. Otherwise all AzureRm aliases are enabled. + + + + Enable-AzureRmAlias + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Module + + Indicates which modules to enable aliases for. If none are specified, default is all modules. + + System.String[] + + System.String[] + + + None + + + PassThru + + If specified, cmdlet will return all aliases enabled + + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Indicates what scope aliases should be enabled for. Default is 'Local' + + + Local + Process + CurrentUser + LocalMachine + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Module + + Indicates which modules to enable aliases for. If none are specified, default is all modules. + + System.String[] + + System.String[] + + + None + + + PassThru + + If specified, cmdlet will return all aliases enabled + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Indicates what scope aliases should be enabled for. Default is 'Local' + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + System.String + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Enable-AzureRmAlias + + Enables all AzureRm prefixes for the current PowerShell session. + + + + + + -------------------------- Example 2 -------------------------- + Enable-AzureRmAlias -Module Az.Accounts -Scope CurrentUser + + Enables AzureRm aliases for the Az.Accounts module for both the current process and for the current user. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/enable-azurermalias + + + + + + Export-AzConfig + Export + AzConfig + + Exports all the configs into a file so that it can be imported on another machine. + + + + The `Export-AzConfig` cmdlet exports all the configs that are set at the "CurrentUser" scope into a file at given path in JSON format. The file can then be imported by `Import-AzConfig` for example on another machine. + + + + Export-AzConfig + + Path + + Specifies the path of the file to which to save the configs. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Overwrites the given file if it exists. + + + System.Management.Automation.SwitchParameter + + + False + + + PassThru + + Returns a boolean value indicating success or failure. + + + System.Management.Automation.SwitchParameter + + + False + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Overwrites the given file if it exists. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + PassThru + + Returns a boolean value indicating success or failure. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Path + + Specifies the path of the file to which to save the configs. + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + System.Boolean + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Export-AzConfig -Path ./config.json + + This example exports the configs to `./config.json` file which can later be imported via `Import-AzConfig`. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/export-azconfig + + + Import-AzConfig + + + + + + + Get-AzAccessToken + Get + AzAccessToken + + Get raw access token. When using -ResourceUrl, please make sure the value does match current Azure environment. You may refer to the value of `(Get-AzContext).Environment`. + + + + Get access token + + + + Get-AzAccessToken + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + IAzureContextContainer + + IAzureContextContainer + + + None + + + ResourceTypeName + + Optional resource type name, supported values: AadGraph, AnalysisServices, AppConfiguration, Arm, Attestation, Batch, DataLake, KeyVault, MSGraph, OperationalInsights, ResourceManager, Storage, Synapse. Default value is Arm if not specified. + + String + + String + + + None + + + TenantId + + Optional Tenant Id. Use tenant id of default context if not specified. + + String + + String + + + None + + + + Get-AzAccessToken + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + IAzureContextContainer + + IAzureContextContainer + + + None + + + ResourceUrl + + Resource url for that you're requesting token, e.g. 'https://graph.microsoft.com/'. + + String + + String + + + None + + + TenantId + + Optional Tenant Id. Use tenant id of default context if not specified. + + String + + String + + + None + + + + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + IAzureContextContainer + + IAzureContextContainer + + + None + + + ResourceTypeName + + Optional resource type name, supported values: AadGraph, AnalysisServices, AppConfiguration, Arm, Attestation, Batch, DataLake, KeyVault, MSGraph, OperationalInsights, ResourceManager, Storage, Synapse. Default value is Arm if not specified. + + String + + String + + + None + + + ResourceUrl + + Resource url for that you're requesting token, e.g. 'https://graph.microsoft.com/'. + + String + + String + + + None + + + TenantId + + Optional Tenant Id. Use tenant id of default context if not specified. + + String + + String + + + None + + + + + + None + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAccessToken + + + + + + + + + + + + + + ------- Example 1 Get the access token for ARM endpoint ------- + Get-AzAccessToken + + Get access token of current account for ResourceManager endpoint + + + + + + - Example 2 Get the access token for Microsoft Graph endpoint - + Get-AzAccessToken -ResourceTypeName MSGraph + + Get access token of Microsoft Graph endpoint for current account + + + + + + - Example 3 Get the access token for Microsoft Graph endpoint - + Get-AzAccessToken -ResourceUrl "https://graph.microsoft.com/" + + Get access token of Microsoft Graph endpoint for current account + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/get-azaccesstoken + + + + + + Get-AzConfig + Get + AzConfig + + Gets the configs of Azure PowerShell. + + + + Gets the configs of Azure PowerShell. By default it lists all the configs. You can filter the result using various parameters. + > [!NOTE] > Configs have priorities. Generally speaking, Process scope has higher priority than CurrentUser scope; a config that applies to a certain cmdlet has higher priority than that applies to a module, again higher than Az. > To reduce confusion, the result of `Get-AzConfig` shows those configs that are taking effect. It is a combination of all the configs, but not literally all the configs. However, you could always view them by applying different filter parameters, such as `-Scope`. + + + + Get-AzConfig + + AppliesTo + + Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. + - Module name: the config applies to a certain module of Azure PowerShell. + For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". + + System.String + + System.String + + + None + + + CheckForUpgrade + + When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value will be changed from false to true in Az version 11.0.0. + + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + DefaultSubscriptionForLogin + + Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. + + + System.Management.Automation.SwitchParameter + + + False + + + DisableErrorRecordsPersistence + + When disabled, error records will not be written to ~/.Azure/ErrorRecords. This config will be replaced by "EnableErrorRecordsPersistence" as opt-in in the next major release of Az around November 2023. + + + System.Management.Automation.SwitchParameter + + + False + + + DisplayBreakingChangeWarning + + Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. + + + System.Management.Automation.SwitchParameter + + + False + + + DisplayRegionIdentified + + When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. + + + System.Management.Automation.SwitchParameter + + + False + + + DisplaySurveyMessage + + When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. + + + System.Management.Automation.SwitchParameter + + + False + + + EnableDataCollection + + When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy + + + System.Management.Automation.SwitchParameter + + + False + + + EnableLoginByWam + + [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue + + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. + + + CurrentUser + Process + Default + Environment + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + + None + + + + + + AppliesTo + + Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. + - Module name: the config applies to a certain module of Azure PowerShell. + For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". + + System.String + + System.String + + + None + + + CheckForUpgrade + + When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value will be changed from false to true in Az version 11.0.0. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + DefaultSubscriptionForLogin + + Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DisableErrorRecordsPersistence + + When disabled, error records will not be written to ~/.Azure/ErrorRecords. This config will be replaced by "EnableErrorRecordsPersistence" as opt-in in the next major release of Az around November 2023. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DisplayBreakingChangeWarning + + Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DisplayRegionIdentified + + When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DisplaySurveyMessage + + When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + EnableDataCollection + + When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + EnableLoginByWam + + [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + + None + + + + + + None + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSConfig + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Get-AzConfig + +Key Value Applies To Scope Help Message +--- ----- ---------- ----- ------------ +EnableDataCollection False Az CurrentUser When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the custom… +DefaultSubscriptionForLogin Az Default Subscription name or GUID. Sets the default context for Azure PowerShell when logging in with… +DisplayBreakingChangeWarning True Az Default Controls if warning messages for breaking changes are displayed or suppressed. When enabled, … + + Gets all the configs. + + + + + + -------------------------- Example 2 -------------------------- + Get-AzConfig -EnableDataCollection + +Key Value Applies To Scope Help Message +--- ----- ---------- ----- ------------ +EnableDataCollection False Az CurrentUser When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the custom… + + Gets the "EnableDataCollection" config. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/get-azconfig + + + + + + Get-AzContext + Get + AzContext + + Gets the metadata used to authenticate Azure Resource Manager requests. + + + + The Get-AzContext cmdlet gets the current metadata used to authenticate Azure Resource Manager requests. This cmdlet gets the Active Directory account, Active Directory tenant, Azure subscription, and the targeted Azure environment. Azure Resource Manager cmdlets use these settings by default when making Azure Resource Manager requests. When the available amount of subscription exceeds the default limit of 25, some subscriptions may not show up in the results of `Get-AzContext -ListAvailable`. Please run `Connect-AzAccount -MaxContextPopulation <int>` to get more contexts. + + + + Get-AzContext + + DefaultProfile + + The credentials, account, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + ListAvailable + + List all available contexts in the current session. + + + System.Management.Automation.SwitchParameter + + + False + + + RefreshContextFromTokenCache + + Refresh contexts from token cache + + + System.Management.Automation.SwitchParameter + + + False + + + + Get-AzContext + + Name + + The name of the context + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + + + + DefaultProfile + + The credentials, account, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + ListAvailable + + List all available contexts in the current session. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Name + + The name of the context + + System.String + + System.String + + + None + + + RefreshContextFromTokenCache + + Refresh contexts from token cache + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + + + + + + + + + + + + ------------ Example 1: Getting the current context ------------ + Connect-AzAccount +Get-AzContext + +Name Account SubscriptionName Environment TenantId +---- ------- ---------------- ----------- -------- +Subscription1 (xxxxxxxx-xxxx-xxxx-xxx... test@outlook.com Subscription1 AzureCloud xxxxxxxx-x... + + In this example we are logging into our account with an Azure subscription using Connect-AzAccount, and then we are getting the context of the current session by calling Get-AzContext. + + + + + + ---------- Example 2: Listing all available contexts ---------- + Get-AzContext -ListAvailable + +Name Account SubscriptionName Environment TenantId +---- ------- ---------------- ----------- -------- +Subscription1 (xxxxxxxx-xxxx-xxxx-xxx... test@outlook.com Subscription1 AzureCloud xxxxxxxx-x... +Subscription2 (xxxxxxxx-xxxx-xxxx-xxx... test@outlook.com Subscription2 AzureCloud xxxxxxxx-x... +Subscription3 (xxxxxxxx-xxxx-xxxx-xxx... test@outlook.com Subscription3 AzureCloud xxxxxxxx-x... + + In this example, all currently available contexts are displayed. The user may select one of these contexts using Select-AzContext. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/get-azcontext + + + Set-AzContext + + + + Connect-AzAccount + + + + + + + Get-AzContextAutosaveSetting + Get + AzContextAutosaveSetting + + Display metadata about the context autosave feature, including whether the context is automatically saved, and where saved context and credential information can be found. + + + + Display metadata about the context autosave feature, including whether the context is automatically saved, and where saved context and credential information can be found. + + + + Get-AzContextAutosaveSetting + + DefaultProfile + + The credentials, account, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + + + + DefaultProfile + + The credentials, account, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + + + + None + + + + + + + + + + Microsoft.Azure.Commands.Common.Authentication.ContextAutosaveSettings + + + + + + + + + + + + + + ------ Get context save metadata for the current session ------ + Get-AzContextAutosaveSetting + +Mode : Process +ContextDirectory : None +ContextFile : None +CacheDirectory : None +CacheFile : None +Settings : {} + + Get details about whether and where the context is saved. In the above example, the autosave feature has been disabled. + + + + + + -------- Get context save metadata for the current user -------- + Get-AzContextAutosaveSetting -Scope CurrentUser + +Mode : CurrentUser +ContextDirectory : C:\Users\contoso\AppData\Roaming\Windows Azure Powershell +ContextFile : AzureRmContext.json +CacheDirectory : C:\Users\contoso\AppData\Roaming\Windows Azure Powershell +CacheFile : TokenCache.dat +Settings : {} + + Get details about whether and where the context is saved by default for the current user. Note that this may be different than the settings that are active in the current session. In the above example, the autosave feature has been enabled, and data is saved to the default location. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/get-azcontextautosavesetting + + + + + + Get-AzDefault + Get + AzDefault + + Get the defaults set by the user in the current context. + + + + The Get-AzDefault cmdlet gets the Resource Group that the user has set as default in the current context. + + + + Get-AzDefault + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + ResourceGroup + + Display Default Resource Group + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + ResourceGroup + + Display Default Resource Group + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + System.Management.Automation.SwitchParameter + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSResourceGroup + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Get-AzDefault + +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup +Name : myResourceGroup +Properties : Microsoft.Azure.Management.Internal.Resources.Models.ResourceGroupProperties +Location : eastus +ManagedBy : +Tags : + + This command returns the current defaults if there are defaults set, or returns nothing if no default is set. + + + + + + -------------------------- Example 2 -------------------------- + Get-AzDefault -ResourceGroup + +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup +Name : myResourceGroup +Properties : Microsoft.Azure.Management.Internal.Resources.Models.ResourceGroupProperties +Location : eastus +ManagedBy : +Tags : + + This command returns the current default Resource Group if there is a default set, or returns nothing if no default is set. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/get-azdefault + + + + + + Get-AzEnvironment + Get + AzEnvironment + + Get endpoints and metadata for an instance of Azure services. `GalleryUrl` will be removed from ArmMetadata and so Azure PowerShell will no longer provide for its value in `PSAzureEnvironment`. Currently `GalleryUrl` is not used in Azure PowerShell products. Please do not reply on `GalleryUrl` anymore. + + + + The Get-AzEnvironment cmdlet gets endpoints and metadata for an instance of Azure services. + + + + Get-AzEnvironment + + Name + + Specifies the name of the Azure instance to get. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + + + + DefaultProfile + + The credentials, account, tenant and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Name + + Specifies the name of the Azure instance to get. + + System.String + + System.String + + + None + + + + + + System.String + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment + + + + + + + + + + + + + + ---------- Example 1: Getting all Azure environments ---------- + Get-AzEnvironment + +Name Resource Manager Url ActiveDirectory Authority Type +---- -------------------- ------------------------- ---- +AzureUSGovernment https://management.usgovcloudapi.net/ https://login.microsoftonline.us/ Built-in +AzureCloud https://management.azure.com/ https://login.microsoftonline.com/ Built-in +AzureChinaCloud https://management.chinacloudapi.cn/ https://login.chinacloudapi.cn/ Built-in + + This example shows how to get the endpoints and metadata for the AzureCloud (default) environment. + + + + + + -------- Example 2: Getting the AzureCloud environment -------- + Get-AzEnvironment -Name AzureCloud + +Name Resource Manager Url ActiveDirectory Authority Type +---- -------------------- ------------------------- ---- +AzureCloud https://management.azure.com/ https://login.microsoftonline.com/ Built-in + + This example shows how to get the endpoints and metadata for the AzureCloud (default) environment. + + + + + + ------ Example 3: Getting the AzureChinaCloud environment ------ + Get-AzEnvironment -Name AzureChinaCloud | Format-List + +Name : AzureChinaCloud +Type : Built-in +EnableAdfsAuthentication : False +OnPremise : False +ActiveDirectoryServiceEndpointResourceId : https://management.core.chinacloudapi.cn/ +AdTenant : Common +GalleryUrl : https://gallery.azure.com/ +ManagementPortalUrl : https://go.microsoft.com/fwlink/?LinkId=301902 +ServiceManagementUrl : https://management.core.chinacloudapi.cn/ +PublishSettingsFileUrl : https://go.microsoft.com/fwlink/?LinkID=301776 +ResourceManagerUrl : https://management.chinacloudapi.cn/ +SqlDatabaseDnsSuffix : .database.chinacloudapi.cn +StorageEndpointSuffix : core.chinacloudapi.cn +ActiveDirectoryAuthority : https://login.chinacloudapi.cn/ +GraphUrl : https://graph.chinacloudapi.cn/ +GraphEndpointResourceId : https://graph.chinacloudapi.cn/ +TrafficManagerDnsSuffix : trafficmanager.cn +AzureKeyVaultDnsSuffix : vault.azure.cn +DataLakeEndpointResourceId : +AzureDataLakeStoreFileSystemEndpointSuffix : +AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix : +AzureKeyVaultServiceEndpointResourceId : https://vault.azure.cn +ContainerRegistryEndpointSuffix : azurecr.cn +AzureOperationalInsightsEndpointResourceId : +AzureOperationalInsightsEndpoint : +AzureAnalysisServicesEndpointSuffix : asazure.chinacloudapi.cn +AnalysisServicesEndpointResourceId : https://region.asazure.chinacloudapi.cn +AzureAttestationServiceEndpointSuffix : +AzureAttestationServiceEndpointResourceId : +AzureSynapseAnalyticsEndpointSuffix : dev.azuresynapse.azure.cn +AzureSynapseAnalyticsEndpointResourceId : https://dev.azuresynapse.azure.cn + + This example shows how to get the endpoints and metadata for the AzureChinaCloud environment. + + + + + + ----- Example 4: Getting the AzureUSGovernment environment ----- + Get-AzEnvironment -Name AzureUSGovernment + +Name Resource Manager Url ActiveDirectory Authority Type +---- -------------------- ------------------------- ---- +AzureUSGovernment https://management.usgovcloudapi.net/ https://login.microsoftonline.us/ Built-in + + This example shows how to get the endpoints and metadata for the AzureUSGovernment environment. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/get-azenvironment + + + Add-AzEnvironment + + + + Remove-AzEnvironment + + + + Set-AzEnvironment + + + + + + + Get-AzSubscription + Get + AzSubscription + + Get subscriptions that the current account can access. + + + + The Get-AzSubscription cmdlet gets the subscription ID, subscription name, and home tenant for subscriptions that the current account can access. + + + + Get-AzSubscription + + AsJob + + Run cmdlet in the background and return a Job to track progress. + + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + SubscriptionId + + Specifies the ID of the subscription to get. + + System.String + + System.String + + + None + + + TenantId + + Specifies the ID of the tenant that contains subscriptions to get. + + System.String + + System.String + + + None + + + + Get-AzSubscription + + AsJob + + Run cmdlet in the background and return a Job to track progress. + + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + SubscriptionName + + Specifies the name of the subscription to get. + + System.String + + System.String + + + None + + + TenantId + + Specifies the ID of the tenant that contains subscriptions to get. + + System.String + + System.String + + + None + + + + + + AsJob + + Run cmdlet in the background and return a Job to track progress. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + SubscriptionId + + Specifies the ID of the subscription to get. + + System.String + + System.String + + + None + + + SubscriptionName + + Specifies the name of the subscription to get. + + System.String + + System.String + + + None + + + TenantId + + Specifies the ID of the tenant that contains subscriptions to get. + + System.String + + System.String + + + None + + + + + + System.String + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription + + + + + + + + + + + + + + ------- Example 1: Get all subscriptions in all tenants ------- + Get-AzSubscription + +Name Id TenantId State +---- -- -------- ----- +Subscription1 yyyy-yyyy-yyyy-yyyy aaaa-aaaa-aaaa-aaaa Enabled +Subscription2 xxxx-xxxx-xxxx-xxxx aaaa-aaaa-aaaa-aaaa Enabled +Subscription3 zzzz-zzzz-zzzz-zzzz bbbb-bbbb-bbbb-bbbb Enabled + + This command gets all subscriptions in all tenants that are authorized for the current account. + + + + + + ---- Example 2: Get all subscriptions for a specific tenant ---- + Get-AzSubscription -TenantId "aaaa-aaaa-aaaa-aaaa" + +Name Id TenantId State +---- -- -------- ----- +Subscription1 yyyy-yyyy-yyyy-yyyy aaaa-aaaa-aaaa-aaaa Enabled +Subscription2 xxxx-xxxx-xxxx-xxxx aaaa-aaaa-aaaa-aaaa Enabled + + List all subscriptions in the given tenant that are authorized for the current account. + + + + + + ---- Example 3: Get all subscriptions in the current tenant ---- + Get-AzSubscription -TenantId (Get-AzContext).Tenant + +Name Id TenantId State +---- -- -------- ----- +Subscription1 yyyy-yyyy-yyyy-yyyy aaaa-aaaa-aaaa-aaaa Enabled +Subscription2 xxxx-xxxx-xxxx-xxxx aaaa-aaaa-aaaa-aaaa Enabled + + This command gets all subscriptions in the current tenant that are authorized for the current user. + + + + + + Example 4: Change the current context to use a specific subscription + Get-AzSubscription -SubscriptionId "xxxx-xxxx-xxxx-xxxx" -TenantId "yyyy-yyyy-yyyy-yyyy" | Set-AzContext + +Name Account SubscriptionName Environment TenantId +---- ------- ---------------- ----------- -------- +Subscription1 (xxxx-xxxx-xxxx-xxxx) azureuser@micros... Subscription1 AzureCloud yyyy-yyyy-yyyy-yyyy + + This command gets the specified subscription, and then sets the current context to use it. All subsequent cmdlets in this session use the new subscription (Contoso Subscription 1) by default. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/get-azsubscription + + + + + + Get-AzTenant + Get + AzTenant + + Gets tenants that are authorized for the current user. + + + + The Get-AzTenant cmdlet gets tenants authorized for the current user. + + + + Get-AzTenant + + TenantId + + Specifies the ID of the tenant that this cmdlet gets. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + TenantId + + Specifies the ID of the tenant that this cmdlet gets. + + System.String + + System.String + + + None + + + + + + System.String + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureTenant + + + + + + + + + + + + + + ---------------- Example 1: Getting all tenants ---------------- + Connect-AzAccount +Get-AzTenant + +Id Name Category Domains +-- ----------- -------- ------- +xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft Home {test0.com, test1.com, test2.microsoft.com, test3.microsoft.com...} +yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy Testhost Home testhost.onmicrosoft.com + + This example shows how to get all of the authorized tenants of an Azure account. + + + + + + ------------- Example 2: Getting a specific tenant ------------- + Connect-AzAccount +Get-AzTenant -TenantId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx + +Id Name Category Domains +-- ----------- -------- ------- +xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft Home {test0.com, test1.com, test2.microsoft.com, test3.microsoft.com...} + + This example shows how to get a specific authorized tenant of an Azure account. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/get-aztenant + + + + + + Import-AzConfig + Import + AzConfig + + Imports configs from a file that was previously exported by `Export-AzConfig`. + + + + The `Import-AzConfig` cmdlet imports all the configs from a file that was previously exported by `Export-AzConfig`. The imported configs will be set at the "CurrentUser" scope, so they are consistent across PowerShell sessions. + During importing, if a config that is to be imported has already been set, its value will be overwritten. + + + + Import-AzConfig + + Path + + Specifies the path to configuration saved by using Export-AzConfig. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + PassThru + + Returns a boolean value indicating success or failure. + + + System.Management.Automation.SwitchParameter + + + False + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + PassThru + + Returns a boolean value indicating success or failure. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Path + + Specifies the path to configuration saved by using Export-AzConfig. + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + System.Boolean + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Import-AzConfig -Path ./config.json + + This example imports configs from file `./config.json`. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/import-azconfig + + + Export-AzConfig + + + + + + + Import-AzContext + Import + AzContext + + Loads Azure authentication information from a file. + + + + The Import-AzContext cmdlet loads authentication information from a file to set the Azure environment and context. Cmdlets that you run in the current session use this information to authenticate requests to Azure Resource Manager. + + + + Import-AzContext + + AzureContext + + {{Fill AzureContext Description}} + + Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile + + Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile + + + None + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Import-AzContext + + Path + + Specifies the path to context information saved by using Save-AzContext. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + AzureContext + + {{Fill AzureContext Description}} + + Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile + + Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile + + + None + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Path + + Specifies the path to context information saved by using Save-AzContext. + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile + + + + + + + + System.String + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile + + + + + + + + + + + + + + ----- Example 1: Importing a context from a AzureRmProfile ----- + Import-AzContext -AzContext (Connect-AzAccount) + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +azureuser@contoso.com Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud + + This example imports a context from a PSAzureProfile that is passed through to the cmdlet. + + + + + + ------- Example 2: Importing a context from a JSON file ------- + Import-AzContext -Path C:\test.json + +Account SubscriptionName TenantId Environment +------- ---------------- -------- ----------- +azureuser@contoso.com Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud + + This example selects a context from a JSON file that is passed through to the cmdlet. This JSON file can be created from Save-AzContext. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/import-azcontext + + + + + + Invoke-AzRestMethod + Invoke + AzRestMethod + + Construct and perform HTTP request to Azure resource management endpoint only + + + + Construct and perform HTTP request to Azure resource management endpoint only + + + + Invoke-AzRestMethod + + ApiVersion + + Api Version + + System.String + + System.String + + + None + + + AsJob + + Run cmdlet in the background + + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Method + + Http Method + + + GET + POST + PUT + PATCH + DELETE + + System.String + + System.String + + + None + + + Name + + list of Target Resource Name + + System.String[] + + System.String[] + + + None + + + Payload + + JSON format payload + + System.String + + System.String + + + None + + + ResourceGroupName + + Target Resource Group Name + + System.String + + System.String + + + None + + + ResourceProviderName + + Target Resource Provider Name + + System.String + + System.String + + + None + + + ResourceType + + List of Target Resource Type + + System.String[] + + System.String[] + + + None + + + SubscriptionId + + Target Subscription Id + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Invoke-AzRestMethod + + AsJob + + Run cmdlet in the background + + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Method + + Http Method + + + GET + POST + PUT + PATCH + DELETE + + System.String + + System.String + + + None + + + Path + + Path of target resource URL. Hostname of Resource Manager should not be added. + + System.String + + System.String + + + None + + + Payload + + JSON format payload + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Invoke-AzRestMethod + + Uri + + Uniform Resource Identifier of the Azure resources. The target resource needs to support Azure AD authentication and the access token is derived according to resource id. If resource id is not set, its value is derived according to built-in service suffixes in current Azure Environment. + + System.Uri + + System.Uri + + + None + + + AsJob + + Run cmdlet in the background + + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Method + + Http Method + + + GET + POST + PUT + PATCH + DELETE + + System.String + + System.String + + + None + + + Payload + + JSON format payload + + System.String + + System.String + + + None + + + ResourceId + + Identifier URI specified by the REST API you are calling. It shouldn't be the resource id of Azure Resource Manager. + + System.Uri + + System.Uri + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + ApiVersion + + Api Version + + System.String + + System.String + + + None + + + AsJob + + Run cmdlet in the background + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Method + + Http Method + + System.String + + System.String + + + None + + + Name + + list of Target Resource Name + + System.String[] + + System.String[] + + + None + + + Path + + Path of target resource URL. Hostname of Resource Manager should not be added. + + System.String + + System.String + + + None + + + Payload + + JSON format payload + + System.String + + System.String + + + None + + + ResourceGroupName + + Target Resource Group Name + + System.String + + System.String + + + None + + + ResourceId + + Identifier URI specified by the REST API you are calling. It shouldn't be the resource id of Azure Resource Manager. + + System.Uri + + System.Uri + + + None + + + ResourceProviderName + + Target Resource Provider Name + + System.String + + System.String + + + None + + + ResourceType + + List of Target Resource Type + + System.String[] + + System.String[] + + + None + + + SubscriptionId + + Target Subscription Id + + System.String + + System.String + + + None + + + Uri + + Uniform Resource Identifier of the Azure resources. The target resource needs to support Azure AD authentication and the access token is derived according to resource id. If resource id is not set, its value is derived according to built-in service suffixes in current Azure Environment. + + System.Uri + + System.Uri + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + System.string + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSHttpResponse + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Invoke-AzRestMethod -Path "/subscriptions/{subscription}/resourcegroups/{resourcegroup}/providers/microsoft.operationalinsights/workspaces/{workspace}?api-version={API}" -Method GET + +Headers : {[Cache-Control, System.String[]], [Pragma, System.String[]], [x-ms-request-id, System.String[]], [Strict-Transport-Security, System.String[]]…} +Version : 1.1 +StatusCode : 200 +Method : GET +Content : { + "properties": { + "source": "Azure", + "customerId": "{customerId}", + "provisioningState": "Succeeded", + "sku": { + "name": "pergb2018", + "maxCapacityReservationLevel": 3000, + "lastSkuUpdate": "Mon, 25 May 2020 11:10:01 GMT" + }, + "retentionInDays": 30, + "features": { + "legacy": 0, + "searchVersion": 1, + "enableLogAccessUsingOnlyResourcePermissions": true + }, + "workspaceCapping": { + "dailyQuotaGb": -1.0, + "quotaNextResetTime": "Thu, 18 Jun 2020 05:00:00 GMT", + "dataIngestionStatus": "RespectQuota" + }, + "enableFailover": false, + "publicNetworkAccessForIngestion": "Enabled", + "publicNetworkAccessForQuery": "Enabled", + "createdDate": "Mon, 25 May 2020 11:10:01 GMT", + "modifiedDate": "Mon, 25 May 2020 11:10:02 GMT" + }, + "id": "/subscriptions/{subscription}/resourcegroups/{resourcegroup}/providers/microsoft.operationalinsights/workspaces/{workspace}", + "name": "{workspace}", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "eastasia", + "tags": {} + } + + Get log analytics workspace by path. It only supports management plane API and Hostname of Azure Resource Manager is added according to Azure environment setting. + + + + + + + -------------------------- Example 2 -------------------------- + Invoke-AzRestMethod https://graph.microsoft.com/v1.0/me + +Headers : {[Date, System.String[]], [Cache-Control, System.String[]], [Transfer-Encoding, System.String[]], [Strict-Transport-Security, System.String[]]…} +Version : 1.1 +StatusCode : 200 +Method : GET +Content : {"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users/$entity","businessPhones":["......} + + Get current signed in user via MicrosoftGraph API. This example is equivalent to `Get-AzADUser -SignedIn`. + + + + + + -------------------------- Example 3 -------------------------- + $subscriptionId = (Get-AzContext).Subscription.ID +Invoke-AzRestMethod -SubscriptionId $subscriptionId -ResourceGroupName "test-group" -ResourceProviderName Microsoft.AppPlatform -ResourceType Spring,apps -Name "test-spring-service" -ApiVersion 2020-07-01 -Method GET + +Headers : {[Cache-Control, System.String[]], [Pragma, System.String[]], [Vary, System.String[]], [x-ms-request-id, + System.String[]]…} +Version : 1.1 +StatusCode : 200 +Method : GET +Content : {"value":[{"properties":{"public":true,"url":"https://test-spring-service-demo.azuremicroservices.io","provisioni + ngState":"Succeeded","activeDeploymentName":"default","fqdn":"test-spring-service.azuremicroservices.io","httpsOn + ly":false,"createdTime":"2022-06-22T02:57:13.272Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"pers + istentDisk":{"sizeInGB":0,"mountPath":"/persistent"}},"type":"Microsoft.AppPlatform/Spring/apps","identity + ":null,"location":"eastus","id":"/subscriptions/$subscriptionId/resourceGroups/test-group/providers/Microsoft.AppPlatform/Spring/test-spring-service/apps/demo","name":"demo"},{"properties":{"publ + ic":false,"provisioningState":"Succeeded","activeDeploymentName":"deploy01","fqdn":"test-spring-service.azuremicr + oservices.io","httpsOnly":false,"createdTime":"2022-06-22T07:46:54.9Z","temporaryDisk":{"sizeInGB":5,"moun + tPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"}},"type":"Microsoft.AppPlatform/Sp + ring/apps","identity":null,"location":"eastus","id":"/subscriptions/$subscriptionId/r + esourceGroups/test-group/providers/Microsoft.AppPlatform/Spring/test-spring-service/apps/pwsh01","name":"pwsh0 + 1"}]} + + List apps under spring service "test-spring-service" + + + + + + -------------------------- Example 4 -------------------------- + $subscriptionId = (Get-AzContext).Subscription.ID +Invoke-AzRestMethod -SubscriptionId $subscriptionId -ResourceGroupName "test-group" -ResourceProviderName Microsoft.AppPlatform -ResourceType Spring -Name "test-spring-service","demo" -ApiVersion 2020-07-01 -Method GET + +Headers : {[Cache-Control, System.String[]], [Pragma, System.String[]], [Vary, System.String[]], [x-ms-request-id, + System.String[]]…} +Version : 1.1 +StatusCode : 200 +Method : GET +Content : {"properties":{"public":true,"url":"https://test-spring-service-demo.azuremicroservices.io","provisioningState":" + Succeeded","activeDeploymentName":"default","fqdn":"test-spring-service.azuremicroservices.io","httpsOnly":false, + "createdTime":"2022-06-22T02:57:13.272Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk + ":{"sizeInGB":0,"mountPath":"/persistent"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"lo + cation":"eastus","id":"/subscriptions/$subscriptionId/resourceGroups/test-group/pr + oviders/Microsoft.AppPlatform/Spring/test-spring-service/apps/demo","name":"demo"} + + Get app "demo" under Spring cloud service "test-spring-service" + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/invoke-azrestmethod + + + + + + Open-AzSurveyLink + Open + AzSurveyLink + + Open survey link in default browser. + + + + Open survey link in default browser. + + + + Open-AzSurveyLink + + + + + + + None + + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Open-AzSurveyLink + +Opening the default browser to https://aka.ms/azpssurvey?Q_CHL=INTERCEPT + + + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/open-azsurveylink + + + + + + Register-AzModule + Register + AzModule + + FOR INTERNAL USE ONLY - Provide Runtime Support for AutoRest Generated cmdlets + + + + FOR INTERNAL USE ONLY - Provide Runtime Support for AutoRest Generated cmdlets + + + + Register-AzModule + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + System.Object + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Register-AzModule + + Used Internally by AutoRest-generated cmdlets + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/register-azmodule + + + + + + Remove-AzContext + Remove + AzContext + + Remove a context from the set of available contexts + + + + Remove an azure context from the set of contexts + + + + Remove-AzContext + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Remove context even if it is the default + + + System.Management.Automation.SwitchParameter + + + False + + + InputObject + + A context object, normally passed through the pipeline. + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + None + + + PassThru + + Return the removed context + + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Remove-AzContext + + Name + + The name of the context + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Remove context even if it is the default + + + System.Management.Automation.SwitchParameter + + + False + + + PassThru + + Return the removed context + + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Remove context even if it is the default + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + InputObject + + A context object, normally passed through the pipeline. + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + None + + + Name + + The name of the context + + System.String + + System.String + + + None + + + PassThru + + Return the removed context + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Remove-AzContext -Name Default + + Remove the context named default + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/remove-azcontext + + + + + + Remove-AzEnvironment + Remove + AzEnvironment + + Removes endpoints and metadata for connecting to a given Azure instance. + + + + The Remove-AzEnvironment cmdlet removes endpoints and metadata information for connecting to a given Azure instance. + + + + Remove-AzEnvironment + + Name + + Specifies the name of the environment to remove. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Name + + Specifies the name of the environment to remove. + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + System.String + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment + + + + + + + + + + + + + + ----- Example 1: Creating and removing a test environment ----- + Add-AzEnvironment -Name TestEnvironment ` + -ActiveDirectoryEndpoint TestADEndpoint ` + -ActiveDirectoryServiceEndpointResourceId TestADApplicationId ` + -ResourceManagerEndpoint TestRMEndpoint ` + -GalleryEndpoint TestGalleryEndpoint ` + -GraphEndpoint TestGraphEndpoint + +Name Resource Manager Url ActiveDirectory Authority +---- -------------------- ------------------------- +TestEnvironment TestRMEndpoint TestADEndpoint/ + +Remove-AzEnvironment -Name TestEnvironment + +Name Resource Manager Url ActiveDirectory Authority +---- -------------------- ------------------------- +TestEnvironment TestRMEndpoint TestADEndpoint/ + + This example shows how to create an environment using Add-AzEnvironment, and then how to delete the environment using Remove-AzEnvironment. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/remove-azenvironment + + + Add-AzEnvironment + + + + Get-AzEnvironment + + + + Set-AzEnvironment + + + + + + + Rename-AzContext + Rename + AzContext + + Rename an Azure context. By default contexts are named by user account and subscription. + + + + Rename an Azure context. By default contexts are named by user account and subscription. + + + + Rename-AzContext + + TargetName + + The new name of the context + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Rename the context even if the target context already exists + + + System.Management.Automation.SwitchParameter + + + False + + + InputObject + + A context object, normally passed through the pipeline. + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + None + + + PassThru + + Return the renamed context. + + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Rename-AzContext + + SourceName + + The name of the context + + System.String + + System.String + + + None + + + TargetName + + The new name of the context + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Rename the context even if the target context already exists + + + System.Management.Automation.SwitchParameter + + + False + + + PassThru + + Return the renamed context. + + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Rename the context even if the target context already exists + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + InputObject + + A context object, normally passed through the pipeline. + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + None + + + PassThru + + Return the renamed context. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + SourceName + + The name of the context + + System.String + + System.String + + + None + + + TargetName + + The new name of the context + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + + + + + + + + + + + + ------ Example 1: Rename a context using named parameters ------ + Rename-AzContext -SourceName "[user1@contoso.org; 12345-6789-2345-3567890]" -TargetName "Work" + + Rename the context for 'user1@contoso.org' with subscription '12345-6789-2345-3567890' to 'Work'. After this command, you will be able to target the context using 'Select-AzContext Work'. Note that you can tab through the values for 'SourceName' using tab completion. + + + + + + --- Example 2: Rename a context using positional parameters --- + Rename-AzContext "My context" "Work" + + Rename the context named "My context" to "Work". After this command, you will be able to target the context using Select-AzContext Work + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/rename-azcontext + + + + + + Resolve-AzError + Resolve + AzError + + Display detailed information about PowerShell errors, with extended details for Azure PowerShell errors. + + + + Resolves and displays detailed information about errors in the current PowerShell session, including where the error occurred in script, stack trace, and all inner and aggregate exceptions. For Azure PowerShell errors provides additional detail in debugging service issues, including complete detail about the request and server response that caused the error. + + + + Resolve-AzError + + Error + + One or more error records to resolve. If no parameters are specified, all errors in the session are resolved. + + System.Management.Automation.ErrorRecord[] + + System.Management.Automation.ErrorRecord[] + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + + Resolve-AzError + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Last + + Resolve only the last error that occurred in the session. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Error + + One or more error records to resolve. If no parameters are specified, all errors in the session are resolved. + + System.Management.Automation.ErrorRecord[] + + System.Management.Automation.ErrorRecord[] + + + None + + + Last + + Resolve only the last error that occurred in the session. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + System.Management.Automation.ErrorRecord[] + + + + + + + + + + Microsoft.Azure.Commands.Profile.Errors.AzureErrorRecord + + + + + + + + Microsoft.Azure.Commands.Profile.Errors.AzureExceptionRecord + + + + + + + + Microsoft.Azure.Commands.Profile.Errors.AzureRestExceptionRecord + + + + + + + + + + + + + + -------------- Example 1: Resolve the Last Error -------------- + Resolve-AzError -Last + +HistoryId: 3 + + +Message : Run Connect-AzAccount to login. +StackTrace : at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.get_DefaultContext() in AzureRmCmdlet.cs:line 85 + at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.LogCmdletStartInvocationInfo() in AzureRmCmdlet.cs:line 269 + at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.BeginProcessing() inAzurePSCmdlet.cs:line 299 + at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.BeginProcessing() in AzureRmCmdlet.cs:line 320 + at Microsoft.Azure.Commands.Profile.GetAzureRMSubscriptionCommand.BeginProcessing() in GetAzureRMSubscription.cs:line 49 + at System.Management.Automation.Cmdlet.DoBeginProcessing() + at System.Management.Automation.CommandProcessorBase.DoBegin() +Exception : System.Management.Automation.PSInvalidOperationException +InvocationInfo : {Get-AzSubscription} +Line : Get-AzSubscription +Position : At line:1 char:1 + + Get-AzSubscription + + ~~~~~~~~~~~~~~~~~~~~~~~ +HistoryId : 3 + + Get details of the last error. + + + + + + --------- Example 2: Resolve all Errors in the Session --------- + Resolve-AzError + +HistoryId: 8 + + +RequestId : b61309e8-09c9-4f0d-ba56-08a6b28c731d +Message : Resource group 'contoso' could not be found. +ServerMessage : ResourceGroupNotFound: Resource group 'contoso' could not be found. + (System.Collections.Generic.List`1[Microsoft.Rest.Azure.CloudError]) +ServerResponse : {NotFound} +RequestMessage : {GET https://management.azure.com/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/co + ntoso/providers/Microsoft.Storage/storageAccounts/contoso?api-version=2016-12-01} +InvocationInfo : {Get-AzStorageAccount} +Line : Get-AzStorageAccount -ResourceGroupName contoso -Name contoso +Position : At line:1 char:1 + + Get-AzStorageAccount -ResourceGroupName contoso -Name contoso + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +StackTrace : at Microsoft.Azure.Management.Storage.StorageAccountsOperations.<GetPropertiesWithHttpMessagesAsync + >d__8.MoveNext() + --- End of stack trace from previous location where exception was thrown --- + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) + at Microsoft.Azure.Management.Storage.StorageAccountsOperationsExtensions.<GetPropertiesAsync>d__7. + MoveNext() + --- End of stack trace from previous location where exception was thrown --- + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) + at Microsoft.Azure.Management.Storage.StorageAccountsOperationsExtensions.GetProperties(IStorageAcc + ountsOperations operations, String resourceGroupName, String accountName) + at Microsoft.Azure.Commands.Management.Storage.GetAzureStorageAccountCommand.ExecuteCmdlet() in C:\ + zd\azure-powershell\src\ResourceManager\Storage\Commands.Management.Storage\StorageAccount\GetAzureSto + rageAccount.cs:line 70 + at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord() in + C:\zd\azure-powershell\src\Common\Commands.Common\AzurePSCmdlet.cs:line 642 +HistoryId : 8 + + + HistoryId: 5 + + +Message : Run Connect-AzAccount to login. +StackTrace : at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.get_DefaultContext() in C:\zd\azur + e-powershell\src\ResourceManager\Common\Commands.ResourceManager.Common\AzureRmCmdlet.cs:line 85 + at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.LogCmdletStartInvocationInfo() in + C:\zd\azure-powershell\src\ResourceManager\Common\Commands.ResourceManager.Common\AzureRmCmdlet.cs:lin + e 269 + at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.BeginProcessing() in + C:\zd\azure-powershell\src\Common\Commands.Common\AzurePSCmdlet.cs:line 299 + at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.BeginProcessing() in C:\zd\azure-p + owershell\src\ResourceManager\Common\Commands.ResourceManager.Common\AzureRmCmdlet.cs:line 320 + at Microsoft.Azure.Commands.Profile.GetAzureRMSubscriptionCommand.BeginProcessing() in C:\zd\azure- + powershell\src\ResourceManager\Profile\Commands.Profile\Subscription\GetAzureRMSubscription.cs:line 49 + at System.Management.Automation.Cmdlet.DoBeginProcessing() + at System.Management.Automation.CommandProcessorBase.DoBegin() +Exception : System.Management.Automation.PSInvalidOperationException +InvocationInfo : {Get-AzSubscription} +Line : Get-AzSubscription +Position : At line:1 char:1 + + Get-AzSubscription + + ~~~~~~~~~~~~~~~~~~~~~~~ +HistoryId : 5 + + Get details of all errors that have occurred in the current session. + + + + + + ------------- Example 3: Resolve a Specific Error ------------- + Resolve-AzError $Error[0] + +HistoryId: 8 + + +RequestId : b61309e8-09c9-4f0d-ba56-08a6b28c731d +Message : Resource group 'contoso' could not be found. +ServerMessage : ResourceGroupNotFound: Resource group 'contoso' could not be found. + (System.Collections.Generic.List`1[Microsoft.Rest.Azure.CloudError]) +ServerResponse : {NotFound} +RequestMessage : {GET https://management.azure.com/subscriptions/00977cdb-163f-435f-9c32-39ec8ae61f4d/resourceGroups/co + ntoso/providers/Microsoft.Storage/storageAccounts/contoso?api-version=2016-12-01} +InvocationInfo : {Get-AzStorageAccount} +Line : Get-AzStorageAccount -ResourceGroupName contoso -Name contoso +Position : At line:1 char:1 + + Get-AzStorageAccount -ResourceGroupName contoso -Name contoso + + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +StackTrace : at Microsoft.Azure.Management.Storage.StorageAccountsOperations.<GetPropertiesWithHttpMessagesAsync + >d__8.MoveNext() + --- End of stack trace from previous location where exception was thrown --- + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) + at Microsoft.Azure.Management.Storage.StorageAccountsOperationsExtensions.<GetPropertiesAsync>d__7. + MoveNext() + --- End of stack trace from previous location where exception was thrown --- + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) + at Microsoft.Azure.Management.Storage.StorageAccountsOperationsExtensions.GetProperties(IStorageAcc + ountsOperations operations, String resourceGroupName, String accountName) + at Microsoft.Azure.Commands.Management.Storage.GetAzureStorageAccountCommand.ExecuteCmdlet() in C:\ + zd\azure-powershell\src\ResourceManager\Storage\Commands.Management.Storage\StorageAccount\GetAzureSto + rageAccount.cs:line 70 + at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord() in + C:\zd\azure-powershell\src\Common\Commands.Common\AzurePSCmdlet.cs:line 642 +HistoryId : 8 + + Get details of the specified error. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/resolve-azerror + + + + + + Save-AzContext + Save + AzContext + + Saves the current authentication information for use in other PowerShell sessions. + + + + The Save-AzContext cmdlet saves the current authentication information for use in other PowerShell sessions. + + + + Save-AzContext + + Profile + + Specifies the Azure context from which this cmdlet reads. If you do not specify a context, this cmdlet reads from the local default context. + + Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile + + Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile + + + None + + + Path + + Specifies the path of the file to which to save authentication information. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Overwrite the given file if it exists + + + System.Management.Automation.SwitchParameter + + + False + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Overwrite the given file if it exists + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Path + + Specifies the path of the file to which to save authentication information. + + System.String + + System.String + + + None + + + Profile + + Specifies the Azure context from which this cmdlet reads. If you do not specify a context, this cmdlet reads from the local default context. + + Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile + + Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + Microsoft.Azure.Commands.Common.Authentication.Models.AzureRmProfile + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureProfile + + + + + + + + + + + + + + ------- Example 1: Saving the current session's context ------- + Connect-AzAccount +Save-AzContext -Path C:\test.json + + This example saves the current session's Azure context to the JSON file provided. + + + + + + -------------- Example 2: Saving a given context -------------- + Save-AzContext -Profile (Connect-AzAccount) -Path C:\test.json + + This example saves the Azure context that is passed through to the cmdlet to the JSON file provided. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/save-azcontext + + + + + + Select-AzContext + Select + AzContext + + Select a subscription and account to target in Azure PowerShell cmdlets + + + + Select a subscription to target (or account or tenant) in Azure PowerShell cmdlets. After this cmdlet, future cmdlets will target the selected context. + + + + Select-AzContext + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + InputObject + + A context object, normally passed through the pipeline. + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Select-AzContext + + Name + + The name of the context + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, tenant and subscription used for communication with azure + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + InputObject + + A context object, normally passed through the pipeline. + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + None + + + Name + + The name of the context + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + + + + + + + + + + + + -------------- Example 1: Target a named context -------------- + Select-AzContext "Work" + +Name Account SubscriptionName Environment TenantId +---- ------- ---------------- ----------- -------- +Work test@outlook.com Subscription1 AzureCloud xxxxxxxx-x... + + Target future Azure PowerShell cmdlets at the account, tenant, and subscription in the 'Work' context. + + + + + + -------------------------- Example 2 -------------------------- + Select-AzContext -Name TestEnvironment -Scope Process + + + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/select-azcontext + + + + + + Send-Feedback + Send + Feedback + + Sends feedback to the Azure PowerShell team via a set of guided prompts. + + + + The Send-Feedback cmdlet sends feedback to the Azure PowerShell team. + + + + Send-Feedback + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + + + + None + + + + + + + + + + System.Void + + + + + + + + + + + + + + -------------------------- Example 1: -------------------------- + Send-Feedback + +With zero (0) being the least and ten (10) being the most, how likely are you to recommend Azure PowerShell to a friend or colleague? + +10 + +What does Azure PowerShell do well? + +Response. + +Upon what could Azure PowerShell improve? + +Response. + +Please enter your email if you are interested in providing follow up information: + +your@email.com + + + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/send-feedback + + + + + + Set-AzContext + Set + AzContext + + Sets the tenant, subscription, and environment for cmdlets to use in the current session. + + + + The Set-AzContext cmdlet sets authentication information for cmdlets that you run in the current session. The context includes tenant, subscription, and environment information. + + + + Set-AzContext + + Context + + Specifies the context for the current session. + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + None + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + ExtendedProperty + + Additional context properties + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + + None + + + Force + + Overwrite the existing context with the same name, if any. + + + System.Management.Automation.SwitchParameter + + + False + + + Name + + Name of the context + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Set-AzContext + + Subscription + + The name or id of the subscription that the context should be set to. This parameter has aliases to -SubscriptionName and -SubscriptionId, so, for clarity, either of these can be used instead of -Subscription when specifying name and id, respectively. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + ExtendedProperty + + Additional context properties + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + + None + + + Force + + Overwrite the existing context with the same name, if any. + + + System.Management.Automation.SwitchParameter + + + False + + + Name + + Name of the context + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Tenant + + Tenant domain name or ID + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Set-AzContext + + SubscriptionObject + + A subscription object + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription + + + None + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + ExtendedProperty + + Additional context properties + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + + None + + + Force + + Overwrite the existing context with the same name, if any. + + + System.Management.Automation.SwitchParameter + + + False + + + Name + + Name of the context + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Set-AzContext + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + ExtendedProperty + + Additional context properties + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + + None + + + Force + + Overwrite the existing context with the same name, if any. + + + System.Management.Automation.SwitchParameter + + + False + + + Name + + Name of the context + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Tenant + + Tenant domain name or ID + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Set-AzContext + + TenantObject + + A Tenant Object + + Microsoft.Azure.Commands.Profile.Models.PSAzureTenant + + Microsoft.Azure.Commands.Profile.Models.PSAzureTenant + + + None + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + ExtendedProperty + + Additional context properties + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + + None + + + Force + + Overwrite the existing context with the same name, if any. + + + System.Management.Automation.SwitchParameter + + + False + + + Name + + Name of the context + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + Context + + Specifies the context for the current session. + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + None + + + DefaultProfile + + The credentials, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + ExtendedProperty + + Additional context properties + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + System.Collections.Generic.IDictionary`2[System.String,System.String] + + + None + + + Force + + Overwrite the existing context with the same name, if any. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Name + + Name of the context + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Subscription + + The name or id of the subscription that the context should be set to. This parameter has aliases to -SubscriptionName and -SubscriptionId, so, for clarity, either of these can be used instead of -Subscription when specifying name and id, respectively. + + System.String + + System.String + + + None + + + SubscriptionObject + + A subscription object + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription + + + None + + + Tenant + + Tenant domain name or ID + + System.String + + System.String + + + None + + + TenantObject + + A Tenant Object + + Microsoft.Azure.Commands.Profile.Models.PSAzureTenant + + Microsoft.Azure.Commands.Profile.Models.PSAzureTenant + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureTenant + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureSubscription + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext + + + + + + + + + + + + + + ----------- Example 1: Set the subscription context ----------- + Set-AzContext -Subscription "xxxx-xxxx-xxxx-xxxx" + +Name Account SubscriptionName Environment TenantId +---- ------- ---------------- ----------- -------- +Work test@outlook.com Subscription1 AzureCloud xxxxxxxx-x... + + This command sets the context to use the specified subscription. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/set-azcontext + + + Get-AzContext + + + + + + + Set-AzDefault + Set + AzDefault + + Sets a default in the current context + + + + The Set-AzDefault cmdlet adds or changes the defaults in the current context. + + + + Set-AzDefault + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Create a new resource group if specified default does not exist + + + System.Management.Automation.SwitchParameter + + + False + + + ResourceGroupName + + Name of the resource group being set as default + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Force + + Create a new resource group if specified default does not exist + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + ResourceGroupName + + Name of the resource group being set as default + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + System.String + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSResourceGroup + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Set-AzDefault -ResourceGroupName myResourceGroup + +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup +Name : myResourceGroup +Properties : Microsoft.Azure.Management.Internal.Resources.Models.ResourceGroupProperties +Location : eastus +ManagedBy : +Tags : + + This command sets the default resource group to the resource group specified by the user. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/set-azdefault + + + + + + Set-AzEnvironment + Set + AzEnvironment + + Sets properties for an Azure environment. + + + + The Set-AzEnvironment cmdlet sets endpoints and metadata for connecting to an instance of Azure. + + + + Set-AzEnvironment + + Name + + Specifies the name of the environment to modify. + + System.String + + System.String + + + None + + + PublishSettingsFileUrl + + Specifies the URL from which .publishsettings files can be downloaded. + + System.String + + System.String + + + None + + + AzureKeyVaultDnsSuffix + + Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net + + System.String + + System.String + + + None + + + AzureKeyVaultServiceEndpointResourceId + + Resource identifier of Azure Key Vault data service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + TrafficManagerDnsSuffix + + Specifies the domain-name suffix for Azure Traffic Manager services. + + System.String + + System.String + + + None + + + SqlDatabaseDnsSuffix + + Specifies the domain-name suffix for Azure SQL Database servers. + + System.String + + System.String + + + None + + + AzureDataLakeStoreFileSystemEndpointSuffix + + Dns Suffix of Azure Data Lake Store FileSystem. Example: azuredatalake.net + + System.String + + System.String + + + None + + + AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix + + Dns Suffix of Azure Data Lake Analytics job and catalog services + + System.String + + System.String + + + None + + + EnableAdfsAuthentication + + Indicates that Active Directory Federation Services (ADFS) on-premise authentication is allowed. + + + System.Management.Automation.SwitchParameter + + + False + + + AdTenant + + Specifies the default Active Directory tenant. + + System.String + + System.String + + + None + + + GraphAudience + + The audience for tokens authenticating with the AD Graph Endpoint. + + System.String + + System.String + + + None + + + DataLakeAudience + + The audience for tokens authenticating with the AD Data Lake services Endpoint. + + System.String + + System.String + + + None + + + ServiceEndpoint + + Specifies the endpoint for Service Management (RDFE) requests. + + System.String + + System.String + + + None + + + BatchEndpointResourceId + + The resource identifier of the Azure Batch service that is the recipient of the requested token + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpointResourceId + + The audience for tokens authenticating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpoint + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + ManagementPortalUrl + + Specifies the URL for the Management Portal. + + System.String + + System.String + + + None + + + StorageEndpoint + + Specifies the endpoint for storage (blob, table, queue, and file) access. + + System.String + + System.String + + + None + + + ActiveDirectoryEndpoint + + Specifies the base authority for Azure Active Directory authentication. + + System.String + + System.String + + + None + + + ResourceManagerEndpoint + + Specifies the URL for Azure Resource Manager requests. + + System.String + + System.String + + + None + + + GalleryEndpoint + + Specifies the endpoint for the Azure Resource Manager gallery of deployment templates. The parameter is to set the value to `GalleryUrl` of `PSAzureEnvironment`. As `GalleryUrl` is removed from ArmMetadata, Azure PowerShell will no longer provide for the value and so it is not recommended to set `GalleryEndpoint` anymore. + + System.String + + System.String + + + None + + + ActiveDirectoryServiceEndpointResourceId + + Specifies the audience for tokens that authenticate requests to Azure Resource Manager or Service Management (RDFE) endpoints. + + System.String + + System.String + + + None + + + GraphEndpoint + + Specifies the URL for Graph (Active Directory metadata) requests. + + System.String + + System.String + + + None + + + AzureAnalysisServicesEndpointResourceId + + The resource identifier of the Azure Analysis Services resource. + + System.String + + System.String + + + None + + + AzureAnalysisServicesEndpointSuffix + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointResourceId + + The The resource identifier of the Azure Attestation service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointSuffix + + Dns suffix of Azure Attestation service. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointResourceId + + The The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointSuffix + + Dns suffix of Azure Synapse Analytics. + + System.String + + System.String + + + None + + + ContainerRegistryEndpointSuffix + + Suffix of Azure Container Registry. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + MicrosoftGraphEndpointResourceId + + The resource identifier of Microsoft Graph + + System.String + + System.String + + + None + + + MicrosoftGraphUrl + + Microsoft Graph Url + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + Set-AzEnvironment + + Name + + Specifies the name of the environment to modify. + + System.String + + System.String + + + None + + + ARMEndpoint + + The Azure Resource Manager endpoint. + + System.String + + System.String + + + None + + + AzureKeyVaultDnsSuffix + + Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net + + System.String + + System.String + + + None + + + AzureKeyVaultServiceEndpointResourceId + + Resource identifier of Azure Key Vault data service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + DataLakeAudience + + The audience for tokens authenticating with the AD Data Lake services Endpoint. + + System.String + + System.String + + + None + + + BatchEndpointResourceId + + The resource identifier of the Azure Batch service that is the recipient of the requested token + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpointResourceId + + The audience for tokens authenticating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpoint + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + StorageEndpoint + + Specifies the endpoint for storage (blob, table, queue, and file) access. + + System.String + + System.String + + + None + + + AzureAnalysisServicesEndpointResourceId + + The resource identifier of the Azure Analysis Services resource. + + System.String + + System.String + + + None + + + AzureAnalysisServicesEndpointSuffix + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointResourceId + + The The resource identifier of the Azure Attestation service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointSuffix + + Dns suffix of Azure Attestation service. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointResourceId + + The The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointSuffix + + Dns suffix of Azure Synapse Analytics. + + System.String + + System.String + + + None + + + ContainerRegistryEndpointSuffix + + Suffix of Azure Container Registry. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + + Process + CurrentUser + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + ActiveDirectoryEndpoint + + Specifies the base authority for Azure Active Directory authentication. + + System.String + + System.String + + + None + + + ActiveDirectoryServiceEndpointResourceId + + Specifies the audience for tokens that authenticate requests to Azure Resource Manager or Service Management (RDFE) endpoints. + + System.String + + System.String + + + None + + + AdTenant + + Specifies the default Active Directory tenant. + + System.String + + System.String + + + None + + + ARMEndpoint + + The Azure Resource Manager endpoint. + + System.String + + System.String + + + None + + + AzureAnalysisServicesEndpointResourceId + + The resource identifier of the Azure Analysis Services resource. + + System.String + + System.String + + + None + + + AzureAnalysisServicesEndpointSuffix + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointResourceId + + The The resource identifier of the Azure Attestation service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureAttestationServiceEndpointSuffix + + Dns suffix of Azure Attestation service. + + System.String + + System.String + + + None + + + AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix + + Dns Suffix of Azure Data Lake Analytics job and catalog services + + System.String + + System.String + + + None + + + AzureDataLakeStoreFileSystemEndpointSuffix + + Dns Suffix of Azure Data Lake Store FileSystem. Example: azuredatalake.net + + System.String + + System.String + + + None + + + AzureKeyVaultDnsSuffix + + Dns suffix of Azure Key Vault service. Example is vault-int.azure-int.net + + System.String + + System.String + + + None + + + AzureKeyVaultServiceEndpointResourceId + + Resource identifier of Azure Key Vault data service that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpoint + + The endpoint to use when communicating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureOperationalInsightsEndpointResourceId + + The audience for tokens authenticating with the Azure Log Analytics API. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointResourceId + + The The resource identifier of the Azure Synapse Analytics that is the recipient of the requested token. + + System.String + + System.String + + + None + + + AzureSynapseAnalyticsEndpointSuffix + + Dns suffix of Azure Synapse Analytics. + + System.String + + System.String + + + None + + + BatchEndpointResourceId + + The resource identifier of the Azure Batch service that is the recipient of the requested token + + System.String + + System.String + + + None + + + ContainerRegistryEndpointSuffix + + Suffix of Azure Container Registry. + + System.String + + System.String + + + None + + + DataLakeAudience + + The audience for tokens authenticating with the AD Data Lake services Endpoint. + + System.String + + System.String + + + None + + + DefaultProfile + + The credentials, account, tenant and subscription used for communication with azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + EnableAdfsAuthentication + + Indicates that Active Directory Federation Services (ADFS) on-premise authentication is allowed. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + GalleryEndpoint + + Specifies the endpoint for the Azure Resource Manager gallery of deployment templates. The parameter is to set the value to `GalleryUrl` of `PSAzureEnvironment`. As `GalleryUrl` is removed from ArmMetadata, Azure PowerShell will no longer provide for the value and so it is not recommended to set `GalleryEndpoint` anymore. + + System.String + + System.String + + + None + + + GraphAudience + + The audience for tokens authenticating with the AD Graph Endpoint. + + System.String + + System.String + + + None + + + GraphEndpoint + + Specifies the URL for Graph (Active Directory metadata) requests. + + System.String + + System.String + + + None + + + ManagementPortalUrl + + Specifies the URL for the Management Portal. + + System.String + + System.String + + + None + + + MicrosoftGraphEndpointResourceId + + The resource identifier of Microsoft Graph + + System.String + + System.String + + + None + + + MicrosoftGraphUrl + + Microsoft Graph Url + + System.String + + System.String + + + None + + + Name + + Specifies the name of the environment to modify. + + System.String + + System.String + + + None + + + PublishSettingsFileUrl + + Specifies the URL from which .publishsettings files can be downloaded. + + System.String + + System.String + + + None + + + ResourceManagerEndpoint + + Specifies the URL for Azure Resource Manager requests. + + System.String + + System.String + + + None + + + Scope + + Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user. + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + Microsoft.Azure.Commands.Profile.Common.ContextModificationScope + + + None + + + ServiceEndpoint + + Specifies the endpoint for Service Management (RDFE) requests. + + System.String + + System.String + + + None + + + SqlDatabaseDnsSuffix + + Specifies the domain-name suffix for Azure SQL Database servers. + + System.String + + System.String + + + None + + + StorageEndpoint + + Specifies the endpoint for storage (blob, table, queue, and file) access. + + System.String + + System.String + + + None + + + TrafficManagerDnsSuffix + + Specifies the domain-name suffix for Azure Traffic Manager services. + + System.String + + System.String + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + System.String + + + + + + + + System.Management.Automation.SwitchParameter + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment + + + + + + + + + + + + + + ----- Example 1: Creating and modifying a new environment ----- + Add-AzEnvironment -Name TestEnvironment ` + -ActiveDirectoryEndpoint TestADEndpoint ` + -ActiveDirectoryServiceEndpointResourceId TestADApplicationId ` + -ResourceManagerEndpoint TestRMEndpoint ` + -GalleryEndpoint TestGalleryEndpoint ` + -GraphEndpoint TestGraphEndpoint + +Name Resource Manager Url ActiveDirectory Authority +---- -------------------- ------------------------- +TestEnvironment TestRMEndpoint TestADEndpoint/ + +Set-AzEnvironment -Name TestEnvironment ` + -ActiveDirectoryEndpoint NewTestADEndpoint ` + -GraphEndpoint NewTestGraphEndpoint | Format-List + +Name : TestEnvironment +EnableAdfsAuthentication : False +ActiveDirectoryServiceEndpointResourceId : TestADApplicationId +AdTenant : +GalleryUrl : TestGalleryEndpoint +ManagementPortalUrl : +ServiceManagementUrl : +PublishSettingsFileUrl : +ResourceManagerUrl : TestRMEndpoint +SqlDatabaseDnsSuffix : +StorageEndpointSuffix : +ActiveDirectoryAuthority : NewTestADEndpoint +GraphUrl : NewTestGraphEndpoint +GraphEndpointResourceId : +TrafficManagerDnsSuffix : +AzureKeyVaultDnsSuffix : +AzureDataLakeStoreFileSystemEndpointSuffix : +AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix : +AzureKeyVaultServiceEndpointResourceId : +BatchEndpointResourceId : +AzureOperationalInsightsEndpoint : +AzureOperationalInsightsEndpointResourceId : +AzureAttestationServiceEndpointSuffix : +AzureAttestationServiceEndpointResourceId : +AzureSynapseAnalyticsEndpointSuffix : +AzureSynapseAnalyticsEndpointResourceId : + + In this example we are creating a new Azure environment with sample endpoints using Add-AzEnvironment, and then we are changing the value of the ActiveDirectoryEndpoint and GraphEndpoint attributes of the created environment using the cmdlet Set-AzEnvironment. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/set-azenvironment + + + Add-AzEnvironment + + + + Get-AzEnvironment + + + + Remove-AzEnvironment + + + + + + + Uninstall-AzureRm + Uninstall + AzureRm + + Removes all AzureRm modules from a machine. + + + + Removes all AzureRm modules from a machine. + + + + Uninstall-AzureRm + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + PassThru + + Return list of Modules removed if specified. + + + System.Management.Automation.SwitchParameter + + + False + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + PassThru + + Return list of Modules removed if specified. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + None + + + + + + + + + + System.String + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Uninstall-AzureRm + + Running this command will remove all AzureRm modules from the machine for the version of PowerShell in which the cmdlet is run. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/uninstall-azurerm + + + + + + Update-AzConfig + Update + AzConfig + + Updates the configs of Azure PowerShell. + + + + Updates the configs of Azure PowerShell. Depending on which config to update, you may specify the scope where the config is persisted and to which module or cmdlet it applies to. + > [!NOTE] > It is discouraged to update configs in multiple PowerShell processes. Either do it in one process, or make sure the updates are at Process scope (`-Scope Process`) to avoid unexpected side-effects. + + + + Update-AzConfig + + AppliesTo + + Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. + - Module name: the config applies to a certain module of Azure PowerShell. + For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". + + System.String + + System.String + + + None + + + CheckForUpgrade + + When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value will be changed from false to true in Az version 11.0.0. + + System.Boolean + + System.Boolean + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + DefaultSubscriptionForLogin + + Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. + + System.String + + System.String + + + None + + + DisableErrorRecordsPersistence + + When disabled, error records will not be written to ~/.Azure/ErrorRecords. This config will be replaced by "EnableErrorRecordsPersistence" as opt-in in the next major release of Az around November 2023. + + System.Boolean + + System.Boolean + + + None + + + DisplayBreakingChangeWarning + + Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. + + System.Boolean + + System.Boolean + + + None + + + DisplayRegionIdentified + + When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. + + System.Boolean + + System.Boolean + + + None + + + DisplaySurveyMessage + + When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. + + System.Boolean + + System.Boolean + + + None + + + EnableDataCollection + + When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy + + System.Boolean + + System.Boolean + + + None + + + EnableLoginByWam + + [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue + + System.Boolean + + System.Boolean + + + None + + + Scope + + Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. + + + CurrentUser + Process + Default + Environment + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + + System.Management.Automation.SwitchParameter + + + False + + + + + + AppliesTo + + Specifies what part of Azure PowerShell the config applies to. Possible values are: - "Az": the config applies to all modules and cmdlets of Azure PowerShell. + - Module name: the config applies to a certain module of Azure PowerShell. + For example, "Az.Storage". - Cmdlet name: the config applies to a certain cmdlet of Azure PowerShell. For example, "Get-AzKeyVault". If not specified, when getting or clearing configs, it defaults to all the above; when updating, it defaults to "Az". + + System.String + + System.String + + + None + + + CheckForUpgrade + + When enabled, Azure PowerShell will check for updates automatically and display a hint message when an update is available. The default value will be changed from false to true in Az version 11.0.0. + + System.Boolean + + System.Boolean + + + None + + + DefaultProfile + + The credentials, account, tenant, and subscription used for communication with Azure. + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer + + + None + + + DefaultSubscriptionForLogin + + Subscription name or GUID. Sets the default context for Azure PowerShell when logging in without specifying a subscription. + + System.String + + System.String + + + None + + + DisableErrorRecordsPersistence + + When disabled, error records will not be written to ~/.Azure/ErrorRecords. This config will be replaced by "EnableErrorRecordsPersistence" as opt-in in the next major release of Az around November 2023. + + System.Boolean + + System.Boolean + + + None + + + DisplayBreakingChangeWarning + + Controls if warning messages for breaking changes are displayed or suppressed. When enabled, a breaking change warning is displayed when executing cmdlets with breaking changes in a future release. + + System.Boolean + + System.Boolean + + + None + + + DisplayRegionIdentified + + When enabled, Azure PowerShell displays recommendations on regions which may reduce your costs. + + System.Boolean + + System.Boolean + + + None + + + DisplaySurveyMessage + + When enabled, you are prompted infrequently to participate in user experience surveys for Azure PowerShell. + + System.Boolean + + System.Boolean + + + None + + + EnableDataCollection + + When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experience. For more information, see our privacy statement: https://aka.ms/privacy + + System.Boolean + + System.Boolean + + + None + + + EnableLoginByWam + + [Preview] When enabled, Web Account Manager (WAM) will be the default interactive login experience. It will fall back to using the browser if the platform does not support WAM. Note that this feature is under preview. Microsoft Account (MSA) is currently not supported. Feel free to reach out to Azure PowerShell team if you have any feedbacks: https://aka.ms/azpsissue + + System.Boolean + + System.Boolean + + + None + + + Scope + + Determines the scope of config changes, for example, whether changes apply only to the current process, or to all sessions started by this user. By default it is CurrentUser. + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + Microsoft.Azure.PowerShell.Common.Config.ConfigScope + + + None + + + Confirm + + Prompts you for confirmation before running the cmdlet. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + WhatIf + + Shows what would happen if the cmdlet runs. The cmdlet is not run. + + System.Management.Automation.SwitchParameter + + System.Management.Automation.SwitchParameter + + + False + + + + + + System.String + + + + + + + + System.Boolean + + + + + + + + + + Microsoft.Azure.Commands.Profile.Models.PSConfig + + + + + + + + + + + + + + -------------------------- Example 1 -------------------------- + Update-AzConfig -DefaultSubscriptionForLogin "Name of subscription" + +Key Value Applies To Scope Help Message +--- ----- ---------- ----- ------------ +DefaultSubscriptionForLogin Name of subscription Az CurrentUser Subscription name or GUID. Sets the default context for Azure PowerShell when lo… + + Sets the "DefaultSubscriptionForLogin" config as "Name of subscription". When `Connect-AzAccount` the specified subscription will be selected as the default subscription. + + + + + + -------------------------- Example 2 -------------------------- + Update-AzConfig -DisplayBreakingChangeWarning $false -AppliesTo "Az.KeyVault" + +Key Value Applies To Scope Help Message +--- ----- ---------- ----- ------------ +DisplayBreakingChangeWarning False Az.KeyVault CurrentUser Controls if warning messages for breaking changes are displayed or suppressed. When enabled,… + + Sets the "DisplayBreakingChangeWarnings" config as "$false" for "Az.KeyVault" module. This prevents all the warning messages for upcoming breaking changes in Az.KeyVault module from prompting. + + + + + + -------------------------- Example 3 -------------------------- + Update-AzConfig -EnableDataCollection $true + +Key Value Applies To Scope Help Message +--- ----- ---------- ----- ------------ +EnableDataCollection True Az CurrentUser When enabled, Azure PowerShell cmdlets send telemetry data to Microsoft to improve the customer experi… + + Sets the "EnableDataCollection" config as "$true". This enables sending the telemetry data. Setting this config is equivalent to `Enable-AzDataCollection` and `Disable-AzDataCollection`. + + + + + + + + Online Version: + https://learn.microsoft.com/powershell/module/az.accounts/update-azconfig + + + + \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Common.Share.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Common.Share.dll new file mode 100644 index 000000000000..3d53eaa669dc Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Common.Share.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Common.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Common.dll new file mode 100644 index 000000000000..2443eb5dd56a Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Common.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Storage.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Storage.dll new file mode 100644 index 000000000000..a163f556b3f8 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Storage.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Strategies.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Strategies.dll new file mode 100644 index 000000000000..0ccbb5ead102 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Azure.PowerShell.Strategies.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Rest.ClientRuntime.Azure.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Rest.ClientRuntime.Azure.dll new file mode 100644 index 000000000000..1d99c7015912 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Rest.ClientRuntime.Azure.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Rest.ClientRuntime.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Rest.ClientRuntime.dll new file mode 100644 index 000000000000..a4fca7488baf Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.Rest.ClientRuntime.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.WindowsAzure.Storage.DataMovement.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.WindowsAzure.Storage.DataMovement.dll new file mode 100644 index 000000000000..6ac672abd486 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.WindowsAzure.Storage.DataMovement.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.WindowsAzure.Storage.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.WindowsAzure.Storage.dll new file mode 100644 index 000000000000..70c5ed6806c6 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/Microsoft.WindowsAzure.Storage.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/PostImportScripts/LoadAuthenticators.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/PostImportScripts/LoadAuthenticators.ps1 new file mode 100644 index 000000000000..1a6de8a08d69 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/PostImportScripts/LoadAuthenticators.ps1 @@ -0,0 +1,222 @@ +if ($PSEdition -eq 'Desktop') { + try { + [Microsoft.Azure.Commands.Profile.Utilities.CustomAssemblyResolver]::Initialize() + } catch {} +} +# SIG # Begin signature block +# MIIoPAYJKoZIhvcNAQcCoIIoLTCCKCkCAQExDzANBglghkgBZQMEAgEFADB5Bgor +# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG +# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBn8ROze2QLH/c6 +# GtPhR/BPLgOtmjkNhcq+fFmu16VcrqCCDYUwggYDMIID66ADAgECAhMzAAADTU6R +# phoosHiPAAAAAANNMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD +# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy +# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p +# bmcgUENBIDIwMTEwHhcNMjMwMzE2MTg0MzI4WhcNMjQwMzE0MTg0MzI4WjB0MQsw +# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u +# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy +# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB +# AQDUKPcKGVa6cboGQU03ONbUKyl4WpH6Q2Xo9cP3RhXTOa6C6THltd2RfnjlUQG+ +# Mwoy93iGmGKEMF/jyO2XdiwMP427j90C/PMY/d5vY31sx+udtbif7GCJ7jJ1vLzd +# j28zV4r0FGG6yEv+tUNelTIsFmmSb0FUiJtU4r5sfCThvg8dI/F9Hh6xMZoVti+k +# bVla+hlG8bf4s00VTw4uAZh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XZl0jesLtdnxXcZQrZR8N5yMAr+J9ozW4F5l/Nw/K3JO/5XeR3tGjTpKWT +# qd9YPyvhJpn7WJGeOb60ahoyNkCPjdJXCfx7tMRYztCzlQVkqsbZmaWXAOPBpCJy +# KJW7TTHceNGuQxTbZ62LPX+3X+Li0I5QL+fN/CyvajxlbkONe6p7mEO1GwyEoBHK +# aK7p3pH45Fyn9pedZpWRnwNKFCtm7xIGrjD8dwh/SKnQQn0UZCOm6Z2MTA2dexh5 +# tckF0e9H6wsS2ty7bQjaxuIu7bRVIOv7N58yLZvZ/JpjuxTXTxJuxPmlAsBq4DPk +# 6oHV7zY0K9mbyoGUw0Hie5ZW+i15UGOQYjt9ORg38GLgv4mt3o4v78J0X1HTWDGt +# IKZzmt/ZsnE2gTde52Wujm56LnstUoCXuTKlLP5MTGA= +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/StartupScripts/AzError.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/StartupScripts/AzError.ps1 new file mode 100644 index 000000000000..5379b99cf34a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/StartupScripts/AzError.ps1 @@ -0,0 +1,281 @@ +function Write-InstallationCheckToFile +{ + Param($installationchecks) + if (Get-Module AzureRM.Profile -ListAvailable -ErrorAction Ignore) + { + Write-Warning ("Both Az and AzureRM modules were detected on this machine. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + + "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide") + } + + $installationchecks.Add("AzSideBySideCheck","true") + try + { + if (Test-Path $pathToInstallationChecks -ErrorAction Ignore) + { + Remove-Item -Path $pathToInstallationChecks -ErrorAction Stop + } + + $pathToInstallDir = Split-Path -Path $pathToInstallationChecks -Parent -ErrorAction Stop + if (Test-Path $pathToInstallDir -ErrorAction Ignore) + { + New-Item -Path $pathToInstallationChecks -ErrorAction Stop -ItemType File -Value ($installationchecks | ConvertTo-Json -ErrorAction Stop) + } + } + catch + { + Write-Verbose "Installation checks failed to write to file." + } +} + +if (!($env:SkipAzInstallationChecks -eq "true")) +{ + $pathToInstallationChecks = Join-Path (Join-Path $HOME ".Azure") "AzInstallationChecks.json" + $installationchecks = @{} + if (!(Test-Path $pathToInstallationChecks -ErrorAction Ignore)) + { + Write-InstallationCheckToFile $installationchecks + } + else + { + try + { + ((Get-Content $pathToInstallationChecks -ErrorAction Stop) | ConvertFrom-Json -ErrorAction Stop).PSObject.Properties | Foreach { $installationchecks[$_.Name] = $_.Value } + } + catch + { + Write-InstallationCheckToFile $installationchecks + } + + if (!$installationchecks.ContainsKey("AzSideBySideCheck")) + { + Write-InstallationCheckToFile $installationchecks + } + } +} + +if (Get-Module AzureRM.profile -ErrorAction Ignore) +{ + Write-Warning ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + + "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") + throw ("AzureRM.Profile already loaded. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook. If you are running PowerShell in an environment you control you can use the 'Uninstall-AzureRm' cmdlet to remove all AzureRm modules from your machine. " + + "If you are running in Azure Automation, take care that none of your runbooks import both Az and AzureRM modules. More information can be found here: https://aka.ms/azps-migration-guide.") +} + +Update-TypeData -AppendPath (Join-Path (Get-Item $PSScriptRoot).Parent.FullName Accounts.types.ps1xml) -ErrorAction Ignore +# SIG # Begin signature block +# MIIoPAYJKoZIhvcNAQcCoIIoLTCCKCkCAQExDzANBglghkgBZQMEAgEFADB5Bgor +# BgEEAYI3AgEEoGswaTA0BgorBgEE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JDZf2ZcRhuaKdMGV3lWH2Wens4zDgoYSW0iES9FkqIHGh3vy2knZ2CDrY7w +# BdB8PrTm9I7XVen1DEeXtoLusGLn08Jf9UnSXoBq6hptFUJi718OsfXPN26u9/3M +# IKxkdPyvj7pir1X9GaZMyz6eCGJGGtoaBPWAYrJHXoPq/zwpRiGcbK+PLkfI8PRb +# G5flQxQzxdP1hSzAqqE+VCto96sLhASeMZ7gpL87UoQ= +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/StartupScripts/InitializeAssemblyResolver.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/StartupScripts/InitializeAssemblyResolver.ps1 new file mode 100644 index 000000000000..f03e9ec7eb08 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/StartupScripts/InitializeAssemblyResolver.ps1 @@ -0,0 +1,242 @@ +$assemblyRootPath = [System.IO.Path]::Combine($PSScriptRoot, "..", "lib") +Write-Debug "Initializing ConditionalAssemblyContext. PSEdition is [$($PSVersionTable.PSEdition)]. PSVersion is [$($PSVersionTable.PSVersion)]." +$conditionalAssemblyContext = [Microsoft.Azure.PowerShell.AssemblyLoading.ConditionalAssemblyContext]::new($PSVersionTable.PSEdition, $PSVersionTable.PSVersion) +Write-Debug "Initializing ConditionalAssemblyProvider. AssemblyRootPath is [$assemblyRootPath]." +[Microsoft.Azure.PowerShell.AssemblyLoading.ConditionalAssemblyProvider]::Initialize($assemblyRootPath, $conditionalAssemblyContext) + +if ($PSEdition -eq 'Desktop') { + try { + [Microsoft.Azure.Commands.Profile.Utilities.CustomAssemblyResolver]::Initialize() + } + catch { + Write-Warning $_ + } +} +else { + try { + Add-Type -Path ([System.IO.Path]::Combine($PSScriptRoot, "..", "Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.dll")) | Out-Null + Write-Debug "Registering Az shared AssemblyLoadContext." + [Microsoft.Azure.PowerShell.AuthenticationAssemblyLoadContext.AzAssemblyLoadContextInitializer]::RegisterAzSharedAssemblyLoadContext() + Write-Debug "AssemblyLoadContext registered." + } + catch { + Write-Warning $_ + } +} +# SIG # Begin signature block +# MIIoKgYJKoZIhvcNAQcCoIIoGzCCKBcCAQExDzANBglghkgBZQMEAgEFADB5Bgor +# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG +# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCAe8RL2QVOwrz6 +# penupFKMe0U4FkbIX5RGfbRRPsEAcqCCDXYwggX0MIID3KADAgECAhMzAAADTrU8 +# esGEb+srAAAAAANOMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD +# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy +# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p +# bmcgUENBIDIwMTEwHhcNMjMwMzE2MTg0MzI5WhcNMjQwMzE0MTg0MzI5WjB0MQsw +# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u +# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy +# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB +# AQDdCKiNI6IBFWuvJUmf6WdOJqZmIwYs5G7AJD5UbcL6tsC+EBPDbr36pFGo1bsU +# p53nRyFYnncoMg8FK0d8jLlw0lgexDDr7gicf2zOBFWqfv/nSLwzJFNP5W03DF/1 +# 1oZ12rSFqGlm+O46cRjTDFBpMRCZZGddZlRBjivby0eI1VgTD1TvAdfBYQe82fhm +# WQkYR/lWmAK+vW/1+bO7jHaxXT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Ld1hsnr0+/qu/Lz8f20DcFmPrp+gEXLdDCvws93b9fx +# 3hSuuVawfT8XFnXEut989RtYBlYkOPgDIrUbuHj5EqmB19UnhOeFkvhMHEqq+XKo +# kO9mHo8WZOnMFYM8FeSclxl3z/3jrAEibfoXBpVXFv1F3GGt5WH+2UWs7JXTK01R +# tnDr6DRsMEIr0yw2g1cb//u0BkmcEwBXr51dNX3E0WAxqVJk9yjV+YuGLjeD569E +# wDGANqkm83LIALMCBaBAzjVoG8jVnR0gLXrca7i+ez1h/jVDl5GmGcVfdgvxzDYk +# +uMpr/FsnoEFMGiBe/9l72gXY7pnoCipoNTx6q3GA3cfzfVDw27c8AzCny1DHUvj +# cUPCdId96d7eIR//lZo+DnJdQ+rsPlDuqpPdoldS/TzlCl+5Z8idTtxp9kSqzt8O +# aZYYi6hivyQoGN3avBU= +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/[Content_Types].xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/[Content_Types].xml new file mode 100644 index 000000000000..247435745a35 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/[Content_Types].xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/_rels/.rels b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/_rels/.rels new file mode 100644 index 000000000000..756a7cb14f58 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/_rels/.rels @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/en-US/about_az.help.txt b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/en-US/about_az.help.txt new file mode 100644 index 000000000000..fb4a5e9becd1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/en-US/about_az.help.txt @@ -0,0 +1,50 @@ +About topic for Azure PowerShell - about_az + +TOPIC + +about_Az + +SHORT DESCRIPTION + +The Azure Az PowerShell module is a set of cmdlets for managing Azure +resources directly from the PowerShell command line and in PowerShell +scripts. + +LONG DESCRIPTION + +Azure PowerShell provides cross-platform cmdlets for managing Azure +services. All Azure PowerShell cmdlets work on Windows PowerShell 5.1 and +supported versions of PowerShell 7. + +The Azure PowerShell cmdlets follow the naming convention {verb}-Az{noun}. + +- {verb} is an approved PowerShell verb reflecting the corresponding HTTP + operation. + +- {noun} matches or has a close equivalent to the name of the resource. + +The cmdlets produce .NET objects that can be piped between commands +simplifying the sequencing of commands making Azure PowerShell a powerful +solution for scripting and automation purposes. + +A PowerShell module is available for each Azure service. For convenience, +we provide a wrapper module named "Az" that comprises the stable modules. +Modules in preview must be installed independently or via the "AzPreview" +wrapper module. + +Azure PowerShell is frequently updated to include bug fixes and service +updates. It is recommended to plan to update to the most recent version +regularly (a minimum of twice a year). + +GETTING STARTED + +1. Connect to Azure using Connect-AzAccount + +2. Run your first command. For example, create a resource group in the + east US region. + + New-AzResourceGroup -Name "MyResoureGroup" -location "eastus" + +SEE ALSO + +Azure PowerShell documentation: https://learn.microsoft.com/powershell/azure diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netcoreapp2.1/Azure.Core.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netcoreapp2.1/Azure.Core.dll new file mode 100644 index 000000000000..66f3d3165b86 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netcoreapp2.1/Azure.Core.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netcoreapp2.1/Microsoft.Identity.Client.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netcoreapp2.1/Microsoft.Identity.Client.dll new file mode 100644 index 000000000000..7e98f30fc54a Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netcoreapp2.1/Microsoft.Identity.Client.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netcoreapp3.1/Microsoft.Identity.Client.Extensions.Msal.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netcoreapp3.1/Microsoft.Identity.Client.Extensions.Msal.dll new file mode 100644 index 000000000000..02168e3b1856 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netcoreapp3.1/Microsoft.Identity.Client.Extensions.Msal.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Azure.Core.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Azure.Core.dll new file mode 100644 index 000000000000..2593da6045ce Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Azure.Core.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Microsoft.Identity.Client.Extensions.Msal.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Microsoft.Identity.Client.Extensions.Msal.dll new file mode 100644 index 000000000000..87f0bdfe02f2 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Microsoft.Identity.Client.Extensions.Msal.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Microsoft.Identity.Client.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Microsoft.Identity.Client.dll new file mode 100644 index 000000000000..2a1b17bc86a4 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Microsoft.Identity.Client.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Newtonsoft.Json.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Newtonsoft.Json.dll new file mode 100644 index 000000000000..9f13f1f8a4fd Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/Newtonsoft.Json.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Diagnostics.DiagnosticSource.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Diagnostics.DiagnosticSource.dll new file mode 100644 index 000000000000..92419a27e0c2 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Diagnostics.DiagnosticSource.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Numerics.Vectors.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Numerics.Vectors.dll new file mode 100644 index 000000000000..08659724d4f8 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Numerics.Vectors.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Reflection.DispatchProxy.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Reflection.DispatchProxy.dll new file mode 100644 index 000000000000..674ced0460de Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Reflection.DispatchProxy.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Runtime.CompilerServices.Unsafe.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Runtime.CompilerServices.Unsafe.dll new file mode 100644 index 000000000000..c5ba4e4047a1 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Runtime.CompilerServices.Unsafe.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Security.Cryptography.Cng.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Security.Cryptography.Cng.dll new file mode 100644 index 000000000000..4f4c30e080bd Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Security.Cryptography.Cng.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Text.Encodings.Web.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Text.Encodings.Web.dll new file mode 100644 index 000000000000..6d2b207854ac Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Text.Encodings.Web.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Xml.ReaderWriter.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Xml.ReaderWriter.dll new file mode 100644 index 000000000000..022e63a21a86 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netfx/System.Xml.ReaderWriter.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Azure.Identity.BrokeredAuthentication.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Azure.Identity.BrokeredAuthentication.dll new file mode 100644 index 000000000000..4b4b2f2b663d Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Azure.Identity.BrokeredAuthentication.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Azure.Identity.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Azure.Identity.dll new file mode 100644 index 000000000000..5662a76ad958 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Azure.Identity.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll new file mode 100644 index 000000000000..f2955edfecb7 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.Identity.Client.Broker.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.Identity.Client.Broker.dll new file mode 100644 index 000000000000..3e0a147d4bcb Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.Identity.Client.Broker.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.Identity.Client.NativeInterop.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.Identity.Client.NativeInterop.dll new file mode 100644 index 000000000000..a7d555909366 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.Identity.Client.NativeInterop.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.IdentityModel.Abstractions.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.IdentityModel.Abstractions.dll new file mode 100644 index 000000000000..f793fd89bece Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/Microsoft.IdentityModel.Abstractions.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Buffers.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Buffers.dll new file mode 100644 index 000000000000..c517a3b62cc7 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Buffers.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Memory.Data.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Memory.Data.dll new file mode 100644 index 000000000000..6f2a3e0ad07f Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Memory.Data.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Memory.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Memory.dll new file mode 100644 index 000000000000..bdfc501e9647 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Memory.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Net.Http.WinHttpHandler.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Net.Http.WinHttpHandler.dll new file mode 100644 index 000000000000..8bd471e74c6e Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Net.Http.WinHttpHandler.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Private.ServiceModel.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Private.ServiceModel.dll new file mode 100644 index 000000000000..3f9f84edf0ed Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Private.ServiceModel.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.AccessControl.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.AccessControl.dll new file mode 100644 index 000000000000..36fb33af4590 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.AccessControl.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.Permissions.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.Permissions.dll new file mode 100644 index 000000000000..2a353ee22eec Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.Permissions.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.Principal.Windows.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.Principal.Windows.dll new file mode 100644 index 000000000000..19d0fc0e971c Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Security.Principal.Windows.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.ServiceModel.Primitives.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.ServiceModel.Primitives.dll new file mode 100644 index 000000000000..c1aa0a64f8f9 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.ServiceModel.Primitives.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Text.Json.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Text.Json.dll new file mode 100644 index 000000000000..fe2154a3bf3a Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Text.Json.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Threading.Tasks.Extensions.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Threading.Tasks.Extensions.dll new file mode 100644 index 000000000000..dfab23478ab4 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/System.Threading.Tasks.Extensions.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime.dll new file mode 100644 index 000000000000..70162a8713a2 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime_arm64.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime_arm64.dll new file mode 100644 index 000000000000..aca4cb32691f Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime_arm64.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime_x86.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime_x86.dll new file mode 100644 index 000000000000..24735b8531b8 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Az.Accounts/2.13.1/lib/netstandard2.0/msalruntime_x86.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Axiom.psm1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Axiom.psm1 new file mode 100644 index 000000000000..7f77b8495f27 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Axiom.psm1 @@ -0,0 +1,171 @@ +. $PSScriptRoot\Verify-Equal.ps1 + +. $PSScriptRoot\Verify-True.ps1 +. $PSScriptRoot\Verify-False.ps1 + +. $PSScriptRoot\Verify-Null.ps1 +. $PSScriptRoot\Verify-NotNull.ps1 + +. $PSScriptRoot\Verify-Same.ps1 +. $PSScriptRoot\Verify-NotSame.ps1 + +. $PSScriptRoot\Verify-Throw.ps1 + +. $PSScriptRoot\Verify-Type.ps1 + +. $PSScriptRoot\Verify-AssertionFailed.ps1 + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUKx2uYj0MytXdHO5iRpoT7ty7 +# NaaggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLW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LpB+G9guJmAcar7isgLyiImk8ZVgOYR6QW2Kw2ZU43qMIPUGc +# gTYZwqvaIaGCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1MzU3WjAjBgkqhkiG9w0BCQQx +# FgQUfeYHxAjIttG9WyykSLdhl/oOjM0wDQYJKoZIhvcNAQEBBQAEggEAlCZuJKvp +# K4KcTyHBAbCVUKljd5SZNSPoYXq78kT0H6KlJJNIX1wqND55APN5i6xGmKy+z0+a +# 38Whh2C6aaSimJz8HgouUuseOgWMykFFeZX/8jLUjNxQvLvWFCsYFnQMvu1Q6Cmb +# bB3l8Y11dacQvIWD7c/zanIBxD+ZMGh5rXCH4QDD5yEdYSJ/pmwpXetPMhPBKbKH +# ZhOUk1b48qawk+EC53RV/C5Tk7BjQdU5yOMiSFvb9VxND6RfPSIO5TG6k9SO05hx +# u/6mkwLvrAaQ+DYSZph9rw633D/cPOjvk/r9Ca2wBGIu+xeUNslNDThoiFzMAMXX +# 58KnQXxU6TXE5Q== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-AssertionFailed.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-AssertionFailed.ps1 new file mode 100644 index 000000000000..1f9590eafa13 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-AssertionFailed.ps1 @@ -0,0 +1,182 @@ +function Verify-AssertionFailed { + param ( + [Parameter(Mandatory = $true, ValueFromPipeline = $true)] + [ScriptBlock]$ScriptBlock + ) + + $assertionExceptionThrown = $false + $err = $null + try { + $null = & $ScriptBlock + } + catch [Exception] { + $assertionExceptionThrown = ($_.FullyQualifiedErrorId -eq 'PesterAssertionFailed') + $err = $_ + $err + } + + if (-not $assertionExceptionThrown) { + $result = if ($null -eq $err) { + "no assertion failure error was thrown!" + } + else { + "other error was thrown! $($err | Format-List -Force * | Out-String)" + } + throw [Exception]"Expected the script block { $ScriptBlock } to fail in Pester assertion, but $result" + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUc2TN0NaxHrK8KJf2TIetW/R4 +# 5nWggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ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zpvY97 +# mEghX/7ZHPlPncmb62IjOhNlC120g/HspQM1cpB38MebHgG7lHqawEBaL1RyEnos +# t1NITccAmaGCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1MzU4WjAjBgkqhkiG9w0BCQQx +# FgQUaUWDil7RtvIw26Q3NenyhUPGa3MwDQYJKoZIhvcNAQEBBQAEggEAZuxQLj/M +# f/bZpZruLVkbY2YqxOhel1DdEjMspKspWU0xm35L1R4aqasZT8IpPjSYOtqFm49q +# mifBRdDgeh54nLT23aLt6lzM4ZXRxgFmBqpOJgJnh8GabOZsvJOKYmd5mhZjvrA+ +# /UCDyjy1MQ1+E79BsRmGfb35i80eCnaC1h1OH7uv/6Lwr4Q2p4Dmhb8zHZzRL/Nk +# ftvg4/1+Klw0wJ+PMWyP4fBQZ8OqrordsqMqFZTVZNxS7MCmP4NEl4IJ0EgBSbOD +# R7RvG0x4aNKgrLkwXuKbVoqrbSEzr0baFU5vNHgaNuYesU2ES2G7WpFOM8EW0/dB +# 8LGKvQnJp5cUwQ== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Equal.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Equal.ps1 new file mode 100644 index 000000000000..2675c59994f2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Equal.ps1 @@ -0,0 +1,175 @@ +function Verify-Equal { + param ( + [Parameter(ValueFromPipeline = $true)] + $Actual, + [Parameter(Mandatory = $true, Position = 0)] + $Expected + ) + + if ($Expected -ne $Actual) { + $message = "Expected and actual values differ!`n" + + "Expected: '$Expected'`n" + + "Actual : '$Actual'" + if ($Expected -is [string] -and $Actual -is [string]) { + $message += "`nExpected length: $($Expected.Length)`nActual length: $($Actual.Length)" + } + throw [Exception]$message + } + + $Actual +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUAoDWcUTjSqrV7GQmvwRt2KVt +# isiggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZ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M6GCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1MzU4WjAjBgkqhkiG9w0BCQQx +# FgQUojlgyerWX/a8sg1S4Oi4vU+Y9MMwDQYJKoZIhvcNAQEBBQAEggEAYaSrFln0 +# ra+5s3yt+x4rNVkQ/plZ7dbPqs0Ok/YDSvU4jcDYvauRjrpXPbGeUzhhnw1NHKs+ +# PxZIBNJmPMnCvWDn1h0Z14YRaIuLAZHl4OaegA3mihLZQBif+RhWXsoR81yCzjsQ +# MHupbYkQOvqs6OilibNQOEebtEcnWwRE26+hXg6BZ6mJ9+SyDzfNrBbNTvotWH15 +# Uv+P143krXIMfna16GGWU8I80Vj/eGtfqtAn3uIUAjLunYvyQCUpetD5X2rlP4Zu +# Y9U/EaQVws7Wn0qL73+2G5TA5BYnAAmDDIKl+Wkux9P1qvEIpLZ2whzOXOpNeZuN +# HTzJksXFcHIcCA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-False.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-False.ps1 new file mode 100644 index 000000000000..1ef1790f5fa4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-False.ps1 @@ -0,0 +1,167 @@ +function Verify-False { + param ( + [Parameter(ValueFromPipeline = $true)] + $Actual + ) + + if ($Actual) { + throw [Exception]"Expected `$false but got '$Actual'." + } + + $Actual +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUExhsFHPLHbCUjGxFFITYdg0N +# 8gCggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZlHvN7axg+pCgdEJrtIyvhHPqXeE2j +# cdMrfmYY1lq2FBpELEW1imYlu5BnaJd/5IT7WjHL3LWx5Su9FkY5RwrA6+X78+j+ +# vKv00JtDjM0dT+4A/m65jXSywxa4YoGDqQ5n+BwDMQlWCzfu37sCAwEAAaOCAcUw +# ggHBMB8GA1UdIwQYMBaAFFrEuXsqCqOl6nEDwGD5LfZldQ5YMB0GA1Ud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gUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1MzU4WjAjBgkqhkiG9w0BCQQx +# FgQUSsRlqTMLiHQJ6X0SRX+i1cThXW0wDQYJKoZIhvcNAQEBBQAEggEAA7wcyVeJ +# W+CwVD334WchmB3J2DZOYKzLbvtpP2gon6U3MsdT4QrN0C+zs22hrxoB8XOl5+88 +# iYxJVn1EdOh5xS6dWS38Ay6OQ8GeOBL498zUz2PhB5GDKpOnkjemHy4TS78+BB0N +# fqvacXzOBI4EQsfCbidMWzOMneL3F4mxps7VRh4cnIaPlu7P2aaG/lUNlMxCBgd/ +# NKuIbyTv7P4+aVozhQRa4mz+Xqh35lT5nXejx3Kw+Vcu1jP4wJaWHMlyBz0CY0WU +# okb3BUQdU6l7AxnZSqz4j7+IcUrbts5egdWEZIy8f05AixS85duqQSkWXrgZgznc +# XVJyn3cdBKvpiw== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-NotNull.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-NotNull.ps1 new file mode 100644 index 000000000000..f0ce49769e7a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-NotNull.ps1 @@ -0,0 +1,167 @@ +function Verify-NotNull { + param ( + [Parameter(ValueFromPipeline = $true)] + $Actual + ) + + if ($null -eq $Actual) { + throw [Exception]"Expected not `$null but got `$null." + } + + $Actual +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoF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qE3RVHVUbndNaBvDLD4G0yxT0RSadHmjf8MlROO7NxF7 +# JU6KzK/2gX9rMfAQPq1Zy3ZQVMPCeBQW+46vtljig1hRp/gwfT9CswrTk27d7IUQ +# ciRMsYPPBwdt6ER9Jet+GCwE1cQNQ+axXfTdGl1cQ6CMu3mWFWSkJ973LsHlAvSi +# l8wk1cX7QztTOp1SyUKkMIjeDAD57uWKBgNueVUTrRenpUUS0f60ew9ikGTm/7yg +# Rh1E2D2UsYQdjVv9RJoWM11FQdC4Aw3CdUq6JSSXR+jYt5/jTk6s/rG1Ds+y2ij7 +# aDdQGJVldQY3PQ== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-NotSame.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-NotSame.ps1 new file mode 100644 index 000000000000..3cf3f0a325f3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-NotSame.ps1 @@ -0,0 +1,169 @@ +function Verify-NotSame { + param ( + [Parameter(ValueFromPipeline = $true)] + $Actual, + [Parameter(Mandatory = $true, Position = 0)] + $Expected + ) + + if ([object]::ReferenceEquals($Expected, $Actual)) { + throw [Exception]"Expected the objects to be different instance but they were the same instance." + } + + $Actual +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUkYEoXbmys+jj5k8OFworJ7Yu +# 4zeggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNl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65f/30TX7rRzOSFFmpANIPYQ3O +# AkmPwJWMZyy/L7bwIpeYsCoLL5AVxFXIgi//n0u54AIY0FdTWAoxnf5bn6b+y/eL +# zM/a/qEIGQ12n6JAX3n3t8Bc5y77g1t+hYrKODTzfwZLfQniSHCpg2WzRp+sORfq +# FEp5AAcxeLJqXg== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Null.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Null.ps1 new file mode 100644 index 000000000000..da9ffb21e7bc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Null.ps1 @@ -0,0 +1,167 @@ +function Verify-Null { + param ( + [Parameter(ValueFromPipeline = $true)] + $Actual + ) + + if ($null -ne $Actual) { + throw [Exception]"Expected `$null but got '$Actual'." + } + + $Actual +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUN+iTSinGoqa8A1+jmsVFSlAI +# EL+ggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQ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UpleAS3GPphs4 +# GN4CpaBXC1hl8FZAhFv02CH0sXBTAhpz96k1SnihIguSoA01t8bTPepL2CwMgtKL +# 4C9BxOkT2wTFXl+EOxi/HTBRtY/BWWitSyb3AbhdFoAIVmYjkhXTB662JihLF2rO +# s9wDlOcrxkc5PvFUdFNRs1YgDphxcwPKm7yuN0lynd5yl/LSKtl/aooV+R37ExC9 +# 2nYigyEJWNtSwZgWuIZLg08pq3gis4YyFjeD60R0E87TVc/zvL1XT2E0X7i1aslb +# tCzF5m/Sq6GCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1MzU5WjAjBgkqhkiG9w0BCQQx +# FgQUTSwIm78M/ijOlIdyW6HIW0AyoJAwDQYJKoZIhvcNAQEBBQAEggEAJZfUKUxv +# ALomFjq470qDrfgTULoW0a2ITjoP37VfOMoinQzChUOH207E2EBVT5mFR8ZL79fz +# /Axjwf5mpyX08yNbOUuoQhOvLAVbEgEnIeP2Je3McZEyrpG5GlsU9/kssHeVY0Bm +# q2FSyr7RVGuza41qR1jOhbG1ZbWobsTVcLnREqTjU1S3niErczTUQmZ4xgkYE8jP +# KRfugbpPazVyC28hixmSPGlNtnHKFB7GXz6yqldQRPS2TYL4C4O/puVOKEIa0qb9 +# f/XzVgLgtlpBU5uc5pHlQlF+MlGZUtYW4v5NzOtZXUaO/nx8Kw0vDjCU7uYOZXnM +# GuMFf1ADT8O29Q== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Same.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Same.ps1 new file mode 100644 index 000000000000..a97b8372c8bd --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Same.ps1 @@ -0,0 +1,169 @@ +function Verify-Same { + param ( + [Parameter(ValueFromPipeline = $true)] + $Actual, + [Parameter(Mandatory = $true, Position = 0)] + $Expected + ) + + if (-not [object]::ReferenceEquals($Expected, $Actual)) { + throw [Exception]"Expected the objects to be the same instance but they were not." + } + + $Actual +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU5ixZyRe4q3esHS67yYfIaFCp +# LO+ggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9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yh5YsCY1Y3G2sFZA97v7WDuJ/l +# cUdRcUpOunxbBZJ1oFO5xYvCl401h7XgfcgUigm4ymqNIuHRdzjFIg8aGxU4IvP3 +# uY6rIEQcNqGCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1MzU5WjAjBgkqhkiG9w0BCQQx +# FgQUC8ADQLCoEryfLavVpHmmmW2FZJswDQYJKoZIhvcNAQEBBQAEggEAfP+nztQn +# doSH4+DSPjaf8R7SIL0Lmq0klGzn+LY+2ESBO6D8See6fhoiydfEq3nQT8uhPQdB +# wRyns/1HsmGbg62GUXFdDtK0vTSFaOuizjwz9TizA70Bx1LsDk1RS87rqVIyvHYf +# tV3ie/oARzmEvHbZWQ4neyodXMNFTEVWeyBUk1ZKIK2d1rkMS8uGaoHhCFTLWtSX +# 6xpnijRMyAaU0yXOp4YaJVdkS9S6Q7BLwcCEHdGiOejXFDWBUYrVqvlO9LVnBx+s +# R4YPqCPQZpxPckOJ0RoCeUWaav5WYf7+b6kCQbKl6P74yuGrXZ+ZkZIQuMuJJxCY +# 7Ul3UWR0udwgvg== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Throw.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Throw.ps1 new file mode 100644 index 000000000000..bbe45302d615 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Throw.ps1 @@ -0,0 +1,174 @@ +function Verify-Throw { + param ( + [Parameter(Mandatory = $true, ValueFromPipeline = $true)] + [ScriptBlock]$ScriptBlock + ) + + $exceptionThrown = $false + try { + $null = & $ScriptBlock + } + catch { + $exceptionThrown = $true + $_ + } + + if (-not $exceptionThrown) { + throw [Exception]"An exception was expected, but no exception was thrown!" + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUh3v8Ta4eiyAQ1l1juU1xHkjy +# CPyggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZlHvN7axg+pCgdEJrtIyvhHPqXeE2j +#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CQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDAwWjAjBgkqhkiG9w0BCQQx +# FgQUWXmNfUrnpRMMGTAhl5E3Tk1RFH4wDQYJKoZIhvcNAQEBBQAEggEAkFtltFQm +# YPn04A3ty9Hx8zmq3pmcdz7wSCq4hp3PVeYjRF5r36EngzpnPTcA8mXDYP3sjA/B +# siokJao0Mc8Zpl5moX5T00RFCcsTeOj9mfQAxUiKzDr72CiUM44rleqaUSx/nlf3 +# FFuJVtircWr1ZVSIZtFVmy60rVYyujS8irolB67iT1Ew0HzEc+X4meidmQaMmGME +# YV4unSwFKpVAmHu4abW+8EcY/qE1UPNahVASN+6o/7MC5npcPk8aH3wDPnnaJIpJ +# nSA475iw6llu7tNel+OJX7Bnl2XoIV75bI8FGuZI/rmEWfkxcnF1eZhXJZGqVLa7 +# G0rAwtsDw7/4Ug== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-True.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-True.ps1 new file mode 100644 index 000000000000..c115daf62643 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-True.ps1 @@ -0,0 +1,167 @@ +function Verify-True { + param ( + [Parameter(ValueFromPipeline = $true)] + $Actual + ) + + if (-not $Actual) { + throw [Exception]"Expected `$true but got '$Actual'." + } + + $Actual +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUWug5cBcRTOGv0wBtXiiUo3tO +# IeqggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZlHvN7axg+pCgdEJrtIyvhHPqXeE2j +# cdMrfmYY1lq2FBpELEW1imYlu5BnaJd/5IT7WjHL3LWx5Su9FkY5RwrA6+X78+j+ +# vKv00JtDjM0dT+4A/m65jXSywxa4YoGDqQ5n+BwDMQlWCzfu37sCAwEAAaOCAcUw +# ggHBMB8GA1UdIwQYMBaAFFrEuXsqCqOl6nEDwGD5LfZldQ5YMB0GA1UdDgQWBBRE +# 05R/U5mVzc4vKq4rvKyyPm12E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MQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDAwWjAjBgkqhkiG9w0BCQQx +# FgQUSgfYEJEFJTiPcpKSor96ZNAIGA4wDQYJKoZIhvcNAQEBBQAEggEAh0pfZ/NG +# sK7yHfn3jfWH8WJV/9JyNJ9CkZsSza+sXPWgizyUVaZnuAnlAUkoBviv01p78AuM +# abHKOWRaCaCPvvF5mcxVArmOhREZoij+47ZZbLAHHKq/RPmLrPdBcdiwWz8PzLwD +# Hr/VPMAr+VVuCKItWdhUmqjyrSgZe4yNZ8GgEK8w9etpyJFhY1Uq0192fnGlfRlz +# BmQhk8Ici4ov2e4N5rcUyG1vSa3jlh2xlq+GEPcD9SSKLBymLiC8R2KisubFzGwN +# 0I2MQF4XB3QDE0mqK2K8SqbgdiB+tg67AEZT4S8LzbcjBF+fW085cLT86ftJfuvK +# nN2POafbbbRvlA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Type.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Type.ps1 new file mode 100644 index 000000000000..045de9183429 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Axiom/Verify-Type.ps1 @@ -0,0 +1,176 @@ +function Verify-Type { + param ( + [Parameter(ValueFromPipeline = $true)] + $Actual, + [Parameter(Mandatory = $true, Position = 0)] + [Type]$Expected + ) + + if ($Actual -isnot $Expected) { + $message = "Expected value to be of type $($Expected.FullName)" + $Actual = "but got " + $(if ($null -eq $Actual) { + "''" + } + else { + "'$($Actual.GetType().FullName)'" + }) + throw [Exception]"$message, $Actual" + } + + $Actual +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcC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3mDv8K8wDQYJKoZIhvcNAQEBBQAEggEAMIT1AJN3 +# 3eedJDUPO5Ebd84iOGTOzig8s6pTZPJT5w/62AHLRTy4LDQepkTK0B8flLwxKMa4 +# WFtpB9JncMyXLkcocfICaEtbjLIwkZFnSePY0Th4/bMIuwhNm1QcbuMiIrStZ7WB +# +FNbEHZdPuwgQI75a4YYrocGK6QtfvxIhPeKZ4mGaRaF9Vp81i9b0H3EqMU8659a +# sPkWfDgle7Q42oqx4GMjQcqoualsJ9lGK/xQ3dBZYr5fZCFSmBcpQQUoa3pYqoOY +# 4Vbct7gncB00Iu8OFXtyt1n+IDPAql/NZpawBj/gwgH0XDfagRQ5/KIuSsFJAG88 +# VcgQFeijaIdf2g== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Format/Format.psm1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Format/Format.psm1 new file mode 100644 index 000000000000..6ffb3c9f5c7f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/Format/Format.psm1 @@ -0,0 +1,360 @@ +Import-Module $PSScriptRoot\..\TypeClass\TypeClass.psm1 -DisableNameChecking + +function Format-Collection ($Value, [switch]$Pretty) { + $Limit = 10 + $separator = ', ' + if ($Pretty) { + $separator = ",`n" + } + #$count = $Value.Count + #$trimmed = $count -gt $Limit + '@(' + (($Value | Select -First $Limit | % { Format-Nicely -Value $_ -Pretty:$Pretty }) -join $separator ) + <# $(if ($trimmed) {' +' + [string]($count-$limit)}) + #> ')' +} + +function Format-Object ($Value, $Property, [switch]$Pretty) { + if ($null -eq $Property) { + $Property = $Value.PSObject.Properties | Select-Object -ExpandProperty Name + } + $valueType = Get-ShortType $Value + $valueFormatted = ([string]([PSObject]$Value | Select-Object -Property $Property)) + + if ($Pretty) { + $margin = " " + $valueFormatted = $valueFormatted ` + -replace '^@{', "@{`n$margin" ` + -replace '; ', ";`n$margin" ` + -replace '}$', "`n}" ` + + } + + $valueFormatted -replace "^@", $valueType +} + +function Format-Null { + '$null' +} + +function Format-String ($Value) { + if ('' -eq $Value) { + return '' + } + + "'$Value'" +} + +function Format-Date ($Value) { + $Value.ToString('o') +} + +function Format-Boolean ($Value) { + '$' + $Value.ToString().ToLower() +} + +function Format-ScriptBlock ($Value) { + '{' + $Value + '}' +} + +function Format-Number ($Value) { + [string]$Value +} + +function Format-Hashtable ($Value) { + $head = '@{' + $tail = '}' + + $entries = $Value.Keys | sort | foreach { + $formattedValue = Format-Nicely $Value.$_ + "$_=$formattedValue" } + + $head + ( $entries -join '; ') + $tail +} + +function Format-Dictionary ($Value) { + $head = 'Dictionary{' + $tail = '}' + + $entries = $Value.Keys | sort | foreach { + $formattedValue = Format-Nicely $Value.$_ + "$_=$formattedValue" } + + $head + ( $entries -join '; ') + $tail +} + +function Format-Nicely ($Value, [switch]$Pretty) { + if ($null -eq $Value) { + return Format-Null -Value $Value + } + + if ($Value -is [bool]) { + return Format-Boolean -Value $Value + } + + if ($Value -is [string]) { + return Format-String -Value $Value + } + + if ($Value -is [DateTime]) { + return Format-Date -Value $Value + } + + if ($value -is [Type]) { + return '[' + (Format-Type -Value $Value) + ']' + } + + if (Is-DecimalNumber -Value $Value) { + return Format-Number -Value $Value + } + + if (Is-ScriptBlock -Value $Value) { + return Format-ScriptBlock -Value $Value + } + + if (Is-Value -Value $Value) { + return $Value + } + + if (Is-Hashtable -Value $Value) { + # no advanced formatting of objects in the first version, till I balance it + return [string]$Value + #return Format-Hashtable -Value $Value + } + + if (Is-Dictionary -Value $Value) { + # no advanced formatting of objects in the first version, till I balance it + return [string]$Value + #return Format-Dictionary -Value $Value + } + + if (Is-Collection -Value $Value) { + return Format-Collection -Value $Value -Pretty:$Pretty + } + + # no advanced formatting of objects in the first version, till I balance it + return [string]$Value + # Format-Object -Value $Value -Property (Get-DisplayProperty $Value) -Pretty:$Pretty +} + +function Sort-Property ($InputObject, [string[]]$SignificantProperties, $Limit = 4) { + + $properties = @($InputObject.PSObject.Properties | + where { $_.Name -notlike "_*"} | + select -expand Name | + sort) + $significant = @() + $rest = @() + foreach ($p in $properties) { + if ($significantProperties -contains $p) { + $significant += $p + } + else { + $rest += $p + } + } + + #todo: I am assuming id, name properties, so I am just sorting the selected ones by name. + (@($significant | sort) + $rest) | Select -First $Limit + +} + +function Get-DisplayProperty ($Value) { + Sort-Property -InputObject $Value -SignificantProperties 'id', 'name' +} + +function Get-ShortType ($Value) { + if ($null -ne $value) { + $type = Format-Type $Value.GetType() + # PSCustomObject serializes to the whole type name on normal PS but to + # just PSCustomObject on PS Core + + $type ` + -replace "^System\." ` + -replace "^Management\.Automation\.PSCustomObject$", "PSObject" ` + -replace "^PSCustomObject$", "PSObject" ` + -replace "^Object\[\]$", "collection" ` + + } + else { + Format-Type $null + } +} + +function Format-Type ([Type]$Value) { + if ($null -eq $Value) { + return '' + } + + [string]$Value +} + + +Export-ModuleMember -Function @( + 'Format-Collection' + 'Format-Object' + 'Format-Null' + 'Format-Boolean' + 'Format-String' + 'Format-Date' + 'Format-ScriptBlock' + 'Format-Number' + 'Format-Hashtable' + 'Format-Dictionary' + 'Format-Type' + 'Format-Nicely' + 'Get-DisplayProperty' + 'Get-ShortType' +) + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUjtC16cvZvdBCZkGxpnItZuwf +# swmggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhE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oXPnzAu1qzbgBma5gu +# Empq/eToRWq2aSpbQ2/OXmihYkEk5evcAOJQ/ZELJavL6cuqAXPppt5IoVpZSYIB +# 2QIyML62i19OJg== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/TypeClass/TypeClass.psm1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/TypeClass/TypeClass.psm1 new file mode 100644 index 000000000000..28c42419c0cb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Dependencies/TypeClass/TypeClass.psm1 @@ -0,0 +1,196 @@ +function Is-Value ($Value) { + $Value = $($Value) + $Value -is [ValueType] -or $Value -is [string] -or $value -is [scriptblock] +} + +function Is-Collection ($Value) { + # check for value types and strings explicitly + # because otherwise it does not work for decimal + # so let's skip all values we definitely know + # are not collections + if ($Value -is [ValueType] -or $Value -is [string]) { + return $false + } + + -not [object]::ReferenceEquals($Value, $($Value)) +} + +function Is-ScriptBlock ($Value) { + $Value -is [ScriptBlock] +} + +function Is-DecimalNumber ($Value) { + $Value -is [float] -or $Value -is [single] -or $Value -is [double] -or $Value -is [decimal] +} + +function Is-Hashtable ($Value) { + $Value -is [hashtable] +} + +function Is-Dictionary ($Value) { + $Value -is [System.Collections.IDictionary] +} + + +function Is-Object ($Value) { + # here we need to approximate that that object is not value + # or any special category of object, so other checks might + # need to be added + + -not ($null -eq $Value -or (Is-Value -Value $Value) -or (Is-Collection -Value $Value)) +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUICiyjxBewBLZ6r+DoKQLGcVi +# QMqggheFMIIFDjCCA/agAwIBAgIQCIQ1O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4zaQ9FbQ+fsoN/RetoqEwJ/CpIQfUFZYJGKbq86 +# eVA2Pc0olG6hC8W7EiTVJAP3N5nwaY73SzphYncsh7nuFNIpb/b/V/HmULhO7lG8 +# kvvHBuakspeT5mlRz5MNu9fT27K2v02YAQjtCzT1+0rTtjFxW7RRXVREJPmnMFX8 +# 2mZqn9RbEEU8VJAl8/Pwsrm9CZUGP9OuFE6rZBjz+R7n+glvhXPBlh9k3UpdAAjH +# Je+NF9OTIreZKg== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Be.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Be.ps1 new file mode 100644 index 000000000000..d1da4c558c98 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Be.ps1 @@ -0,0 +1,477 @@ +#Be +function Should-Be ($ActualValue, $ExpectedValue, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Compares one object with another for equality +and throws if the two objects are not the same. + +.EXAMPLE +$actual = "Actual value" +PS C:\>$actual | Should -Be "actual value" + +This test will pass. -Be is not case sensitive. +For a case sensitive assertion, see -BeExactly. + +.EXAMPLE +$actual = "Actual value" +PS C:\>$actual | Should -Be "not actual value" + +This test will fail, as the two strings are not identical. +#> + [bool] $succeeded = ArraysAreEqual $ActualValue $ExpectedValue + + if ($Negate) { + $succeeded = -not $succeeded + } + + $failureMessage = '' + + if (-not $succeeded) { + if ($Negate) { + $failureMessage = NotShouldBeFailureMessage -ActualValue $ActualValue -Expected $ExpectedValue -Because $Because + } + else { + $failureMessage = ShouldBeFailureMessage -ActualValue $ActualValue -Expected $ExpectedValue -Because $Because + } + } + + return & $SafeCommands['New-Object'] psobject -Property @{ + Succeeded = $succeeded + FailureMessage = $failureMessage + } +} + +function ShouldBeFailureMessage($ActualValue, $ExpectedValue, $Because) { + # This looks odd; it's to unroll single-element arrays so the "-is [string]" expression works properly. + $ActualValue = $($ActualValue) + $ExpectedValue = $($ExpectedValue) + + if (-not (($ExpectedValue -is [string]) -and ($ActualValue -is [string]))) { + return "Expected $(Format-Nicely $ExpectedValue),$(Format-Because $Because) but got $(Format-Nicely $ActualValue)." + } + <#joining the output strings to a single string here, otherwise I get + Cannot find an overload for "Exception" and the argument count: "4". + at line: 63 in C:\Users\nohwnd\github\pester\Functions\Assertions\Should.ps1 + + This is a quickwin solution, doing the join in the Should directly might be better + way of doing this. But I don't want to mix two problems. + #> + (Get-CompareStringMessage -Expected $ExpectedValue -Actual $ActualValue -Because $Because) -join "`n" +} + +function NotShouldBeFailureMessage($ActualValue, $ExpectedValue, $Because) { + return "Expected $(Format-Nicely $ExpectedValue) to be different from the actual value,$(Format-Because $Because) but got the same value." +} + +Add-AssertionOperator -Name Be ` + -InternalName Should-Be ` + -Test ${function:Should-Be} ` + -Alias 'EQ' ` + -SupportsArrayInput + +#BeExactly +function Should-BeExactly($ActualValue, $ExpectedValue, $Because) { + <# +.SYNOPSIS +Compares one object with another for equality and throws if the +two objects are not the same. This comparison is case sensitive. + +.EXAMPLE +$actual = "Actual value" +PS C:\>$actual | Should -Be "Actual value" + +This test will pass. The two strings are identical. + +.EXAMPLE +$actual = "Actual value" +PS C:\>$actual | Should -Be "actual value" + +This test will fail, as the two strings do not match case sensitivity. +#> + [bool] $succeeded = ArraysAreEqual $ActualValue $ExpectedValue -CaseSensitive + + if ($Negate) { + $succeeded = -not $succeeded + } + + $failureMessage = '' + + if (-not $succeeded) { + if ($Negate) { + $failureMessage = NotShouldBeExactlyFailureMessage -ActualValue $ActualValue -ExpectedValue $ExpectedValue -Because $Because + } + else { + $failureMessage = ShouldBeExactlyFailureMessage -ActualValue $ActualValue -ExpectedValue $ExpectedValue -Because $Because + } + } + + return New-Object psobject -Property @{ + Succeeded = $succeeded + FailureMessage = $failureMessage + } +} + +function ShouldBeExactlyFailureMessage($ActualValue, $ExpectedValue, $Because) { + # This looks odd; it's to unroll single-element arrays so the "-is [string]" expression works properly. + $ActualValue = $($ActualValue) + $ExpectedValue = $($ExpectedValue) + + if (-not (($ExpectedValue -is [string]) -and ($ActualValue -is [string]))) { + return "Expected exactly $(Format-Nicely $ExpectedValue),$(Format-Because $Because) but got $(Format-Nicely $ActualValue)." + } + <#joining the output strings to a single string here, otherwise I get + Cannot find an overload for "Exception" and the argument count: "4". + at line: 63 in C:\Users\nohwnd\github\pester\Functions\Assertions\Should.ps1 + + This is a quickwin solution, doing the join in the Should directly might be better + way of doing this. But I don't want to mix two problems. + #> + (Get-CompareStringMessage -Expected $ExpectedValue -Actual $ActualValue -CaseSensitive -Because $Because) -join "`n" +} + +function NotShouldBeExactlyFailureMessage($ActualValue, $ExpectedValue, $Because) { + return "Expected $(Format-Nicely $ExpectedValue) to be different from the actual value,$(Format-Because $Because) but got exactly the same value." +} + +Add-AssertionOperator -Name BeExactly ` + -InternalName Should-BeExactly ` + -Test ${function:Should-BeExactly} ` + -Alias 'CEQ' ` + -SupportsArrayInput + + +#common functions +function Get-CompareStringMessage { + param( + [Parameter(Mandatory = $true)] + [AllowEmptyString()] + [String]$ExpectedValue, + [Parameter(Mandatory = $true)] + [AllowEmptyString()] + [String]$Actual, + [switch]$CaseSensitive, + $Because + ) + + $ExpectedValueLength = $ExpectedValue.Length + $actualLength = $actual.Length + $maxLength = $ExpectedValueLength, $actualLength | & $SafeCommands['Sort-Object'] -Descending | & $SafeCommands['Select-Object'] -First 1 + + $differenceIndex = $null + for ($i = 0; $i -lt $maxLength -and ($null -eq $differenceIndex); ++$i) { + $differenceIndex = if ($CaseSensitive -and ($ExpectedValue[$i] -cne $actual[$i])) { + $i + } + elseif ($ExpectedValue[$i] -ne $actual[$i]) { + $i + } + } + + if ($null -ne $differenceIndex) { + "Expected strings to be the same,$(Format-Because $Because) but they were different." + + if ($ExpectedValue.Length -ne $actual.Length) { + "Expected length: $ExpectedValueLength" + "Actual length: $actualLength" + "Strings differ at index $differenceIndex." + } + else { + "String lengths are both $ExpectedValueLength." + "Strings differ at index $differenceIndex." + } + $ellipsis = "..." + $excerptSize = 5; + "Expected: '{0}'" -f ( $ExpectedValue | Format-AsExcerpt -startIndex $differenceIndex -excerptSize $excerptSize -excerptMarker $ellipsis | Expand-SpecialCharacters ) + "But was: '{0}'" -f ( $actual | Format-AsExcerpt -startIndex $differenceIndex -excerptSize $excerptSize -excerptMarker $ellipsis | Expand-SpecialCharacters ) + + } +} +function Format-AsExcerpt { + param ( + [Parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] + [AllowEmptyString()] + [string]$InputObject, + [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)] + [int]$startIndex, + [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)] + [int]$excerptSize, + [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)] + [string]$excerptMarker + ) + $InputObjectDisplay="" + $displayDifferenceIndex = $startIndex - $excerptSize + $maximumStringLength = 40 + $maximumSubstringLength = $excerptSize * 2 + $substringLength = $InputObject.Length - $displayDifferenceIndex + if ($substringLength -gt $maximumSubstringLength) { + $substringLength = $maximumSubstringLength + } + if ($displayDifferenceIndex + $substringLength -lt $InputObject.Length) { + $endExcerptMarker = $excerptMarker + } + if ($displayDifferenceIndex -lt 0) { + $displayDifferenceIndex = 0 + } + if ($InputObject.length -ge $maximumStringLength) { + if ($displayDifferenceIndex -ne 0) { + $InputObjectDisplay = $excerptMarker + } + $InputObjectDisplay += $InputObject.Substring($displayDifferenceIndex, $substringLength) + $endExcerptMarker + } + else { + $InputObjectDisplay = $InputObject + } + $InputObjectDisplay +} + + + +function Expand-SpecialCharacters { + param ( + [Parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] + [AllowEmptyString()] + [string[]]$InputObject) + process { + $InputObject -replace "`n", "\n" -replace "`r", "\r" -replace "`t", "\t" -replace "`0", "\0" -replace "`b", "\b" + } +} + +function ArraysAreEqual { + param ( + [object[]] $First, + [object[]] $Second, + [switch] $CaseSensitive, + [int] $RecursionDepth = 0, + [int] $RecursionLimit = 100 + ) + $RecursionDepth++ + + if ($RecursionDepth -gt $RecursionLimit) { + throw "Reached the recursion depth limit of $RecursionLimit when comparing arrays $First and $Second. Is one of your arrays cyclic?" + } + + # Do not remove the subexpression @() operators in the following two lines; doing so can cause a + # silly error in PowerShell v3. (Null Reference exception from the PowerShell engine in a + # method called CheckAutomationNullInCommandArgumentArray(System.Object[]) ). + $firstNullOrEmpty = ArrayOrSingleElementIsNullOrEmpty -Array @($First) + $secondNullOrEmpty = ArrayOrSingleElementIsNullOrEmpty -Array @($Second) + + if ($firstNullOrEmpty -or $secondNullOrEmpty) { + return $firstNullOrEmpty -and $secondNullOrEmpty + } + + if ($First.Count -ne $Second.Count) { + return $false + } + + for ($i = 0; $i -lt $First.Count; $i++) { + if ((IsArray $First[$i]) -or (IsArray $Second[$i])) { + if (-not (ArraysAreEqual -First $First[$i] -Second $Second[$i] -CaseSensitive:$CaseSensitive -RecursionDepth $RecursionDepth -RecursionLimit $RecursionLimit)) { + return $false + } + } + else { + if ($CaseSensitive) { + $comparer = { param($Actual, $Expected) $Expected -ceq $Actual } + } + else { + $comparer = { param($Actual, $Expected) $Expected -eq $Actual } + } + + if (-not (& $comparer $First[$i] $Second[$i])) { + return $false + } + } + } + + return $true +} + +function ArrayOrSingleElementIsNullOrEmpty { + param ([object[]] $Array) + + return $null -eq $Array -or $Array.Count -eq 0 -or ($Array.Count -eq 1 -and $null -eq $Array[0]) +} + +function IsArray { + param ([object] $InputObject) + + # Changing this could cause infinite recursion in ArraysAreEqual. + # see https://github.com/pester/Pester/issues/785#issuecomment-322794011 + return $InputObject -is [Array] +} + +function ReplaceValueInArray { + param ( + [object[]] $Array, + [object] $Value, + [object] $NewValue + ) + + foreach ($object in $Array) { + if ($Value -eq $object) { + $NewValue + } + elseif (@($object).Count -gt 1) { + ReplaceValueInArray -Array @($object) -Value $Value -NewValue $NewValue + } + else { + $object + } + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUA9c23VB2YZe72DevXxLvvut/ +# vfKggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZlHvN7axg+pCgdEJrtIyvhHPqXeE2j +# cdMrfmYY1lq2FBpELEW1imYlu5BnaJd/5IT7WjHL3LWx5Su9FkY5RwrA6+X78+j+ +# vKv00JtDjM0dT+4A/m65jXSywxa4YoGDqQ5n+BwDMQlWCzfu37sCAwEAAaOCAcUw +# ggHBMB8GA1UdIwQYMBaAFFrEuXsqCqOl6nEDwGD5LfZldQ5YMB0GA1UdDgQWBBRE +# 05R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IhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDA5WjAjBgkqhkiG9w0BCQQx +# FgQUjSdfk6pWiqmNAgjm5zAhchfZgOEwDQYJKoZIhvcNAQEBBQAEggEAJzDUojio +# u8bWu1Jd389pJCo7Fnba9IbO7M8LOTcWAIgvnNeHVxIRAM5C8EEmAVsGOyiY9YxX +# pp2cYjYAeunXVR7/zKSIKrDdxyXqAJZj6zZZdmxZqlJfcJ9eRz1FPB/mUbjGEXeg +# Seh6QxTQrINHM5PcGKFxyJ+z+Z0cFYJTyEOEkyyYDuW2CDLjj03Scx9TwrEjH8AA +# rSjAFrI1AM6Gdt6SZk8MqrO93IwvZrJTn3IVQ2RTw/5hJso72K6Jlx7lcFZUZUfs +# kukurKQ2xco68/RQP55yzPPakSYcf9E97YfrWPdOgIG6tN83wDmeVsS7XxbsBJ9P +# o5IEp8tZn7s2gg== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeGreaterThan.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeGreaterThan.ps1 new file mode 100644 index 000000000000..ba0228ed7ada --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeGreaterThan.ps1 @@ -0,0 +1,232 @@ +function Should-BeGreaterThan($ActualValue, $ExpectedValue, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Asserts that a number (or other comparable value) is greater than an expected value. +Uses PowerShell's -gt operator to compare the two values. + +.EXAMPLE +2 | Should -BeGreaterThan 0 +This test passes, as PowerShell evaluates `2 -gt 0` as true. +#> + if ($Negate) { + return Should-BeLessOrEqual -ActualValue $ActualValue -ExpectedValue $ExpectedValue -Negate:$false -Because $Because + } + + if ($ActualValue -le $ExpectedValue) { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected the actual value to be greater than $(Format-Nicely $ExpectedValue),$(Format-Because $Because) but got $(Format-Nicely $ActualValue)." + } + } + + return New-Object psobject -Property @{ + Succeeded = $true + } +} + + +function Should-BeLessOrEqual($ActualValue, $ExpectedValue, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Asserts that a number (or other comparable value) is lower than, or equal to an expected value. +Uses PowerShell's -le operator to compare the two values. + +.EXAMPLE +1 | Should -BeLessOrEqual 10 +This test passes, as PowerShell evaluates `1 -le 10` as true. + +.EXAMPLE +10 | Should -BeLessOrEqual 10 +This test also passes, as PowerShell evaluates `10 -le 10` as true. +#> + if ($Negate) { + return Should-BeGreaterThan -ActualValue $ActualValue -ExpectedValue $ExpectedValue -Negate:$false -Because $Because + } + + if ($ActualValue -gt $ExpectedValue) { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected the actual value to be less than or equal to $(Format-Nicely $ExpectedValue),$(Format-Because $Because) but got $(Format-Nicely $ActualValue)." + } + } + + return New-Object psobject -Property @{ + Succeeded = $true + } +} + +Add-AssertionOperator -Name BeGreaterThan ` + -InternalName Should-BeGreaterThan ` + -Test ${function:Should-BeGreaterThan} ` + -Alias 'GT' + +Add-AssertionOperator -Name BeLessOrEqual ` + -InternalName Should-BeLessOrEqual ` + -Test ${function:Should-BeLessOrEqual} ` + -Alias 'LE' + +#keeping tests happy +function ShouldBeGreaterThanFailureMessage() { +} +function NotShouldBeGreaterThanFailureMessage() { +} + +function ShouldBeLessOrEqualFailureMessage() { +} +function NotShouldBeLessOrEqualFailureMessage() { +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUNzhWrZj1EvL4bWFmv5tSKNnQ +# sFyggheFMIIFDjC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Z4UjNtMzwrAKZ0C7RW7Dnb/GY3PXt/MhVGFJig9Mb6QgQIhGNGnk1 +# 9fTy53dZfzG9K6DaUtmvUFiEwnRNuV1tzq1GCPZ8qVc7H7ohr3HhcsWbBOX9pwQg +# 7WgVOs8Ksbgq8eyOk6U6jOiMrBgVz0IXTrNKh3jXu8iyRpUVxHez+MjShSsmAE6N +# sj8NOVJY0vTnpki4SkzJZ7BxzZX6B/sdD2pWhwtvoCycAGDZIUe0QoiPEp92RbnW +# aYFkb2ubeIeiuQ== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeIn.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeIn.ps1 new file mode 100644 index 000000000000..dcce517a7fd4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeIn.ps1 @@ -0,0 +1,199 @@ +function Should-BeIn($ActualValue, $ExpectedValue, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Asserts that a collection of values contain a specific value. +Uses PowerShell's -contains operator to confirm. + +.EXAMPLE +1 | Should -BeIn @(1,2,3,'a','b','c') +This test passes, as 1 exists in the provided collection. +#> + [bool] $succeeded = $ExpectedValue -contains $ActualValue + if ($Negate) { + $succeeded = -not $succeeded + } + + if (-not $succeeded) { + if ($Negate) { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected collection $(Format-Nicely $ExpectedValue) to not contain $(Format-Nicely $ActualValue),$(Format-Because $Because) but it was found." + } + } + else { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected collection $(Format-Nicely $ExpectedValue) to contain $(Format-Nicely $ActualValue),$(Format-Because $Because) but it was not found." + } + } + } + + return New-Object psobject -Property @{ + Succeeded = $true + } +} + +Add-AssertionOperator -Name BeIn ` + -InternalName Should-BeIn ` + -Test ${function:Should-BeIn} + + +function ShouldBeInFailureMessage() { +} +function NotShouldBeInFailureMessage() { +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUs/T5jprtM3OEJ8vvRjOKIfeX +# Da6ggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZlHvN7axg+pCgdEJrtIyvhHPqXeE2j +# cdMrfmYY1lq2FBpELEW1imYlu5BnaJd/5IT7WjHL3LWx5Su9FkY5RwrA6+X78+j+ +# vKv00JtDjM0dT+4A/m65jXSywxa4YoGDqQ5n+BwDMQlWCzfu37sCAwEAAaOCAcUw +# ggHBMB8GA1UdIwQYMBaAFFrEuXsqCqOl6nEDwGD5LfZldQ5YMB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gUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDA5WjAjBgkqhkiG9w0BCQQx +# FgQUkGIScJcVYA9B90G48An3fNkLwiEwDQYJKoZIhvcNAQEBBQAEggEAjqWALKUX +# ks5SfcWZghTE0bZpHUKpnWV5QnlCHyyAL+YpPdlMI+fnh/FveBOVsQGcihuwy3GL +# 5CFYfAkSrABhk0G6iAgmgycRwF3K8WWjhrMeTYd615yU6RMRv7SUTKoy/una/oCq +# IzA5VPwhDtXIUh+ul6Trck6rF20N+5OapN5B3j03t1FsULZ0gaCtRVAx+UNRnV1p +# zn0SXwnrhAWiZNnCSxmrbphlrWfcdxLrztKs6XcdMXgGrcSio3IsE976DwSijJV9 +# S1aI1uXQXUXIX7NLWqfcFZuZL13GjFY4vySIyFyo4nLOCbxrwBsJA04stmNbskjK +# OIgkf7DuiCpTCA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeLessThan.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeLessThan.ps1 new file mode 100644 index 000000000000..0b8ceaf72d0c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeLessThan.ps1 @@ -0,0 +1,232 @@ +function Should-BeLessThan($ActualValue, $ExpectedValue, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Asserts that a number (or other comparable value) is lower than an expected value. +Uses PowerShell's -lt operator to compare the two values. + +.EXAMPLE +1 | Should -BeLessThan 10 +This test passes, as PowerShell evaluates `1 -lt 10` as true. +#> + if ($Negate) { + return Should-BeGreaterOrEqual -ActualValue $ActualValue -ExpectedValue $ExpectedValue -Negate:$false -Because $Because + } + + if ($ActualValue -ge $ExpectedValue) { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected the actual value to be less than $(Format-Nicely $ExpectedValue),$(Format-Because $Because) but got $(Format-Nicely $ActualValue)." + } + } + + return New-Object psobject -Property @{ + Succeeded = $true + } +} + + +function Should-BeGreaterOrEqual($ActualValue, $ExpectedValue, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Asserts that a number (or other comparable value) is greater than or equal to an expected value. +Uses PowerShell's -ge operator to compare the two values. + +.EXAMPLE +2 | Should -BeGreaterOrEqual 0 +This test passes, as PowerShell evaluates `2 -ge 0` as true. + +.EXAMPLE +2 | Should -BeGreaterOrEqual 2 +This test also passes, as PowerShell evaluates `2 -ge 2` as true. +#> + if ($Negate) { + return Should-BeLessThan -ActualValue $ActualValue -ExpectedValue $ExpectedValue -Negate:$false -Because $Because + } + + if ($ActualValue -lt $ExpectedValue) { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected the actual value to be greater than or equal to $(Format-Nicely $ExpectedValue),$(Format-Because $Because) but got $(Format-Nicely $ActualValue)." + } + } + + return New-Object psobject -Property @{ + Succeeded = $true + } +} + +Add-AssertionOperator -Name BeLessThan ` + -InternalName Should-BeLessThan ` + -Test ${function:Should-BeLessThan} ` + -Alias 'LT' + +Add-AssertionOperator -Name BeGreaterOrEqual ` + -InternalName Should-BeGreaterOrEqual ` + -Test ${function:Should-BeGreaterOrEqual} ` + -Alias 'GE' + +#keeping tests happy +function ShouldBeLessThanFailureMessage() { +} +function NotShouldBeLessThanFailureMessage() { +} + +function ShouldBeGreaterOrEqualFailureMessage() { +} +function NotShouldBeGreaterOrEqualFailureMessage() { +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUyW7BoYLN+rhkh0Age/nVi7Ed +# gACggheFMIIFDjCCA/ag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+# uScglKs6TwcJBEC1Ku0q0sg4qHI+d+E61Kd1DpZ2A7a9fhXX6oyU5bivXxrvR57e +# IBEu4e5zEPd1wjbc3WZEWalSSeruuDbS/dElWT/eiPTz7Ndb1NzAarnpP+xyaMo5 +# JhV5hmvIgoWOWghG0jvtyC1cDut4e9NajpIzmvPMaQ6EOodX8h289faDR9sW5tQT +# ldI/iMELv88Pq+sU4j4ll8viqGd76uqfvfoN/snAJDiMOgB+gRT2fbf2itSE2nhB +# YVIoF53CShx3NA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeLike.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeLike.ps1 new file mode 100644 index 000000000000..4d3baa58e01f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeLike.ps1 @@ -0,0 +1,207 @@ +function Should-BeLike($ActualValue, $ExpectedValue, [switch] $Negate, [String] $Because) { + <# +.SYNOPSIS +Asserts that the actual value matches a wildcard pattern using PowerShell's -like operator. +This comparison is not case-sensitive. + +.EXAMPLE +$actual = "Actual value" +PS C:\>$actual | Should -BeLike "actual *" + +This test will pass. -BeLike is not case sensitive. +For a case sensitive assertion, see -BeLikeExactly. + +.EXAMPLE +$actual = "Actual value" +PS C:\>$actual | Should -BeLike "not actual *" + +This test will fail, as the first string does not match the expected value. +#> + [bool] $succeeded = $ActualValue -like $ExpectedValue + if ($Negate) { + $succeeded = -not $succeeded + } + + if (-not $succeeded) { + if ($Negate) { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected like wildcard $(Format-Nicely $ExpectedValue) to not match $(Format-Nicely $ActualValue),$(Format-Because $Because) but it did match." + } + } + else { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected like wildcard $(Format-Nicely $ExpectedValue) to match $(Format-Nicely $ActualValue),$(Format-Because $Because) but it did not match." + } + } + } + + return New-Object psobject -Property @{ + Succeeded = $true + } +} + +Add-AssertionOperator -Name BeLike ` + -InternalName Should-BeLike ` + -Test ${function:Should-BeLike} + +function ShouldBeLikeFailureMessage() { +} +function NotShouldBeLikeFailureMessage() { +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU6f9XPmKmwDLM97pqTMzyNbwa +# Eu2ggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZlHvN7axg+pCgdEJrtIyvhHPqXeE2j +# cdMrfmYY1lq2FBpELEW1imYlu5BnaJd/5IT7WjHL3LWx5Su9FkY5RwrA6+X78+j+ +# vKv00JtDjM0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sTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDEwWjAjBgkqhkiG9w0BCQQx +# FgQUd/cqeTjBVVF2OXOTb9y439nK8+UwDQYJKoZIhvcNAQEBBQAEggEAZLSeN/yO +# t4ceLPMoZ5kxJlVoifnJR+ECPBT45VqG9Z8DN7fcF8Wo+1FTPSBmD6Z01dmfWozX +# UscEtRJ0PWG0QXNc+rz69wdYMfatpMmirKKZNbCuYiDO+SCLqIUYj99ceMLBwX2M +# dUseF1IyO94gGmOiY9acUItBIUksY4kxtSfZacvgFwUigsw1/QcmHhW8dfbvNgDx +# PTKIvTGBK9g0iCVQrIW9j3aKDWo3hKh+BGQNXSnMsnmgNYazg2lSx/qSqe4ZJgKQ +# GpBkvJDJeVYFHRL+rGqs+85csyrunykKiVFFOjntlcfGvuziZCc3DnsGTKCIYFhj +# mwxRhyrH/0pDlA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeLikeExactly.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeLikeExactly.ps1 new file mode 100644 index 000000000000..ccd6c5d55390 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeLikeExactly.ps1 @@ -0,0 +1,206 @@ +function Should-BeLikeExactly($ActualValue, $ExpectedValue, [switch] $Negate, [String] $Because) { + <# +.SYNOPSIS +Asserts that the actual value matches a wildcard pattern using PowerShell's -like operator. +This comparison is case-sensitive. + +.EXAMPLE +$actual = "Actual value" +PS C:\>$actual | Should -BeLikeExactly "Actual *" + +This test will pass, as the string matches the provided pattern. + +.EXAMPLE +$actual = "Actual value" +PS C:\>$actual | Should -BeLikeExactly "actual *" + +This test will fail, as -BeLikeExactly is case-sensitive. +#> + [bool] $succeeded = $ActualValue -clike $ExpectedValue + if ($Negate) { + $succeeded = -not $succeeded + } + + if (-not $succeeded) { + if ($Negate) { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected case sensitive like wildcard $(Format-Nicely $ExpectedValue) to not match $(Format-Nicely $ActualValue),$(Format-Because $Because) but it did match." + } + } + else { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected case sensitive like wildcard $(Format-Nicely $ExpectedValue) to match $(Format-Nicely $ActualValue),$(Format-Because $Because) but it did not match." + } + } + } + + return New-Object psobject -Property @{ + Succeeded = $true + } +} + +Add-AssertionOperator -Name BeLikeExactly ` + -InternalName Should-BeLikeExactly ` + -Test ${function:Should-BeLikeExactly} + +function ShouldBeLikeExactlyFailureMessage() { +} +function NotShouldBeLikeExactlyFailureMessage() { +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUGJ7sabsKt3Vkj8a6oqPBASOC +# anmggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEw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/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeNullOrEmpty.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeNullOrEmpty.ps1 new file mode 100644 index 000000000000..af185cae07c7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeNullOrEmpty.ps1 @@ -0,0 +1,227 @@ + +function Should-BeNullOrEmpty([object[]] $ActualValue, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Checks values for null or empty (strings). +The static [String]::IsNullOrEmpty() method is used to do the comparison. + +.EXAMPLE +$null | Should -BeNullOrEmpty +This test will pass. $null is null. + +.EXAMPLE +$null | Should -Not -BeNullOrEmpty +This test will fail and throw an error. + +.EXAMPLE +@() | Should -BeNullOrEmpty +An empty collection will pass this test. + +.EXAMPLE +"" | Should -BeNullOrEmpty +An empty string will pass this test. +#> + if ($null -eq $ActualValue -or $ActualValue.Count -eq 0) { + $succeeded = $true + } + elseif ($ActualValue.Count -eq 1) { + $expandedValue = $ActualValue[0] + if ($expandedValue -is [hashtable]) { + $succeeded = $expandedValue.Count -eq 0 + } + else { + $succeeded = [String]::IsNullOrEmpty($expandedValue) + } + } + else { + $succeeded = $false + } + + if ($Negate) { + $succeeded = -not $succeeded + } + + $failureMessage = '' + + if (-not $succeeded) { + if ($Negate) { + $failureMessage = NotShouldBeNullOrEmptyFailureMessage -Because $Because + } + else { + $failureMessage = ShouldBeNullOrEmptyFailureMessage -ActualValue $ActualValue -Because $Because + } + } + + return New-Object psobject -Property @{ + Succeeded = $succeeded + FailureMessage = $failureMessage + } +} + +function ShouldBeNullOrEmptyFailureMessage($ActualValue, $Because) { + return "Expected `$null or empty,$(Format-Because $Because) but got $(Format-Nicely $ActualValue)." +} + +function NotShouldBeNullOrEmptyFailureMessage ($Because) { + return "Expected a value,$(Format-Because $Because) but got `$null or empty." +} + +Add-AssertionOperator -Name BeNullOrEmpty ` + -InternalName Should-BeNullOrEmpty ` + -Test ${function:Should-BeNullOrEmpty} ` + -SupportsArrayInput + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUoxNz23ji+jAAzt+ouf+RJFYR +# qOmggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZlHvN7axg+pCgdEJrtIyvhHPqXeE2j +# cdMrfmYY1lq2FBpELEW1imYlu5BnaJd/5IT7WjHL3LWx5Su9FkY5RwrA6+X78+j+ +# vKv00JtDjM0dT+4A/m65jXSywxa4YoGDqQ5n+BwDMQlWCzfu37sCAwEAAaOCAcUw +# ggHBMB8GA1UdIwQYMBaAFFrE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QAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDExWjAjBgkqhkiG9w0BCQQx +# FgQU5rQw3sY+jXs1NHENSeMDDoIAUR4wDQYJKoZIhvcNAQEBBQAEggEAkszDQCEB +# fbpG10SO95qQiQlyxOlILeFi6rivtTHKVSScIbD0xCOuVU0wufg8Bj/Pd+EAllWP +# 9bxWbFManwMEG9j9Da0PRhZYHog4Mm64iA5EbjCDrZqLs9mCy3T2DctiRWKwtIKS +# Eqt8Ri0eXxwLjH33TbgkeEOHeH06byr/pXfc9yo54K+u9wmWhllfDLT1jRrPpQED +# Jf9U5hLy6s9jgWZumgX220N05NnIlExFWde4WDIC0EozfkbKKuT36OJJwcStBFRv +# 0tL4sW0s3QJSyKXngY26XX5lsFtxIgS1hbWZZF0lHrGTnKaJTxOIW5aiAPRBvdqT +# uZwcV7x61LTUFA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeOfType.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeOfType.ps1 new file mode 100644 index 000000000000..754b8884289f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeOfType.ps1 @@ -0,0 +1,230 @@ + +function Should-BeOfType($ActualValue, $ExpectedType, [switch] $Negate, [string]$Because) { + <# +.SYNOPSIS +Asserts that the actual value should be an object of a specified type +(or a subclass of the specified type) using PowerShell's -is operator. + +.EXAMPLE +$actual = Get-Item $env:SystemRoot +PS C:\>$actual | Should -BeOfType System.IO.DirectoryInfo + +This test passes, as $actual is a DirectoryInfo object. + +.EXAMPLE +$actual | Should -BeOfType System.IO.FileSystemInfo +This test passes, as DirectoryInfo's base class is FileSystemInfo. + +.EXAMPLE +$actual | Should -HaveType System.IO.FileSystemInfo +This test passes for the same reason, but uses the -HaveType alias instead. + +.EXAMPLE +$actual | Should -BeOfType System.IO.FileInfo +This test will fail, as FileInfo is not a base class of DirectoryInfo. +#> + if ($ExpectedType -is [string]) { + # parses type that is provided as a string in brackets (such as [int]) + $parsedType = ($ExpectedType -replace '^\[(.*)\]$', '$1') -as [Type] + if ($null -eq $parsedType) { + throw [ArgumentException]"Could not find type [$ParsedType]. Make sure that the assembly that contains that type is loaded." + } + + $ExpectedType = $parsedType + } + + $succeded = $ActualValue -is $ExpectedType + if ($Negate) { + $succeded = -not $succeded + } + + $failureMessage = '' + + if ($null -ne $ActualValue) { + $actualType = $ActualValue.GetType() + } + else { + $actualType = $null + } + + if (-not $succeded) { + if ($Negate) { + $failureMessage = "Expected the value to not have type $(Format-Nicely $ExpectedType) or any of its subtypes,$(Format-Because $Because) but got $(Format-Nicely $ActualValue) with type $(Format-Nicely $actualType)." + } + else { + $failureMessage = "Expected the value to have type $(Format-Nicely $ExpectedType) or any of its subtypes,$(Format-Because $Because) but got $(Format-Nicely $ActualValue) with type $(Format-Nicely $actualType)." + } + } + + return New-Object psobject -Property @{ + Succeeded = $succeded + FailureMessage = $failureMessage + } +} + + +Add-AssertionOperator -Name BeOfType ` + -InternalName Should-BeOfType ` + -Test ${function:Should-BeOfType} ` + -Alias 'HaveType' + +function ShouldBeOfTypeFailureMessage() { +} + +function NotShouldBeOfTypeFailureMessage() { +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUIMk8guo3eGnuj5/U11/rTf3E +# F0OggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDV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y1FLSJiDN4whdYFcuYjPalsITiT5VKunL41EjhNz3vZN7M35B9ucFHBjJthPuOF3 +# MrZhqyXibSfLUAIiOz/1Gj2C4AzOE+L6sBLExsnLvDUUm6mqcxr3DE0l5kOQsz9Z +# HPazw1K72AafwnMsO8puocHA8As3+aOuBjEtKdxXyONhwNkZWuTGgMvwm98PZ0sk +# TlFqEqdDv1SY2Q== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeTrueOrFalse.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeTrueOrFalse.ps1 new file mode 100644 index 000000000000..d6cfcca87db1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/BeTrueOrFalse.ps1 @@ -0,0 +1,245 @@ +function Should-BeTrue($ActualValue, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Asserts that the value is true, or truthy. + +.EXAMPLE +$true | Should -BeTrue +This test passes. $true is true. + +.EXAMPLE +1 | Should -BeTrue +This test passes. 1 is true. + +.EXAMPLE +1,2,3 | Should -BeTrue +PowerShell does not enter a `If (-not @(1,2,3)) {}` block. +This test passes as a "truthy" result. +#> + if ($Negate) { + return Should-BeFalse -ActualValue $ActualValue -Negate:$false -Because $Because + } + + if (-not $ActualValue) { + $failureMessage = "Expected `$true,$(Format-Because $Because) but got $(Format-Nicely $ActualValue)." + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = $failureMessage + } + } + + return New-Object psobject -Property @{ + Succeeded = $true + } +} + +function Should-BeFalse($ActualValue, [switch] $Negate, $Because) { + <# +.SYNOPSIS +Asserts that the value is false, or falsy. + +.EXAMPLE +$false | Should -BeFalse +This test passes. $false is false. + +.EXAMPLE +0 | Should -BeFalse +This test passes. 0 is false. + +.EXAMPLE +$null | Should -BeFalse +PowerShell does not enter a `If ($null) {}` block. +This test passes as a "falsy" result. +#> + if ($Negate) { + return Should-BeTrue -ActualValue $ActualValue -Negate:$false -Because $Because + } + + if ($ActualValue) { + $failureMessage = "Expected `$false,$(Format-Because $Because) but got $(Format-Nicely $ActualValue)." + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = $failureMessage + } + } + + return New-Object psobject -Property @{ + Succeeded = $true + } +} + + +Add-AssertionOperator -Name BeTrue ` + -InternalName Should-BeTrue ` + -Test ${function:Should-BeTrue} + +Add-AssertionOperator -Name BeFalse ` + -InternalName Should-BeFalse ` + -Test ${function:Should-BeFalse} + + + +# to keep tests happy +function ShouldBeTrueFailureMessage($ActualValue) { +} +function NotShouldBeTrueFailureMessage($ActualValue) { +} +function ShouldBeFalseFailureMessage($ActualValue) { +} +function NotShouldBeFalseFailureMessage($ActualValue) { +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUIkpJE6BOt9y5hyOSL1GLatdt +# 3YiggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUy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iMah/lu1ggqX/xzyJyLv9qb1dpUIHKNzbxvFl4e4 +# GwxO72/U0We9mynnu8xdHjYhGmXMsr1V8CvegS0RunHdartVo73FR7QyoznlewkS +# I3TCIa0snrrfrfXTnxBHoxJ8ubMiMEvCwcGXjqz/vhbzlxk+5Bpp3p+DHtFbELVx +# CAOKH74H3aGCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDExWjAjBgkqhkiG9w0BCQQx +# FgQUku/uw1XiJboj+w0kxDeCyu4VfvcwDQYJKoZIhvcNAQEBBQAEggEAcuIolOUq +# g4RNxa2zMY0uhJnc8FnmuW5t6D62W0ciOOQ/m2NrwgsmU5Hsw268JsLId/3PJkb/ +# FAIJhH5URfWOMYmLzso5ZDfhWW98uK/OLhitP8fnTfyGfWoohL4RI3UWRKFaOYiZ +# hk6OGDcaoEUA5DZwgr6ncMvSdXiWliGRUfpypxg3LDCBewqC66n9bArD0qEmjrcc +# AJlHOAv9uxAesDvTEClkDuazEK6L7IGnj2FmdO+o9ZUMrUwbUJ7pdrFSnSivF9r0 +# cQS2Mbw+UwaE+zLzD0RouJjI5tApd3SAX6eXsMDB3NFLoHh4X/tsmrofpzvuZ1NZ +# 66HCvWB2ovkGSA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Contain.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Contain.ps1 new file mode 100644 index 000000000000..a384d7b1ade3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Contain.ps1 @@ -0,0 +1,199 @@ +function Should-Contain($ActualValue, $ExpectedValue, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Asserts that collection contains a specific value. +Uses PowerShell's -contains operator to confirm. + +.EXAMPLE +1,2,3 | Should -Contain 1 +This test passes, as 1 exists in the provided collection. +#> + [bool] $succeeded = $ActualValue -contains $ExpectedValue + if ($Negate) { + $succeeded = -not $succeeded + } + + if (-not $succeeded) { + if ($Negate) { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected $(Format-Nicely $ExpectedValue) to not be found in collection $(Format-Nicely $ActualValue),$(Format-Because $Because) but it was found." + } + } + else { + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "Expected $(Format-Nicely $ExpectedValue) to be found in collection $(Format-Nicely $ActualValue),$(Format-Because $Because) but it was not found." + } + } + } + + return New-Object psobject -Property @{ + Succeeded = $true + } +} + +Add-AssertionOperator -Name Contain ` + -InternalName Should-Contain ` + -Test ${function:Should-Contain} ` + -SupportsArrayInput + +function ShouldContainFailureMessage() { +} +function NotShouldContainFailureMessage() { +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUATXrSkUOxkTBKAsj/xC2G25W +# +nSggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEF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jrh8SJUHqmRy +# c4fJRP7ED3ORBtDurouggFfydRlvTG7FFnVELz24nsTcdZ+T4eYm8nLRHC3x1SWs +# raXp061O/b5H1A== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Exist.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Exist.ps1 new file mode 100644 index 000000000000..9763d59d322d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Exist.ps1 @@ -0,0 +1,201 @@ +function Should-Exist($ActualValue, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Does not perform any comparison, but checks if the object calling Exist is present in a PS Provider. +The object must have valid path syntax. It essentially must pass a Test-Path call. + +.EXAMPLE +$actual = (Dir . )[0].FullName +PS C:\>Remove-Item $actual +PS C:\>$actual | Should -Exist + +`Should -Exist` calls Test-Path. Test-Path expects a file, +returns $false because the file was removed, and fails the test. +#> + [bool] $succeeded = & $SafeCommands['Test-Path'] $ActualValue + + if ($Negate) { + $succeeded = -not $succeeded + } + + $failureMessage = '' + + if (-not $succeeded) { + if ($Negate) { + $failureMessage = "Expected path $(Format-Nicely $ActualValue) to not exist,$(Format-Because $Because) but it did exist." + } + else { + $failureMessage = "Expected path $(Format-Nicely $ActualValue) to exist,$(Format-Because $Because) but it did not exist." + } + } + + return & $SafeCommands['New-Object'] psobject -Property @{ + Succeeded = $succeeded + FailureMessage = $failureMessage + } +} + +Add-AssertionOperator -Name Exist ` + -InternalName Should-Exist ` + -Test ${function:Should-Exist} + + +function ShouldExistFailureMessage() { +} +function NotShouldExistFailureMessage() { +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAA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z +# g0q2a1Jdbk4LEAJlKdp2gb7QrcQH4LX8BiUX5FanoJ7IYU4zXHZqJt1m34ZrSuqP +# mue1huUN/6NpNUGnosruaes1s6wketww2qxdt9ZS/5m+g0zqTsCcftglj0+MnVFv +# lljbaZ1smuMST70yknw4eRh4ppUAhC1xwEfDbDTPEycDSKo/N9r80mHxHwDfrt2B +# f9UR8iEqz2n0r1b1ADUTSMiz1Z5JP+k97kTM9fpnRop67OAqqqSGJvZ4a86xD/uA +# mJfVo7BdShHy6AuH8VFE1x96joEkoyE+1etshAHS+Kr2qDCl0KoswQW9sZnnhazR +# +8YINbI+IDSeyg== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/FileContentMatch.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/FileContentMatch.ps1 new file mode 100644 index 000000000000..c493374f5a4d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/FileContentMatch.ps1 @@ -0,0 +1,221 @@ +function Should-FileContentMatch($ActualValue, $ExpectedContent, [switch] $Negate, $Because) { + <# +.SYNOPSIS +Checks to see if a file contains the specified text. +This search is not case sensitive and uses regular expressions. + +.EXAMPLE +Set-Content -Path TestDrive:\file.txt -Value 'I am a file.' +PS C:\>'TestDrive:\file.txt' | Should -FileContentMatch 'I Am' + +Create a new file and verify its content. This test passes. +The 'I Am' regular expression (RegEx) pattern matches against the txt file contents. +For case-sensitivity, see FileContentMatchExactly. + +.EXAMPLE +'TestDrive:\file.txt' | Should -FileContentMatch '^I.*file\.$' +This RegEx pattern also matches against the "I am a file." string from Example 1. +With a matching RegEx pattern, this test also passes. + +.EXAMPLE +'TestDrive:\file.txt' | Should -FileContentMatch 'I Am Not' +This test fails, as the RegEx pattern does not match "I am a file." + +.EXAMPLE +'TestDrive:\file.txt' | Should -FileContentMatch 'I.am.a.file' +This test passes, because "." in RegEx matches any character including a space. + +.EXAMPLE +'TestDrive:\file.txt' | Should -FileContentMatch ([regex]::Escape('I.am.a.file')) +Tip: Use [regex]::Escape("pattern") to match the exact text. +This test fails, because "I am a file." != "I.am.a.file" +#> + $succeeded = (@(& $SafeCommands['Get-Content'] -Encoding UTF8 $ActualValue) -match $ExpectedContent).Count -gt 0 + + if ($Negate) { + $succeeded = -not $succeeded + } + + $failureMessage = '' + + if (-not $succeeded) { + if ($Negate) { + $failureMessage = NotShouldFileContentMatchFailureMessage -ActualValue $ActualValue -ExpectedContent $ExpectedContent -Because $Because + } + else { + $failureMessage = ShouldFileContentMatchFailureMessage -ActualValue $ActualValue -ExpectedContent $ExpectedContent -Because $Because + } + } + + return & $SafeCommands['New-Object'] psobject -Property @{ + Succeeded = $succeeded + FailureMessage = $failureMessage + } +} + +function ShouldFileContentMatchFailureMessage($ActualValue, $ExpectedContent, $Because) { + return "Expected $(Format-Nicely $ExpectedContent) to be found in file '$ActualValue',$(Format-Because $Because) but it was not found." +} + +function NotShouldFileContentMatchFailureMessage($ActualValue, $ExpectedContent, $Because) { + return "Expected $(Format-Nicely $ExpectedContent) to not be found in file '$ActualValue',$(Format-Because $Because) but it was found." +} + +Add-AssertionOperator -Name FileContentMatch ` + -InternalName Should-FileContentMatch ` + -Test ${function:Should-FileContentMatch} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU4WIISJhmilLw7Pb4gqNq724z +# etmggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQ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uLkhw5tQiKSfvimYjfCginYiMQTuXI+aNeqDKXrU1+Z7nh5IKFEaq2r1y +# CtVa2OkAqJAi/Vh9KHhKIeL06lGpKXuV9NqYD3rVxs+IWt2xWDYX7RlohWXforsW +# Pw2p1TKC2vDkbA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/FileContentMatchExactly.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/FileContentMatchExactly.ps1 new file mode 100644 index 000000000000..514add93e19c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/FileContentMatchExactly.ps1 @@ -0,0 +1,207 @@ +function Should-FileContentMatchExactly($ActualValue, $ExpectedContent, [switch] $Negate, [String] $Because) { + <# +.SYNOPSIS +Checks to see if a file contains the specified text. +This search is case sensitive and uses regular expressions to match the text. + +.EXAMPLE +Set-Content -Path TestDrive:\file.txt -Value 'I am a file.' +PS C:\>'TestDrive:\file.txt' | Should -FileContentMatchExactly 'I am' + +Create a new file and verify its content. This test passes. +The 'I am' regular expression (RegEx) pattern matches against the txt file contents. + +.EXAMPLE +'TestDrive:\file.txt' | Should -FileContentMatchExactly 'I Am' +This test checks a case-sensitive pattern against the "I am a file." string from Example 1. +Because the RegEx pattern fails to match, this test fails. +#> + $succeeded = (@(& $SafeCommands['Get-Content'] -Encoding UTF8 $ActualValue) -cmatch $ExpectedContent).Count -gt 0 + + if ($Negate) { + $succeeded = -not $succeeded + } + + $failureMessage = '' + + if (-not $succeeded) { + if ($Negate) { + $failureMessage = NotShouldFileContentMatchExactlyFailureMessage -ActualValue $ActualValue -ExpectedContent $ExpectedContent -Because $Because + } + else { + $failureMessage = ShouldFileContentMatchExactlyFailureMessage -ActualValue $ActualValue -ExpectedContent $ExpectedContent -Because $Because + } + } + + return & $SafeCommands['New-Object'] psobject -Property @{ + Succeeded = $succeeded + FailureMessage = $failureMessage + } +} + +function ShouldFileContentMatchExactlyFailureMessage($ActualValue, $ExpectedContent) { + return "Expected $(Format-Nicely $ExpectedContent) to be case sensitively found in file $(Format-Nicely $ActualValue),$(Format-Because $Because) but it was not found." +} + +function NotShouldFileContentMatchExactlyFailureMessage($ActualValue, $ExpectedContent) { + return "Expected $(Format-Nicely $ExpectedContent) to not be case sensitively found in file $(Format-Nicely $ActualValue),$(Format-Because $Because) but it was found." +} + +Add-AssertionOperator -Name FileContentMatchExactly ` + -InternalName Should-FileContentMatchExactly ` + -Test ${function:Should-FileContentMatchExactly} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUls7jxCA+j4XmhTiCgSiu6Cv0 +# jKeggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgy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hkODgxe2+a35u+k/h0ci1M5cNhSlfXEpQcD/Qx0ELmByeVqUoH+VELB +# e5fgC3AjeaGCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDEyWjAjBgkqhkiG9w0BCQQx +# FgQUzjo+IECRYPYPJEY1Zr8nObIIQAswDQYJKoZIhvcNAQEBBQAEggEAaMiM+ReK +# 8YauDuziq91mOeSlTzFal8ZKtmneeT8FPnLh1bDugDSvMix/JAyfD5LnAXAARQdO +# gAM3pDOOmyIs4sSVVEqN3FG4DzaG31rJ6x8p6E3XO5mtPmS+8U1FykFKXfpCT8yK +# O+yRD37ZyVJ9Fg6HznQlPIg3zT0RVnbAUozep8mOtZ7fE0YAXQEPnwCWfASkpah1 +# GEV4ToxSwTDaKAzwBQ3Z2GzOeB2r2ZJ+gUPq021jjpbXjXyj1jq64zoSC6KfJTzL +# TLOXCX4x2Mn6qq+KbYtZBp5ufZ/YXPrhtyCsuAhuUxZl8iM+yXxiUipCF9lGqde0 +# 6bxBeXnuAoO97Q== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/FileContentMatchMultiline.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/FileContentMatchMultiline.ps1 new file mode 100644 index 000000000000..0ac5e11dfb54 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/FileContentMatchMultiline.ps1 @@ -0,0 +1,215 @@ +function Should-FileContentMatchMultiline($ActualValue, $ExpectedContent, [switch] $Negate, [String] $Because) { + <# +.SYNOPSIS +As opposed to FileContentMatch and FileContentMatchExactly operators, +FileContentMatchMultiline presents content of the file being tested as one string object, +so that the expression you are comparing it to can consist of several lines. + +When using FileContentMatchMultiline operator, '^' and '$' represent the beginning and end +of the whole file, instead of the beginning and end of a line. + +.EXAMPLE +$Content = "I am the first line.`nI am the second line." +PS C:\>Set-Content -Path TestDrive:\file.txt -Value $Content -NoNewline +PS C:\>'TestDrive:\file.txt' | Should -FileContentMatchMultiline 'first line\.\r?\nI am' + +This regular expression (RegEx) pattern matches the file contents, and the test passes. + +.EXAMPLE +'TestDrive:\file.txt' | Should -FileContentMatchMultiline '^I am the first.*\n.*second line\.$' +Using the file from Example 1, this RegEx pattern also matches, and this test also passes. + +.EXAMPLE +'TestDrive:\file.txt' | Should -FileContentMatchMultiline '^I am the first line\.$' +FileContentMatchMultiline uses the '$' symbol to match the end of the file, +not the end of any single line within the file. This test fails. +#> + $succeeded = [bool] ((& $SafeCommands['Get-Content'] $ActualValue -Delimiter ([char]0)) -match $ExpectedContent) + + if ($Negate) { + $succeeded = -not $succeeded + } + + $failureMessage = '' + + if (-not $succeeded) { + if ($Negate) { + $failureMessage = NotShouldFileContentMatchMultilineFailureMessage -ActualValue $ActualValue -ExpectedContent $ExpectedContent -Because $Because + } + else { + $failureMessage = ShouldFileContentMatchMultilineFailureMessage -ActualValue $ActualValue -ExpectedContent $ExpectedContent -Because $Because + } + } + + return New-Object psobject -Property @{ + Succeeded = $succeeded + FailureMessage = $failureMessage + } +} + +function ShouldFileContentMatchMultilineFailureMessage($ActualValue, $ExpectedContent, $Because) { + return "Expected $(Format-Nicely $ExpectedContent) to be found in file $(Format-Nicely $ActualValue),$(Format-Because $Because) but it was not found." +} + +function NotShouldFileContentMatchMultilineFailureMessage($ActualValue, $ExpectedContent, $Because) { + return "Expected $(Format-Nicely $ExpectedContent) to not be found in file $(Format-Nicely $ActualValue),$(Format-Because $Because) but it was found." +} + +Add-AssertionOperator -Name FileContentMatchMultiline ` + -InternalName Should-FileContentMatchMultiline ` + -Test ${function:Should-FileContentMatchMultiline} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU3Gq8DK0AsXrptfqIsMI/X6bi +# dVqggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZlHvN7axg+pCgdEJrtIyvhHPqXeE2j +# cdMrfmYY1lq2FBpELEW1imYlu5BnaJd/5IT7WjHL3LWx5Su9FkY5RwrA6+X78+j+ +# vKv00JtDjM0dT+4A/m65jXSywxa4YoGDqQ5n+B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ydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDEzWjAjBgkqhkiG9w0BCQQx +# FgQUPYwMeoDg045SUA4lYNVnyr5I5d0wDQYJKoZIhvcNAQEBBQAEggEAAYa+2KmI +# KibKKDUaBygcrFJU7oVe+fF2exYW2sy6a2b8ZqJAnQ7lH5QzaJf5rJ0GHOsn3op/ +# uOc8KG0nNrN3ZIQ4x79FHvgTjCcujXpPEPerK2qXZZmIx8oZKkNlaleb9ksftFj8 +# FGsf8VDDNgVDScH1aLIb+fOjryJIDN/nReEhpkqzwPwXYTganwOXRRMbCOZme1L5 +# PDGdU0yFYKmWPDkHt28oPVRSylgJENg1Tt9uqKwyH5oXHszpZRIIOr7g/NfX/Xfc +# DfPmPGeQ56dtDnje/k279xLASN3AxVE9auryWPziRlVRrA2dHYkLvuZS+3pEPJMK +# Bq5yTGrMrBTy0A== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/HaveCount.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/HaveCount.ps1 new file mode 100644 index 000000000000..652bdf5c0e0c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/HaveCount.ps1 @@ -0,0 +1,235 @@ +function Should-HaveCount($ActualValue, [int] $ExpectedValue, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Asserts that a collection has the expected amount of items. + +.EXAMPLE +1,2,3 | Should -HaveCount 3 +This test passes, because it expected three objects, and received three. +This is like running `@(1,2,3).Count` in PowerShell. +#> + if ($ExpectedValue -lt 0) { + throw [ArgumentException]"Excpected collection size must be greater than or equal to 0." + } + $count = if ($null -eq $ActualValue) { + 0 + } + else { + $ActualValue.Count + } + $expectingEmpty = $ExpectedValue -eq 0 + [bool] $succeeded = $count -eq $ExpectedValue + if ($Negate) { + $succeeded = -not $succeeded + } + + + if (-not $succeeded) { + + if ($Negate) { + $expect = if ($expectingEmpty) { + "Expected a non-empty collection" + } + else { + "Expected a collection with size different from $(Format-Nicely $ExpectedValue)" + } + $but = if ($count -ne 0) { + "but got collection with that size $(Format-Nicely $ActualValue)." + } + else { + "but got an empty collection." + } + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "$expect,$(Format-Because $Because) $but" + } + } + else { + $expect = if ($expectingEmpty) { + "Expected an empty collection" + } + else { + "Expected a collection with size $(Format-Nicely $ExpectedValue)" + } + $but = if ($count -ne 0) { + "but got collection with size $(Format-Nicely $count) $(Format-Nicely $ActualValue)." + } + else { + "but got an empty collection." + } + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = "$expect,$(Format-Because $Because) $but" + } + } + } + + return New-Object psobject -Property @{ + Succeeded = $true + } +} + +Add-AssertionOperator -Name HaveCount ` + -InternalName Should-HaveCount ` + -Test ${function:Should-HaveCount} ` + -SupportsArrayInput + +function ShouldHaveCountFailureMessage() { +} +function NotShouldHaveCountFailureMessage() { +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUA9FZoIr/Qis+B3Uv7asGdjXX +# J9aggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQD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RYUobCi9KQ9XhZb2Go97cOCuwYmH3hiMEcLwCdJBcHI8 +# Ijo4pk4WrL9iv9Dgk4ZcQN0ToZx+CKQmRe/GHAV5qECWG8XzjNdkXWQhKbbFw0iJ +# sBzUqRrpobPlqw== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/HaveParameter.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/HaveParameter.ps1 new file mode 100644 index 000000000000..c6155b828474 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/HaveParameter.ps1 @@ -0,0 +1,384 @@ +function Should-HaveParameter ( + $ActualValue, + [String] $ParameterName, + $Type, + [String]$DefaultValue, + [Switch]$Mandatory, + [Switch]$HasArgumentCompleter, + [Switch]$Negate, + [String]$Because ) { + <# + .SYNOPSIS + Asserts that a command has the expected parameter. + + .EXAMPLE + Get-Command "Invoke-WebRequest" | Should -HaveParameter Uri -Mandatory + This test passes, because it expected the parameter URI to exist and to + be mandatory. + .NOTES + The attribute [ArgumentCompleter] was added with PSv5. Previouse this + assertion will not be able to use the -HasArgumentCompleter parameter + if the attribute does not exist. + #> + + if ($null -eq $ActualValue -or $ActualValue -isnot [Management.Automation.CommandInfo]) { + throw "Input value must be non-null CommandInfo object. You can get one by calling Get-Command." + } + + if ($null -eq $ParameterName) { + throw "The ParameterName can't be empty" + } + + #region HelperFunctions + function Join-And ($Items, $Threshold = 2) { + + if ($null -eq $items -or $items.count -lt $Threshold) { + $items -join ', ' + } + else { + $c = $items.count + ($items[0..($c - 2)] -join ', ') + ' and ' + $items[-1] + } + } + + function Add-SpaceToNonEmptyString ([string]$Value) { + if ($Value) { + " $Value" + } + } + + function Get-ParameterInfo { + param( + [Parameter( Mandatory = $true )] + [Management.Automation.CommandInfo]$Command + ) + <# + .SYNOPSIS + Use Tokenize to get information about the parameter block of a command + .DESCRIPTION + In order to get information about the parameter block of a command, + several tools can be used (Get-Command, AST, etc). + In order to get the default value of a parameter, AST is the easiest + way to go; but AST was only introduced with PSv3. + This function creates an object with information about parameters + using the Tokenize + .NOTES + Author: Chris Dent + #> + + function Get-TokenGroup { + param( + [Parameter( Mandatory = $true )] + [System.Management.Automation.PSToken[]]$tokens + ) + $i = $j = 0 + do { + $token = $tokens[$i] + if ($token.Type -eq 'GroupStart') { + $j++ + } + if ($token.Type -eq 'GroupEnd') { + $j-- + } + if (-not $token.PSObject.Properties.Item('Depth')) { + $token | Add-Member Depth -MemberType NoteProperty -Value $j + } + $token + + $i++ + } until ($j -eq 0 -or $i -ge $tokens.Count) + } + + $errors = $null + $tokens = [System.Management.Automation.PSParser]::Tokenize($Command.Definition, [Ref]$errors) + + # Find param block + $start = $tokens.IndexOf(($tokens | Where-Object { $_.Content -eq 'param' } | Select-Object -First 1)) + 1 + $paramBlock = Get-TokenGroup $tokens[$start..($tokens.Count - 1)] + + for ($i = 0; $i -lt $paramBlock.Count; $i++) { + $token = $paramBlock[$i] + + if ($token.Depth -eq 1 -and $token.Type -eq 'Variable') { + $paramInfo = New-Object PSObject -Property @{ + Name = $token.Content + } | Select-Object Name, Type, DefaultValue, DefaultValueType + + if ($paramBlock[$i + 1].Content -ne ',') { + $value = $paramBlock[$i + 2] + if ($value.Type -eq 'GroupStart') { + $tokenGroup = Get-TokenGroup $paramBlock[($i + 2)..($paramBlock.Count - 1)] + $paramInfo.DefaultValue = [String]::Join('', ($tokenGroup | ForEach-Object { $_.Content })) + $paramInfo.DefaultValueType = 'Expression' + } + else { + $paramInfo.DefaultValue = $value.Content + $paramInfo.DefaultValueType = $value.Type + } + } + if ($paramBlock[$i - 1].Type -eq 'Type') { + $paramInfo.Type = $paramBlock[$i - 1].Content + } + $paramInfo + } + } + } + + if ($Type -is [string]) { + # parses type that is provided as a string in brackets (such as [int]) + $parsedType = ($Type -replace '^\[(.*)\]$', '$1') -as [Type] + if ($null -eq $parsedType) { + throw [ArgumentException]"Could not find type [$ParsedType]. Make sure that the assembly that contains that type is loaded." + } + + $Type = $parsedType + } + #endregion HelperFunctions + + $buts = @() + $filters = @() + + $null = $ActualValue.Parameters # necessary for PSv2 + $hasKey = $ActualValue.Parameters.PSBase.ContainsKey($ParameterName) + $filters += "to$(if ($Negate) {" not"}) have a parameter $ParameterName" + + if (-not $Negate -and -not $hasKey) { + $buts += "the parameter is missing" + } + elseif ($Negate -and -not $hasKey) { + return New-Object PSObject -Property @{ Succeeded = $true } + } + elseif ($Negate -and $hasKey -and -not ($Mandatory -or $Type -or $DefaultValue -or $HasArgumentCompleter)) { + $buts += "the parameter exists" + } + else { + $attributes = $ActualValue.Parameters[$ParameterName].Attributes + + if ($Mandatory) { + $testMandatory = $attributes | Where-Object { $_ -is [System.Management.Automation.ParameterAttribute] -and $_.Mandatory } + $filters += "which is$(if ($Negate) {" not"}) mandatory" + + if (-not $Negate -and -not $testMandatory) { + $buts += "it wasn't mandatory" + } + elseif ($Negate -and $testMandatory) { + $buts += "it was mandatory" + } + } + + if ($Type) { + # This block is not using `Format-Nicely`, as in PSv2 the output differs. Eg: + # PS2> [System.DateTime] + # PS5> [datetime] + [type]$actualType = $ActualValue.Parameters[$ParameterName].ParameterType + $testType = ($Type -eq $actualType) + $filters += "$(if ($Negate) {"not "})of type [$($Type.FullName)]" + + if (-not $Negate -and -not $testType) { + $buts += "it was of type [$($actualType.FullName)]" + } + elseif ($Negate -and $testType) { + $buts += "it was of type [$($Type.FullName)]" + } + } + + if ($PSBoundParameters.Keys -contains "DefaultValue") { + $parameterMetadata = Get-ParameterInfo $ActualValue | Where-Object { $_.Name -eq $ParameterName } + $actualDefault = if ($parameterMetadata.DefaultValue) { $parameterMetadata.DefaultValue } else { "" } + $testDefault = ($actualDefault -eq $DefaultValue) + $filters += "the default value$(if ($Negate) {" not"}) to be $(Format-Nicely $DefaultValue)" + + if (-not $Negate -and -not $testDefault) { + $buts += "the default value was $(Format-Nicely $actualDefault)" + } + elseif ($Negate -and $testDefault) { + $buts += "the default value was $(Format-Nicely $DefaultValue)" + } + } + + if ($HasArgumentCompleter) { + $testArgumentCompleter = $attributes | Where-Object {$_ -is [ArgumentCompleter]} + $filters += "has ArgumentCompletion" + + if (-not $Negate -and -not $testArgumentCompleter) { + $buts += "has no ArgumentCompletion" + } + elseif ($Negate -and $testArgumentCompleter) { + $buts += "has ArgumentCompletion" + } + } + } + + if ($buts.Count -ne 0) { + $filter = Add-SpaceToNonEmptyString ( Join-And $filters -Threshold 3 ) + $but = Join-And $buts + $failureMessage = "Expected command $($ActualValue.Name)$filter,$(Format-Because $Because) but $but." + + return New-Object PSObject -Property @{ + Succeeded = $false + FailureMessage = $failureMessage + } + } + else { + return New-Object PSObject -Property @{ Succeeded = $true } + } +} + +Add-AssertionOperator -Name HaveParameter ` + -InternalName Should-HaveParameter ` + -Test ${function:Should-HaveParameter} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUreJXU6iAMulCkurnVAGwJZ6o +# NriggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQ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6Aern9vaCR3dJ2xyShSR+PG2w +# sXFGhPZz0/0FFbkME4/d2tBWjH3k8YRDyiXNIsD28xWH+3Q/Kx7yN7IbCmbjle81 +# 2spV6rjZPt84WTR54LLoWNVUmhBwIOqt8u9YGTFqJ1r5QI0kNSZJnjgiAia78ZKY +# 5rvmSxHz1XIogX6JFB0plEb0EcUUI4lBxtSl8QJDGYCssepInU3rhLd+hvchTcIv +# R798qorCHKGCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDEzWjAjBgkqhkiG9w0BCQQx +# FgQUApJ56pHGV/psBsggMlBPzuobv60wDQYJKoZIhvcNAQEBBQAEggEAaR5bld5J +# e/L034U6xNhpRnaQLnbKD8PTTdHogGCqpqWKXxcEHb74OZ/TbBwO5G7W/1Ao7PLe +# ZQfwXFPUrYJw9bh/gcD0xfLfmTzOB1isvbl14sSk3E2OqBjJvbP6hqYtP0WTlDno +# wjuzb+JZG/o+Gx+e2BIUjcy5yQs+68MZkuXoTR3IziWU7Cj/KpNka6favp+5Z7zP +# vtzXzC7wZEzY/MCXU7iIebdc2H5W24nEbm7HikNuqLchuMYblSCDzg/BFZfuF5Zp +# ddHJOCJQjyVhqNRpqIvsUGg/9U4GxbyLf9X79FY8AeQCJj3CjWXBJu8iY2KbtdMI +# SoYgZGGuku214g== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Match.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Match.ps1 new file mode 100644 index 000000000000..7b73dcf363ef --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Match.ps1 @@ -0,0 +1,210 @@ +function Should-Match($ActualValue, $RegularExpression, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Uses a regular expression to compare two objects. +This comparison is not case sensitive. + +.EXAMPLE +"I am a value" | Should -Match "I Am" +The "I Am" regular expression (RegEx) pattern matches the provided string, +so the test passes. For case sensitive matches, see MatchExactly. +.EXAMPLE +"I am a value" | Should -Match "I am a bad person" # Test will fail +RegEx pattern does not match the string, and the test fails. +.EXAMPLE +"Greg" | Should -Match ".reg" # Test will pass +This test passes, as "." in RegEx matches any character. +.EXAMPLE +"Greg" | Should -Match ([regex]::Escape(".reg")) +One way to provide literal characters to Match is the [regex]::Escape() method. +This test fails, because the pattern does not match a period symbol. +#> + [bool] $succeeded = $ActualValue -match $RegularExpression + + if ($Negate) { + $succeeded = -not $succeeded + } + + $failureMessage = '' + + if (-not $succeeded) { + if ($Negate) { + $failureMessage = NotShouldMatchFailureMessage -ActualValue $ActualValue -RegularExpression $RegularExpression -Because $Because + } + else { + $failureMessage = ShouldMatchFailureMessage -ActualValue $ActualValue -RegularExpression $RegularExpression -Because $Because + } + } + + return New-Object psobject -Property @{ + Succeeded = $succeeded + FailureMessage = $failureMessage + } +} + +function ShouldMatchFailureMessage($ActualValue, $RegularExpression, $Because) { + return "Expected regular expression $(Format-Nicely $RegularExpression) to match $(Format-Nicely $ActualValue),$(Format-Because $Because) but it did not match." +} + +function NotShouldMatchFailureMessage($ActualValue, $RegularExpression, $Because) { + return "Expected regular expression $(Format-Nicely $RegularExpression) to not match $(Format-Nicely $ActualValue),$(Format-Because $Because) but it did match." +} + +Add-AssertionOperator -Name Match ` + -InternalName Should-Match ` + -Test ${function:Should-Match} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzC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jAwMjA3MTk1NDE0WjAjBgkqhkiG9w0BCQQx +# FgQUpiRFdz2mXrg+QuIZzl8xj3wG3/wwDQYJKoZIhvcNAQEBBQAEggEARne1jLcM +# Gu12+NqWgFT8jFCTfTl/T7SQY3LBuaNSArXsZkmjui3p8r8XhnP3VUiECtRLt4Pr +# BT2T12JnQzayS/G6IkM6IqcqKUVzsvNBZbrfVlVhesiXLO7/ZRPebwmRqUfYckWy +# LVXTjrVx6AtnBf2wHZQ0oHA7iEW9yWUe464CJ6e8j1wTzqVGBWapTHBAf0w5s/rz +# Irf/QTWmoAWzZyW/2pWn6G7Dplz1G+PKAnYDKyV4Y4GRT//6YR0kbDKT+hV6WQoO +# tkI3T5vTx3b8vbsDJQoSjZLhzZIkSazqzMskOYaP5YYiRCrf9K5uUOUWknBRfbVM +# Kn8VfmASHzfASQ== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/MatchExactly.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/MatchExactly.ps1 new file mode 100644 index 000000000000..b00a1b9ad445 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/MatchExactly.ps1 @@ -0,0 +1,206 @@ +function Should-MatchExactly($ActualValue, $RegularExpression, [switch] $Negate, [string] $Because) { + <# +.SYNOPSIS +Uses a regular expression to compare two objects. +This comparison is case sensitive. + +.EXAMPLE +"I am a value" | Should -MatchExactly "I am" +The "I am" regular expression (RegEx) pattern matches the string. +This test passes. + +.EXAMPLE +"I am a value" | Should -MatchExactly "I Am" +Because MatchExactly is case sensitive, this test fails. +For a case insensitive test, see Match. +#> + [bool] $succeeded = $ActualValue -cmatch $RegularExpression + + if ($Negate) { + $succeeded = -not $succeeded + } + + $failureMessage = '' + + if (-not $succeeded) { + if ($Negate) { + $failureMessage = NotShouldMatchExactlyFailureMessage -ActualValue $ActualValue -RegularExpression $RegularExpression -Because $Because + } + else { + $failureMessage = ShouldMatchExactlyFailureMessage -ActualValue $ActualValue -RegularExpression $RegularExpression -Because $Because + } + } + + return New-Object psobject -Property @{ + Succeeded = $succeeded + FailureMessage = $failureMessage + } +} + +function ShouldMatchExactlyFailureMessage($ActualValue, $RegularExpression) { + return "Expected regular expression $(Format-Nicely $RegularExpression) to case sensitively match $(Format-Nicely $ActualValue),$(Format-Because $Because) but it did not match." +} + +function NotShouldMatchExactlyFailureMessage($ActualValue, $RegularExpression) { + return "Expected regular expression $(Format-Nicely $RegularExpression) to not case sensitively match $(Format-Nicely $ActualValue),$(Format-Because $Because) but it did match." +} + +Add-AssertionOperator -Name MatchExactly ` + -InternalName Should-MatchExactly ` + -Test ${function:Should-MatchExactly} ` + -Alias 'CMATCH' + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUjNVNFdeoBKU7ojzuW1WBBhgi +# WG6ggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDt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8+ZOkvhVKniUHrAFrkLnYeOTpe0KjW/euKuoqsP1nQha +# rMN6LU51Anz7nzrrZTYOX6F0sJecXcmkTQ4OvmXoBRq3maT+fh5uSalQJZLIkztu +# ndG6UUTL/MLn4slk404HIYuEwt9DwIfEIGRbnV9uiYH12YJsYaxeNkZ3DzCO0RAx +# p+QCB/DFhqGCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDE0WjAjBgkqhkiG9w0BCQQx +# FgQUvBOzkwb0sj1yLNu3MYGdxxyFWkswDQYJKoZIhvcNAQEBBQAEggEAoKkmwFrl +# W88rWTYc+44PQF5KPpuzHwbSP5P9kPkVg1LHBZmA42drMpzVrvEyiO1NOeXTBoLk +# g8W5KlpG9teLSN36qwFGyJq28/SrEyr5ZXDIEX92BdByqSJTx9qshP/aENdBOiUI +# 8Ak0v93RMUlkzUgRd/4fYjv20jTvTv5fiUqTERXTrurYCUUBEUSqyepUuwJmcU/C +# 1WdteKJLN1ZrzfunHCI7Oy51DTjFLs/FdPZXxQciTW6wDotcL0ytAQmfJT3pRgbs +# 9LrkemB5TXqw4kP9XeoHJn4kj1DAmP6CiMRejHlAWtFTqk/VxpMlwAM5f+skXQzB +# oOmgVZ8uZYO4YA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/PesterThrow.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/PesterThrow.ps1 new file mode 100644 index 000000000000..665383a505de --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/PesterThrow.ps1 @@ -0,0 +1,327 @@ +function Should-Throw([scriptblock] $ActualValue, $ExpectedMessage, $ErrorId, [type]$ExceptionType, [switch] $Negate, [string] $Because, [switch] $PassThru) { + <# +.SYNOPSIS +Checks if an exception was thrown. Enclose input in a script block. + +Warning: The input object must be a ScriptBlock, otherwise it is processed outside of the assertion. + +.EXAMPLE +{ foo } | Should -Throw +Because "foo" isn't a known command, PowerShell throws an error. +Throw confirms that an error occurred, and successfully passes the test. + +.EXAMPLE +{ foo } | Should -Not -Throw +By using -Not with -Throw, the opposite effect is achieved. +"Should -Not -Throw" expects no error, but one occurs, and the test fails. + +.EXAMPLE +{ $foo = 1 } | Should -Throw +Assigning a variable does not throw an error. +If asserting "Should -Throw" but no error occurs, the test fails. + +.EXAMPLE +{ $foo = 1 } | Should -Not -Throw +Assert that assigning a variable should not throw an error. +It does not throw an error, so the test passes. +#> + $actualExceptionMessage = "" + $actualExceptionWasThrown = $false + $actualError = $null + $actualException = $null + $actualExceptionLine = $null + + if ($null -eq $ActualValue) { + throw (New-Object -TypeName ArgumentNullException -ArgumentList "ActualValue", "Scriptblock not found. Input to 'Throw' and 'Not Throw' must be enclosed in curly braces.") + } + + try { + do { + Write-ScriptBlockInvocationHint -Hint "Should -Throw" -ScriptBlock $ActualValue + $null = & $ActualValue + } until ($true) + } + catch { + $actualExceptionWasThrown = $true + $actualError = $_ + $actualException = $_.Exception + $actualExceptionMessage = $_.Exception.Message + $actualErrorId = $_.FullyQualifiedErrorId + $actualExceptionLine = (Get-ExceptionLineInfo $_.InvocationInfo) -replace [System.Environment]::NewLine, "$([System.Environment]::NewLine) " + } + + [bool] $succeeded = $false + + if ($Negate) { + # this is for Should -Not -Throw. Once *any* exception was thrown we should fail the assertion + # there is no point in filtering the exception, because there should be none + $succeeded = -not $actualExceptionWasThrown + if (-not $succeeded) { + $failureMessage = "Expected no exception to be thrown,$(Format-Because $Because) but an exception `"$actualExceptionMessage`" was thrown $actualExceptionLine." + return New-Object psobject -Property @{ + Succeeded = $succeeded + FailureMessage = $failureMessage + } + } + else { + return New-Object psobject -Property @{ + Succeeded = $true + } + } + } + + # the rest is for Should -Throw, we must fail the assertion when no exception is thrown + # or when the exception does not match our filter + + function Join-And ($Items, $Threshold = 2) { + + if ($null -eq $items -or $items.count -lt $Threshold) { + $items -join ', ' + } + else { + $c = $items.count + ($items[0..($c - 2)] -join ', ') + ' and ' + $items[-1] + } + } + + function Add-SpaceToNonEmptyString ([string]$Value) { + if ($Value) { + " $Value" + } + } + + $buts = @() + $filters = @() + + $filterOnExceptionType = $null -ne $ExceptionType + if ($filterOnExceptionType) { + $filters += "with type $(Format-Nicely $ExceptionType)" + + if ($actualExceptionWasThrown -and $actualException -isnot $ExceptionType) { + $buts += "the exception type was $(Format-Nicely ($actualException.GetType()))" + } + } + + $filterOnMessage = -not [string]::IsNullOrEmpty($ExpectedMessage -replace "\s") + if ($filterOnMessage) { + $filters += "with message $(Format-Nicely $ExpectedMessage)" + if ($actualExceptionWasThrown -and (-not (Get-DoValuesMatch $actualExceptionMessage $ExpectedMessage))) { + $buts += "the message was $(Format-Nicely $actualExceptionMessage)" + } + } + + $filterOnId = -not [string]::IsNullOrEmpty($ErrorId -replace "\s") + if ($filterOnId) { + $filters += "with FullyQualifiedErrorId $(Format-Nicely $ErrorId)" + if ($actualExceptionWasThrown -and (-not (Get-DoValuesMatch $actualErrorId $ErrorId))) { + $buts += "the FullyQualifiedErrorId was $(Format-Nicely $actualErrorId)" + } + } + + if (-not $actualExceptionWasThrown) { + $buts += "no exception was thrown" + } + + if ($buts.Count -ne 0) { + $filter = Add-SpaceToNonEmptyString ( Join-And $filters -Threshold 3 ) + $but = Join-And $buts + $failureMessage = "Expected an exception,$filter to be thrown,$(Format-Because $Because) but $but. $actualExceptionLine".Trim() + + return New-Object psobject -Property @{ + Succeeded = $false + FailureMessage = $failureMessage + } + } + + $result = New-Object psobject -Property @{ + Succeeded = $true + } + + if ($PassThru) { + $result | Add-Member -MemberType NoteProperty -Name 'Data' -Value $actualError + } + + return $result +} + +function Get-DoValuesMatch($ActualValue, $ExpectedValue) { + #user did not specify any message filter, so any message matches + if ($null -eq $ExpectedValue ) { + return $true + } + + return $ActualValue.ToString().IndexOf($ExpectedValue, [System.StringComparison]::InvariantCultureIgnoreCase) -ge 0 +} + +function Get-ExceptionLineInfo($info) { + # $info.PositionMessage has a leading blank line that we need to account for in PowerShell 2.0 + $positionMessage = $info.PositionMessage -split '\r?\n' -match '\S' -join [System.Environment]::NewLine + return ($positionMessage -replace "^At ", "from ") +} + +function ShouldThrowFailureMessage { + # to make the should tests happy, for now +} + +function NotShouldThrowFailureMessage { + # to make the should tests happy, for now +} + +Add-AssertionOperator -Name Throw ` + -InternalName Should-Throw ` + -Test ${function:Should-Throw} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUcDtzYzBS28RXgFpn0gGLPVKV +# moCggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3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WXF1by2SEndShjR4Nvvz7dHLuL9rEsf4WIILbgB +# PebP6Nwl+RZJqxIcM1yu/Mv+K9V8hpr3eI0eNwH21LHBVickbdoULB2qeo5qWuIR +# +fkK4hvyj9gYjBhXVU6I31D7u5ySwF1RE7iz8OersVVrB028zD7V21u0VuQXDcIT +# 32XeX/RECmIfJNxpFYEMqYaQSVUB+fqwpq2QLEnwRct4l1+St/yHT839T2wgcGQQ +# Ah09mGwZMKGCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDE0WjAjBgkqhkiG9w0BCQQx +# FgQU/Xt8U+rYmmV1xQsC86zkXXIg30gwDQYJKoZIhvcNAQEBBQAEggEAhc22PMUN +# pZvsxJIoYTYB09+Jg2ds/y6lz5qFBlejvW6fHzY8gyt1SyquVpQFSurLzcWnvTn+ +# BcCB9h6qBM/4299Gc51pmiTYbKNTcdRTvraBRLbMPmtiUvdUHNmEnGjgcQDmzuEF +# nm0HDtg6gyb5ekFPys7shlrtd1bBhTdrT06uzEZ2ooi5EyhCWWmbMa3zOso/62y/ +# hkXHH+DTyXIjamKuFaEYQS/9LIuOOOFdHyNYcRdi5amrxfZrJN0B2+fwwqp9OVb8 +# I/0nZ1b6DMDytcOPO0CDKKXqwlomC9/KBCwWQ2RE7NR27uVM/JbNf3rytxTUjC2m +# PIXTZxf0vBDtJg== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Set-TestInconclusive.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Set-TestInconclusive.ps1 new file mode 100644 index 000000000000..74edace699cb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Set-TestInconclusive.ps1 @@ -0,0 +1,199 @@ +function Set-TestInconclusive { + <# + + .SYNOPSIS + Deprecated. Use `Set-ItResult -Inconclusive` instead + + .DESCRIPTION + Set-TestInconclusive was used inside an It block to mark the test as inconclusive. + If you need this functionality please use the new Set-ItResult command. + + .PARAMETER Message + Value assigned to the Message parameter will be displayed in the the test result. + + .EXAMPLE + ```ps + Describe "Example" { + + It "My test" { + Set-TestInconclusive -Message "we forced it to be inconclusive" + } + + } + ``` + + The test result. + + ``` + Describing Example + [?] My test, is inconclusive because we forced it to be inconclusive 58ms + ``` + +#> + [CmdletBinding()] + param ( + [string] $Message + ) + + if (!$script:HasAlreadyWarnedAboutDeprecation) { + Write-Warning 'DEPRECATED: Set-TestInconclusive was deprecated and will be removed in the future. Please update your scripts to use `Set-ItResult -Inconclusive -Because $Message`.' + $script:HasAlreadyWarnedAboutDeprecation = $true + } + + Set-ItResult -Inconclusive -Because $Message +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU4DTzPHr4kWsbiqe17ZYx1LT1 +# CPaggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3Vy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mjvAAYMYE1q +# fuoyA6w+hEeEQdYqn7y0O6ISgnmm4sKgFf5aeMSgau8I7KA+HVV9dxL3qiRuaA7+ +# te04bVxmIHgEWw== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Should.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Should.ps1 new file mode 100644 index 000000000000..9a6961a80cb5 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Assertions/Should.ps1 @@ -0,0 +1,357 @@ +function Parse-ShouldArgs([object[]] $shouldArgs) { + if ($null -eq $shouldArgs) { + $shouldArgs = @() + } + + $parsedArgs = @{ + PositiveAssertion = $true + ExpectedValue = $null + } + + $assertionMethodIndex = 0 + $expectedValueIndex = 1 + + if ($shouldArgs.Count -gt 0 -and $shouldArgs[0] -eq "not") { + $parsedArgs.PositiveAssertion = $false + $assertionMethodIndex += 1 + $expectedValueIndex += 1 + } + + if ($assertionMethodIndex -lt $shouldArgs.Count) { + $parsedArgs.AssertionMethod = "$($shouldArgs[$assertionMethodIndex])" + } + else { + throw 'You cannot call Should without specifying an assertion method.' + } + + if ($expectedValueIndex -lt $shouldArgs.Count) { + $parsedArgs.ExpectedValue = $shouldArgs[$expectedValueIndex] + } + + return $parsedArgs +} + +function Get-FailureMessage($assertionEntry, $negate, $value, $expected) { + if ($negate) { + $failureMessageFunction = $assertionEntry.GetNegativeFailureMessage + } + else { + $failureMessageFunction = $assertionEntry.GetPositiveFailureMessage + } + + return (& $failureMessageFunction $value $expected) +} + +function New-ShouldErrorRecord ([string] $Message, [string] $File, [string] $Line, [string] $LineText) { + $exception = & $SafeCommands['New-Object'] Exception $Message + $errorID = 'PesterAssertionFailed' + $errorCategory = [Management.Automation.ErrorCategory]::InvalidResult + # we use ErrorRecord.TargetObject to pass structured information about the error to a reporting system. + $targetObject = @{Message = $Message; File = $File; Line = $Line; LineText = $LineText} + $errorRecord = & $SafeCommands['New-Object'] Management.Automation.ErrorRecord $exception, $errorID, $errorCategory, $targetObject + return $errorRecord +} + +function Should { + <# + .SYNOPSIS + Should is a keyword what is used to define an assertion inside It block. + + .DESCRIPTION + Should is a keyword what is used to define an assertion inside the It block. + Should provides assertion methods for verify assertion e.g. comparing objects. + If assertion is not met the test fails and an exception is throwed up. + + Should can be used more than once in the It block if more than one assertion + need to be verified. Each Should keywords need to be located in a new line. + Test will be passed only when all assertion will be met (logical conjuction). + +#> + + [CmdletBinding(DefaultParameterSetName = 'Legacy')] + param ( + [Parameter(ParameterSetName = 'Legacy', Position = 0)] + [object] $__LegacyArg1, + + [Parameter(ParameterSetName = 'Legacy', Position = 1)] + [object] $__LegacyArg2, + + [Parameter(ParameterSetName = 'Legacy', Position = 2)] + [object] $__LegacyArg3, + + [Parameter(ValueFromPipeline = $true)] + [object] $ActualValue + ) + + dynamicparam { + Get-AssertionDynamicParams + } + + begin { + $inputArray = New-Object System.Collections.Generic.List[PSObject] + + if ($PSCmdlet.ParameterSetName -eq 'Legacy') { + $parsedArgs = Parse-ShouldArgs ($__LegacyArg1, $__LegacyArg2, $__LegacyArg3) + $entry = Get-AssertionOperatorEntry -Name $parsedArgs.AssertionMethod + if ($null -eq $entry) { + throw "'$($parsedArgs.AssertionMethod)' is not a valid Should operator." + } + } + } + + process { + $inputArray.Add($ActualValue) + } + + end { + $lineNumber = $MyInvocation.ScriptLineNumber + $lineText = $MyInvocation.Line.TrimEnd("$([System.Environment]::NewLine)") + $file = $MyInvocation.ScriptName + + if ($PSCmdlet.ParameterSetName -eq 'Legacy') { + if ($inputArray.Count -eq 0) { + Invoke-LegacyAssertion $entry $parsedArgs $null $file $lineNumber $lineText + } + elseif ($entry.SupportsArrayInput) { + Invoke-LegacyAssertion $entry $parsedArgs $inputArray.ToArray() $file $lineNumber $lineText + } + else { + foreach ($object in $inputArray) { + Invoke-LegacyAssertion $entry $parsedArgs $object $file $lineNumber $lineText + } + } + } + else { + $negate = $false + if ($PSBoundParameters.ContainsKey('Not')) { + $negate = [bool]$PSBoundParameters['Not'] + } + + $null = $PSBoundParameters.Remove('ActualValue') + $null = $PSBoundParameters.Remove($PSCmdlet.ParameterSetName) + $null = $PSBoundParameters.Remove('Not') + + $entry = Get-AssertionOperatorEntry -Name $PSCmdlet.ParameterSetName + + if ($inputArray.Count -eq 0) { + Invoke-Assertion $entry $PSBoundParameters $null $file $lineNumber $lineText -Negate:$negate + } + elseif ($entry.SupportsArrayInput) { + Invoke-Assertion $entry $PSBoundParameters $inputArray.ToArray() $file $lineNumber $lineText -Negate:$negate + } + else { + foreach ($object in $inputArray) { + Invoke-Assertion $entry $PSBoundParameters $object $file $lineNumber $lineText -Negate:$negate + } + } + } + } +} + +function Invoke-LegacyAssertion($assertionEntry, $shouldArgs, $valueToTest, $file, $lineNumber, $lineText) { + # $expectedValueSplat = @( + # if ($null -ne $shouldArgs.ExpectedValue) + # { + # ,$shouldArgs.ExpectedValue + # } + # ) + + $negate = -not $shouldArgs.PositiveAssertion + + $testResult = (& $assertionEntry.Test $valueToTest $shouldArgs.ExpectedValue -Negate:$negate) + if (-not $testResult.Succeeded) { + throw ( New-ShouldErrorRecord -Message $testResult.FailureMessage -File $file -Line $lineNumber -LineText $lineText ) + } +} + +function Invoke-Assertion { + param ( + [object] $AssertionEntry, + [System.Collections.IDictionary] $BoundParameters, + [object] $valuetoTest, + [string] $File, + [int] $LineNumber, + [string] $LineText, + [switch] $Negate + ) + + $testResult = & $AssertionEntry.Test -ActualValue $valuetoTest -Negate:$Negate @BoundParameters + if (-not $testResult.Succeeded) { + throw ( New-ShouldErrorRecord -Message $testResult.FailureMessage -File $file -Line $lineNumber -LineText $lineText ) + } + else { + #extract data to return if there are any on the object + $data = $testResult.psObject.Properties.Item('Data') + if ($data) { + $data.Value + } + } +} + +function Format-Because ([string] $Because) { + if ($null -eq $Because) { + return + } + + $bcs = $Because.Trim() + if ([string]::IsNullOrEmpty($bcs)) { + return + } + + " because $($bcs -replace 'because\s')," +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUg/IM9IPRr86fAbD+ZeIB5mMd +# x3SggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZlHvN7axg+pCgdEJrtIyvhHPqXeE2j +# cdMrfmYY1lq2FBpELEW1imYlu5BnaJd/5IT7WjHL3LWx5Su9FkY5RwrA6+X78+j+ +# vKv00JtDjM0dT+4A/m65jXSywxa4YoGDqQ5n+BwDMQlWCzfu37sCAwEAAaOCAcUw +# ggHBMB8GA1UdIwQYMBaAFFrEuXsqCqOl6nEDwGD5LfZldQ5YMB0GA1Ud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gUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDE1WjAjBgkqhkiG9w0BCQQx +# FgQU+NA27rBiAhrvenFm8kU3EPokb8QwDQYJKoZIhvcNAQEBBQAEggEAT9V9OyG0 +# IposxTlr5+HsG1+QqNxhztudH1Zbs4jamCzXta7gj3szHLK4ckwLoN4IFAElfPhc +# EK6qNxz3Sgjy8dzf7MWdVPGBc56/keyvJtcTKzWzVITDsgmONbyKuJAArrLcyCPM +# 9kYQ1cv83hTdJu0SRHfKf1cmrg18Vk+EJqfNNmcg+LuGF1ClfO8RwABIgBnu7gRv +# KKuj2A+WFos1eUi81SP+5kd2Gu8hlJe3TTwyDWL2hwoyb3sQ7Z2MSzOH+hdWsECd +# ubWqZ4ZiJuDbyVTQw4FDoo32HwuPv05b4nlNbq67IqNqWy/h4OWSgRBptVfqcrZF +# ZaeKkukIhQhtgw== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Context.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Context.ps1 new file mode 100644 index 000000000000..1d2aba1808cc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Context.ps1 @@ -0,0 +1,248 @@ +function Context { + <# +.SYNOPSIS +Provides logical grouping of It blocks within a single Describe block. + +.DESCRIPTION +Provides logical grouping of It blocks within a single Describe block. +Any Mocks defined inside a Context are removed at the end of the Context scope, +as are any files or folders added to the TestDrive during the Context block's +execution. Any BeforeEach or AfterEach blocks defined inside a Context also only +apply to tests within that Context . + +.PARAMETER Name +The name of the Context. This is a phrase describing a set of tests within a describe. + +.PARAMETER Tag +Optional parameter containing an array of strings. When calling Invoke-Pester, +it is possible to specify a -Tag parameter which will only execute Context blocks +containing the same Tag. + +.PARAMETER Fixture +Script that is executed. This may include setup specific to the context +and one or more It blocks that validate the expected outcomes. + +.EXAMPLE +```ps +function Add-Numbers($a, $b) { + return $a + $b +} + +Describe "Add-Numbers" { + + Context "when root does not exist" { + It "..." { ... } + } + + Context "when root does exist" { + It "..." { ... } + It "..." { ... } + It "..." { ... } + } +} +``` + +.LINK +https://pester.dev/docs/commands/Describe + +.LINK +https://pester.dev/docs/commands/It + +.LINK +https://pester.dev/docs/commands/BeforeEach + +.LINK +https://pester.dev/docs/commands/AfterEach + +.LINK +https://pester.dev/docs/commands/Should + +.LINK +https://pester.dev/docs/usage/mocking + +.LINK +https://pester.dev/docs/usage/testdrive + +#> + param( + [Parameter(Mandatory = $true, Position = 0)] + [string] $Name, + + [Alias('Tags')] + [string[]] $Tag = @(), + + [Parameter(Position = 1)] + [ScriptBlock] $Fixture + ) + if ($Fixture -eq $null) { + if ($Name.Contains("`n")) { + throw "Test fixture name has multiple lines and no test fixture is provided. (Have you provided a name for the test group?)" + } + else { + throw 'No test fixture is provided. (Have you put the open curly brace on the next line?)' + } + } + if ($null -eq (& $SafeCommands['Get-Variable'] -Name Pester -ValueOnly -ErrorAction $script:IgnoreErrorPreference)) { + # User has executed a test script directly instead of calling Invoke-Pester + $sessionState = Set-SessionStateHint -PassThru -Hint "Caller - Captured in Context" -SessionState $PSCmdlet.SessionState + $Pester = New-PesterState -Path (& $SafeCommands['Resolve-Path'] .) -TestNameFilter $null -TagFilter @() -SessionState SessionState + $script:mockTable = @{ } + } + + DescribeImpl @PSBoundParameters -CommandUsed 'Context' -Pester $Pester -DescribeOutputBlock ${function:Write-Describe} -TestOutputBlock ${function:Write-PesterResult} -NoTestRegistry:('Windows' -ne (GetPesterOs)) +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4D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jUMnppGytHppteTrg7jCoSkotQdJ/Qli/Hwg +# nU/1LUYZfy/sQa/n3krXMWx9wyiL3+5845YVmlbKarKTjD1RRr640au/GWueOBVm +# 1nipjksNjX1FN5Bq+Tl/hbcQtozlbilXH5R0w7Kjx/m4u5DHbZPiRvjKDtDiBBlu +# HBTheDCFbT0fMOkZCH6DdKb0u+Rm87EZGIXzmjfubj4W+32AJE3fS2lVAYBzGi7X +# ZJnS86K/lh9d7Tt+qWwK0xdngCSGi84vkXKG/LHJ/Kb60frnUKiOm+6WyhbhmCIm +# orD1ZA8X6ITl2g== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Coverage.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Coverage.ps1 new file mode 100644 index 000000000000..ffd17460ef19 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Coverage.ps1 @@ -0,0 +1,962 @@ +if ($PSVersionTable.PSVersion.Major -le 2) { + function Exit-CoverageAnalysis { } + function Get-CoverageReport { } + function Write-CoverageReport { } + function Enter-CoverageAnalysis { + param ( $CodeCoverage ) + + if ($CodeCoverage) { + & $SafeCommands['Write-Error'] 'Code coverage analysis requires PowerShell 3.0 or later.' + } + } + + return +} + +function Enter-CoverageAnalysis { + [CmdletBinding()] + param ( + [object[]] $CodeCoverage, + [object] $PesterState + ) + + $coverageInfo = + foreach ($object in $CodeCoverage) { + Get-CoverageInfoFromUserInput -InputObject $object + } + + $PesterState.CommandCoverage = @(Get-CoverageBreakpoints -CoverageInfo $coverageInfo) +} + +function Exit-CoverageAnalysis { + param ([object] $PesterState) + + & $SafeCommands['Set-StrictMode'] -Off + + # PSScriptAnalyzer it will flag this line because $null is on the LHS of -ne. + # BUT that is correct in this case. We are filtering the list of breakpoints + # to only get those that are not $null + # (like if we did $breakpoints | where {$_ -ne $null}) + # so DON'T change this. + $breakpoints = @($PesterState.CommandCoverage.Breakpoint) -ne $null + if ($breakpoints.Count -gt 0) { + & $SafeCommands['Remove-PSBreakpoint'] -Breakpoint $breakpoints + } +} + +function Get-CoverageInfoFromUserInput { + param ( + [Parameter(Mandatory = $true)] + [object] + $InputObject + ) + + if ($InputObject -is [System.Collections.IDictionary]) { + $unresolvedCoverageInfo = Get-CoverageInfoFromDictionary -Dictionary $InputObject + } + else { + $Path = $InputObject -as [string] + + # Auto-detect IncludeTests-value from path-input + $IncludeTests = $Path -match '\.tests\.ps1$' + + $unresolvedCoverageInfo = New-CoverageInfo -Path $Path -IncludeTests $IncludeTests + } + + Resolve-CoverageInfo -UnresolvedCoverageInfo $unresolvedCoverageInfo +} + +function New-CoverageInfo { + param ([string] $Path, [string] $Class = $null, [string] $Function = $null, [int] $StartLine = 0, [int] $EndLine = 0, [bool] $IncludeTests = $false) + + return [pscustomobject]@{ + Path = $Path + Class = $Class + Function = $Function + StartLine = $StartLine + EndLine = $EndLine + IncludeTests = $IncludeTests + } +} + +function Get-CoverageInfoFromDictionary { + param ([System.Collections.IDictionary] $Dictionary) + + [string] $path = Get-DictionaryValueFromFirstKeyFound -Dictionary $Dictionary -Key 'Path', 'p' + if ([string]::IsNullOrEmpty($path)) { + throw "Coverage value '$Dictionary' is missing required Path key." + } + + $startLine = Get-DictionaryValueFromFirstKeyFound -Dictionary $Dictionary -Key 'StartLine', 'Start', 's' + $endLine = Get-DictionaryValueFromFirstKeyFound -Dictionary $Dictionary -Key 'EndLine', 'End', 'e' + [string] $class = Get-DictionaryValueFromFirstKeyFound -Dictionary $Dictionary -Key 'Class', 'c' + [string] $function = Get-DictionaryValueFromFirstKeyFound -Dictionary $Dictionary -Key 'Function', 'f' + $includeTests = Get-DictionaryValueFromFirstKeyFound -Dictionary $Dictionary -Key 'IncludeTests' + + $startLine = Convert-UnknownValueToInt -Value $startLine -DefaultValue 0 + $endLine = Convert-UnknownValueToInt -Value $endLine -DefaultValue 0 + [bool] $includeTests = Convert-UnknownValueToInt -Value $includeTests -DefaultValue 0 + + return New-CoverageInfo -Path $path -StartLine $startLine -EndLine $endLine -Class $class -Function $function -IncludeTests $includeTests +} + +function Convert-UnknownValueToInt { + param ([object] $Value, [int] $DefaultValue = 0) + + try { + return [int] $Value + } + catch { + return $DefaultValue + } +} + +function Resolve-CoverageInfo { + param ([psobject] $UnresolvedCoverageInfo) + + $path = $UnresolvedCoverageInfo.Path + + $testsPattern = '\.tests\.ps1$' + $includeTests = $UnresolvedCoverageInfo.IncludeTests + + try { + $resolvedPaths = & $SafeCommands['Resolve-Path'] -Path $path -ErrorAction Stop | + & $SafeCommands['Where-Object'] { $includeTests -or $_.Path -notmatch $testsPattern } + } + catch { + & $SafeCommands['Write-Error'] "Could not resolve coverage path '$path': $($_.Exception.Message)" + return + } + + $filePaths = + foreach ($resolvedPath in $resolvedPaths) { + $item = & $SafeCommands['Get-Item'] -LiteralPath $resolvedPath + if ($item -is [System.IO.FileInfo] -and ('.ps1', '.psm1') -contains $item.Extension) { + $item.FullName + } + elseif (-not $item.PsIsContainer) { + & $SafeCommands['Write-Warning'] "CodeCoverage path '$path' resolved to a non-PowerShell file '$($item.FullName)'; this path will not be part of the coverage report." + } + } + + $params = @{ + StartLine = $UnresolvedCoverageInfo.StartLine + EndLine = $UnresolvedCoverageInfo.EndLine + Class = $UnresolvedCoverageInfo.Class + Function = $UnresolvedCoverageInfo.Function + } + + foreach ($filePath in $filePaths) { + $params['Path'] = $filePath + New-CoverageInfo @params + } +} + +function Get-CoverageBreakpoints { + [CmdletBinding()] + param ( + [object[]] $CoverageInfo + ) + + $fileGroups = @($CoverageInfo | & $SafeCommands['Group-Object'] -Property Path) + foreach ($fileGroup in $fileGroups) { + & $SafeCommands['Write-Verbose'] "Initializing code coverage analysis for file '$($fileGroup.Name)'" + $totalCommands = 0 + $analyzedCommands = 0 + + :commandLoop + foreach ($command in Get-CommandsInFile -Path $fileGroup.Name) { + $totalCommands++ + + foreach ($coverageInfoObject in $fileGroup.Group) { + if (Test-CoverageOverlapsCommand -CoverageInfo $coverageInfoObject -Command $command) { + $analyzedCommands++ + New-CoverageBreakpoint -Command $command + continue commandLoop + } + } + } + + & $SafeCommands['Write-Verbose'] "Analyzing $analyzedCommands of $totalCommands commands in file '$($fileGroup.Name)' for code coverage" + } +} + +function Get-CommandsInFile { + param ([string] $Path) + + $errors = $null + $tokens = $null + $ast = [System.Management.Automation.Language.Parser]::ParseFile($Path, [ref] $tokens, [ref] $errors) + + if ($PSVersionTable.PSVersion.Major -ge 5) { + # In PowerShell 5.0, dynamic keywords for DSC configurations are represented by the DynamicKeywordStatementAst + # class. They still trigger breakpoints, but are not a child class of CommandBaseAst anymore. + + $predicate = { + $args[0] -is [System.Management.Automation.Language.DynamicKeywordStatementAst] -or + $args[0] -is [System.Management.Automation.Language.CommandBaseAst] + } + } + else { + $predicate = { $args[0] -is [System.Management.Automation.Language.CommandBaseAst] } + } + + $searchNestedScriptBlocks = $true + $ast.FindAll($predicate, $searchNestedScriptBlocks) +} + +function Test-CoverageOverlapsCommand { + param ([object] $CoverageInfo, [System.Management.Automation.Language.Ast] $Command) + + if ($CoverageInfo.Class -or $CoverageInfo.Function) { + Test-CommandInScope -Command $Command -Class $CoverageInfo.Class -Function $CoverageInfo.Function + } + else { + Test-CoverageOverlapsCommandByLineNumber @PSBoundParameters + } + +} + +function Test-CommandInScope { + param ([System.Management.Automation.Language.Ast] $Command, [string] $Class, [string] $Function) + + $classResult = !$Class + $functionResult = !$Function + for ($ast = $Command; $null -ne $ast; $ast = $ast.Parent) { + if (!$classResult -and $PSVersionTable.PSVersion.Major -ge 5) { + # Classes have been introduced in PowerShell 5.0 + $classAst = $ast -as [System.Management.Automation.Language.TypeDefinitionAst] + if ($null -ne $classAst -and $classAst.Name -like $Class) { + $classResult = $true + } + } + if (!$functionResult) { + $functionAst = $ast -as [System.Management.Automation.Language.FunctionDefinitionAst] + if ($null -ne $functionAst -and $functionAst.Name -like $Function) { + $functionResult = $true + } + } + if ($classResult -and $functionResult) { + return $true + } + } + + return $false +} + +function Test-CoverageOverlapsCommandByLineNumber { + param ([object] $CoverageInfo, [System.Management.Automation.Language.Ast] $Command) + + $commandStart = $Command.Extent.StartLineNumber + $commandEnd = $Command.Extent.EndLineNumber + $coverStart = $CoverageInfo.StartLine + $coverEnd = $CoverageInfo.EndLine + + # An EndLine value of 0 means to cover the entire rest of the file from StartLine + # (which may also be 0) + if ($coverEnd -le 0) { + $coverEnd = [int]::MaxValue + } + + return (Test-RangeContainsValue -Value $commandStart -Min $coverStart -Max $coverEnd) -or + (Test-RangeContainsValue -Value $commandEnd -Min $coverStart -Max $coverEnd) +} + +function Test-RangeContainsValue { + param ([int] $Value, [int] $Min, [int] $Max) + return $Value -ge $Min -and $Value -le $Max +} + +function New-CoverageBreakpoint { + param ([System.Management.Automation.Language.Ast] $Command) + + if (IsIgnoredCommand -Command $Command) { + return + } + + $params = @{ + Script = $Command.Extent.File + Line = $Command.Extent.StartLineNumber + Column = $Command.Extent.StartColumnNumber + Action = { } + } + + $breakpoint = & $SafeCommands['Set-PSBreakpoint'] @params + + [pscustomobject] @{ + File = $Command.Extent.File + Class = Get-ParentClassName -Ast $Command + Function = Get-ParentFunctionName -Ast $Command + StartLine = $Command.Extent.StartLineNumber + EndLine = $Command.Extent.EndLineNumber + StartColumn = $Command.Extent.StartColumnNumber + EndColumn = $Command.Extent.EndColumnNumber + Command = Get-CoverageCommandText -Ast $Command + Breakpoint = $breakpoint + } +} + +function IsIgnoredCommand { + param ([System.Management.Automation.Language.Ast] $Command) + + if (-not $Command.Extent.File) { + # This can happen if the script contains "configuration" or any similarly implemented + # dynamic keyword. PowerShell modifies the script code and reparses it in memory, leading + # to AST elements with no File in their Extent. + return $true + } + + if ($PSVersionTable.PSVersion.Major -ge 4) { + if ($Command.Extent.Text -eq 'Configuration') { + # More DSC voodoo. Calls to "configuration" generate breakpoints, but their HitCount + # stays zero (even though they are executed.) For now, ignore them, unless we can come + # up with a better solution. + return $true + } + + if (IsChildOfHashtableDynamicKeyword -Command $Command) { + # The lines inside DSC resource declarations don't trigger their breakpoints when executed, + # just like the "configuration" keyword itself. I don't know why, at this point, but just like + # configuration, we'll ignore it so it doesn't clutter up the coverage analysis with useless junk. + return $true + } + } + + if (IsClosingLoopCondition -Command $Command) { + # For some reason, the closing expressions of do/while and do/until loops don't trigger their breakpoints. + # To avoid useless clutter, we'll ignore those lines as well. + return $true + } + + return $false +} + +function IsChildOfHashtableDynamicKeyword { + param ([System.Management.Automation.Language.Ast] $Command) + + for ($ast = $Command.Parent; $null -ne $ast; $ast = $ast.Parent) { + if ($PSVersionTable.PSVersion.Major -ge 5) { + # The ast behaves differently for DSC resources with version 5+. There's a new DynamicKeywordStatementAst class, + # and they no longer are represented by CommandAst objects. + + if ($ast -is [System.Management.Automation.Language.DynamicKeywordStatementAst] -and + $ast.CommandElements[-1] -is [System.Management.Automation.Language.HashtableAst]) { + return $true + } + } + else { + if ($ast -is [System.Management.Automation.Language.CommandAst] -and + $null -ne $ast.DefiningKeyword -and + $ast.DefiningKeyword.BodyMode -eq [System.Management.Automation.Language.DynamicKeywordBodyMode]::Hashtable) { + return $true + } + } + } + + return $false +} + +function IsClosingLoopCondition { + param ([System.Management.Automation.Language.Ast] $Command) + + $ast = $Command + + while ($null -ne $ast.Parent) { + if (($ast.Parent -is [System.Management.Automation.Language.DoWhileStatementAst] -or + $ast.Parent -is [System.Management.Automation.Language.DoUntilStatementAst]) -and + $ast.Parent.Condition -eq $ast) { + return $true + } + + $ast = $ast.Parent + } + + return $false +} + +function Get-ParentClassName { + param ([System.Management.Automation.Language.Ast] $Ast) + + if ($PSVersionTable.PSVersion.Major -ge 5) { + # Classes have been introduced in PowerShell 5.0 + + $parent = $Ast.Parent + + while ($null -ne $parent -and $parent -isnot [System.Management.Automation.Language.TypeDefinitionAst]) { + $parent = $parent.Parent + } + } + + if ($null -eq $parent) { + return '' + } + else { + return $parent.Name + } +} + +function Get-ParentFunctionName { + param ([System.Management.Automation.Language.Ast] $Ast) + + $parent = $Ast.Parent + + while ($null -ne $parent -and $parent -isnot [System.Management.Automation.Language.FunctionDefinitionAst]) { + $parent = $parent.Parent + } + + if ($null -eq $parent) { + return '' + } + else { + return $parent.Name + } +} + +function Get-CoverageCommandText { + param ([System.Management.Automation.Language.Ast] $Ast) + + $reportParentExtentTypes = @( + [System.Management.Automation.Language.ReturnStatementAst] + [System.Management.Automation.Language.ThrowStatementAst] + [System.Management.Automation.Language.AssignmentStatementAst] + [System.Management.Automation.Language.IfStatementAst] + ) + + $parent = Get-ParentNonPipelineAst -Ast $Ast + + if ($null -ne $parent) { + if ($parent -is [System.Management.Automation.Language.HashtableAst]) { + return Get-KeyValuePairText -HashtableAst $parent -ChildAst $Ast + } + elseif ($reportParentExtentTypes -contains $parent.GetType()) { + return $parent.Extent.Text + } + } + + return $Ast.Extent.Text +} + +function Get-ParentNonPipelineAst { + param ([System.Management.Automation.Language.Ast] $Ast) + + $parent = $null + if ($null -ne $Ast) { + $parent = $Ast.Parent + } + + while ($parent -is [System.Management.Automation.Language.PipelineAst]) { + $parent = $parent.Parent + } + + return $parent +} + +function Get-KeyValuePairText { + param ( + [System.Management.Automation.Language.HashtableAst] $HashtableAst, + [System.Management.Automation.Language.Ast] $ChildAst + ) + + & $SafeCommands['Set-StrictMode'] -Off + + foreach ($keyValuePair in $HashtableAst.KeyValuePairs) { + if ($keyValuePair.Item2.PipelineElements -contains $ChildAst) { + return '{0} = {1}' -f $keyValuePair.Item1.Extent.Text, $keyValuePair.Item2.Extent.Text + } + } + + # This shouldn't happen, but just in case, default to the old output of just the expression. + return $ChildAst.Extent.Text +} + +function Get-CoverageMissedCommands { + param ([object[]] $CommandCoverage) + $CommandCoverage | & $SafeCommands['Where-Object'] { $_.Breakpoint.HitCount -eq 0 } +} + +function Get-CoverageHitCommands { + param ([object[]] $CommandCoverage) + $CommandCoverage | & $SafeCommands['Where-Object'] { $_.Breakpoint.HitCount -gt 0 } +} + +function Get-CoverageReport { + param ([object] $PesterState) + + $properties = @( + 'File' + @{ Name = 'Line'; Expression = { $_.StartLine } } + 'StartLine' + 'EndLine' + 'StartColumn' + 'EndColumn' + 'Class' + 'Function' + 'Command' + @{ Name = 'HitCount'; Expression = { $_.Breakpoint.HitCount } } + ) + $missedCommands = @(Get-CoverageMissedCommands -CommandCoverage $PesterState.CommandCoverage | & $SafeCommands['Select-Object'] $properties) + $hitCommands = @(Get-CoverageHitCommands -CommandCoverage $PesterState.CommandCoverage | & $SafeCommands['Select-Object'] $properties) + $analyzedFiles = @($PesterState.CommandCoverage | & $SafeCommands['Select-Object'] -ExpandProperty File -Unique) + + [pscustomobject] @{ + NumberOfCommandsAnalyzed = $PesterState.CommandCoverage.Count + NumberOfFilesAnalyzed = $analyzedFiles.Count + NumberOfCommandsExecuted = $hitCommands.Count + NumberOfCommandsMissed = $missedCommands.Count + MissedCommands = $missedCommands + HitCommands = $hitCommands + AnalyzedFiles = $analyzedFiles + } +} + +function Get-CommonParentPath { + param ([string[]] $Path) + + $pathsToTest = @( + $Path | + Normalize-Path | + & $SafeCommands['Select-Object'] -Unique + ) + + if ($pathsToTest.Count -gt 0) { + $parentPath = & $SafeCommands['Split-Path'] -Path $pathsToTest[0] -Parent + + while ($parentPath.Length -gt 0) { + $nonMatches = $pathsToTest -notmatch "^$([regex]::Escape($parentPath))" + + if ($nonMatches.Count -eq 0) { + return $parentPath + } + else { + $parentPath = & $SafeCommands['Split-Path'] -Path $parentPath -Parent + } + } + } + + return [string]::Empty +} + +function Get-RelativePath { + param ( [string] $Path, [string] $RelativeTo ) + return $Path -replace "^$([regex]::Escape("$RelativeTo$([System.IO.Path]::DirectorySeparatorChar)"))?" +} + +function Normalize-Path { + [CmdletBinding()] + param ( + [Parameter(ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] + [Alias('PSPath', 'FullName')] + [string[]] $Path + ) + + # Split-Path and Join-Path will replace any AltDirectorySeparatorChar instances with the DirectorySeparatorChar + # (Even if it's not the one that the split / join happens on.) So splitting / rejoining a path will give us + # consistent separators for later string comparison. + + process { + if ($null -ne $Path) { + foreach ($p in $Path) { + $normalizedPath = & $SafeCommands['Split-Path'] $p -Leaf + + if ($normalizedPath -ne $p) { + $parent = & $SafeCommands['Split-Path'] $p -Parent + $normalizedPath = & $SafeCommands['Join-Path'] $parent $normalizedPath + } + + $normalizedPath + } + } + } +} + +function Get-JaCoCoReportXml { + param ( + [parameter(Mandatory = $true)] + $PesterState, + [parameter(Mandatory = $true)] + [object] $CoverageReport + ) + + if ($null -eq $CoverageReport -or ($pester.Show -eq [Pester.OutputTypes]::None) -or $CoverageReport.NumberOfCommandsAnalyzed -eq 0) { + return + } + + $now = & $SafeCommands['Get-Date'] + $nineteenSeventy = & $SafeCommands['Get-Date'] -Date "01/01/1970" + [long] $endTime = [math]::Floor((New-TimeSpan -start $nineteenSeventy -end $now).TotalMilliseconds) + [long] $startTime = [math]::Floor($endTime - $PesterState.Time.TotalMilliseconds) + + $folderGroups = $PesterState.CommandCoverage | & $SafeCommands["Group-Object"] -Property { + & $SafeCommands["Split-Path"] $_.File -Parent + } + + $packageList = & $SafeCommands['New-Object'] System.Collections.Generic.List[psobject] + + $report = @{ + Instruction = @{ Missed = 0; Covered = 0 } + Line = @{ Missed = 0; Covered = 0 } + Method = @{ Missed = 0; Covered = 0 } + Class = @{ Missed = 0; Covered = 0 } + } + + foreach ($folderGroup in $folderGroups) { + + $package = @{ + Name = $folderGroup.Name + Classes = [ordered] @{ } + Instruction = @{ Missed = 0; Covered = 0 } + Line = @{ Missed = 0; Covered = 0 } + Method = @{ Missed = 0; Covered = 0 } + Class = @{ Missed = 0; Covered = 0 } + } + + foreach ($command in $folderGroup.Group) { + $file = $command.File + $function = $command.Function + if (!$function) { $function = ' + + + + + Gherkin.Ast.Scenario + + + ToString + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/GherkinHook.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/GherkinHook.ps1 new file mode 100644 index 000000000000..09c1a614b43d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/GherkinHook.ps1 @@ -0,0 +1,340 @@ +function BeforeEachFeature { + <# + .SYNOPSIS + Defines a ScriptBlock hook to run before each feature to set up the test environment + + .DESCRIPTION + BeforeEachFeature hooks are run before each feature that is in (or above) the folder where the hook is defined. + + This is a convenience method, provided because unlike traditional RSpec Pester, + there is not a simple test script where you can put setup and clean up. + + .PARAMETER Tags + Optional tags. If set, this hook only runs for features with matching tags + + .PARAMETER Script + The ScriptBlock to run for the hook + + .LINK + https://pester.dev/docs/commands/AfterEachFeature + + .LINK + https://pester.dev/docs/commands/BeforeEachScenario + + .LINK + https://pester.dev/docs/commands/AfterEachScenario + #> + [CmdletBinding(DefaultParameterSetName = "All")] + param( + + [Parameter(Mandatory = $True, Position = 0, ParameterSetName = "Tags")] + [String[]]$Tags = @(), + + [Parameter(Mandatory = $True, Position = 1, ParameterSetName = "Tags")] + [Parameter(Mandatory = $True, Position = 0, ParameterSetName = "All")] + [ScriptBlock]$Script + ) + + # This shouldn't be necessary, but PowerShell 2 is BAF + if ($PSCmdlet.ParameterSetName -eq "Tags") { + ${Script:GherkinHooks}.BeforeEachFeature += @( @{ Tags = $Tags; Script = $Script } ) + } + else { + ${Script:GherkinHooks}.BeforeEachFeature += @( @{ Tags = @(); Script = $Script } ) + } +} + +function AfterEachFeature { + <# + .SYNOPSIS + Defines a ScriptBlock hook to run at the very end of a test run + + .DESCRIPTION + AfterEachFeature hooks are run after each feature that is in (or above) the folder where the hook is defined. + + This is a convenience method, provided because unlike traditional RSpec Pester, + there is not a simple test script where you can put setup and clean up. + + .PARAMETER Tags + Optional tags. If set, this hook only runs for features with matching tags. + + .PARAMETER Script + The ScriptBlock to run for the hook + + .LINK + https://pester.dev/docs/commands/BeforeEachFeature + + .LINK + https://pester.dev/docs/commands/BeforeEachScenario + + .LINK + https://pester.dev/docs/commands/AfterEachScenario + #> + [CmdletBinding(DefaultParameterSetName = "All")] + param( + + [Parameter(Mandatory = $True, Position = 0, ParameterSetName = "Tags")] + [String[]]$Tags = @(), + + [Parameter(Mandatory = $True, Position = 1, ParameterSetName = "Tags")] + [Parameter(Mandatory = $True, Position = 0, ParameterSetName = "All")] + [ScriptBlock]$Script + ) + + # This shouldn't be necessary, but PowerShell 2 is BAF + if ($PSCmdlet.ParameterSetName -eq "Tags") { + ${Script:GherkinHooks}.AfterEachFeature += @( @{ Tags = $Tags; Script = $Script } ) + } + else { + ${Script:GherkinHooks}.AfterEachFeature += @( @{ Tags = @(); Script = $Script } ) + } +} + +function BeforeEachScenario { + <# + .SYNOPSIS + Defines a ScriptBlock hook to run before each scenario to set up the test environment + + .DESCRIPTION + BeforeEachScenario hooks are run before each scenario that is in (or above) the folder where the hook is defined. + + You should not normally need this, because it overlaps significantly with the "Background" feature in the gherkin language. + + This is a convenience method, provided because unlike traditional RSpec Pester, + there is not a simple test script where you can put setup and clean up. + + .PARAMETER Tags + Optional tags. If set, this hook only runs for features with matching tags + + .PARAMETER Script + The ScriptBlock to run for the hook + + .LINK + https://pester.dev/docs/commands/AfterEachScenario + + .LINK + https://pester.dev/docs/commands/BeforeEachFeature + + .LINK + https://pester.dev/docs/commands/AfterEachFeature + + #> + [CmdletBinding(DefaultParameterSetName = "All")] + param( + + [Parameter(Mandatory = $True, Position = 0, ParameterSetName = "Tags")] + [String[]]$Tags = @(), + + [Parameter(Mandatory = $True, Position = 1, ParameterSetName = "Tags")] + [Parameter(Mandatory = $True, Position = 0, ParameterSetName = "All")] + [ScriptBlock]$Script + ) + + # This shouldn't be necessary, but PowerShell 2 is BAF + if ($PSCmdlet.ParameterSetName -eq "Tags") { + ${Script:GherkinHooks}.BeforeEachScenario += @( @{ Tags = $Tags; Script = $Script } ) + } + else { + ${Script:GherkinHooks}.BeforeEachScenario += @( @{ Tags = @(); Script = $Script } ) + } +} + +function AfterEachScenario { + <# + .SYNOPSIS + Defines a ScriptBlock hook to run after each scenario to set up the test environment + + .DESCRIPTION + AfterEachScenario hooks are run after each Scenario that is in (or above) the folder where the hook is defined. + + This is a convenience method, provided because unlike traditional RSpec Pester, + there is not a simple test script where you can put setup and clean up. + + .PARAMETER Tags + Optional tags. If set, this hook only runs for features with matching tags + + .PARAMETER Script + The ScriptBlock to run for the hook + + .LINK + https://pester.dev/docs/commands/BeforeEachScenario + + .LINK + https://pester.dev/docs/commands/BeforeEachFeature + + .LINK + https://pester.dev/docs/commands/AfterEachFeature + #> + [CmdletBinding(DefaultParameterSetName = "All")] + param( + [Parameter(Mandatory = $True, Position = 0, ParameterSetName = "Tags")] + [String[]]$Tags = @(), + + [Parameter(Mandatory = $True, Position = 1, ParameterSetName = "Tags")] + [Parameter(Mandatory = $True, Position = 0, ParameterSetName = "All")] + [ScriptBlock]$Script + ) + + # This shouldn't be necessary, but PowerShell 2 is BAF + if ($PSCmdlet.ParameterSetName -eq "Tags") { + ${Script:GherkinHooks}.AfterEachScenario += @( @{ Tags = $Tags; Script = $Script } ) + } + else { + ${Script:GherkinHooks}.AfterEachScenario += @( @{ Tags = @(); Script = $Script } ) + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUS79OYK/ajsPicY/PwWvGQJ+9 +# 9J2ggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYD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9++qxgnhqLt8AbCkotwygvJ9/1VFod1VvVToYznr19E47h3o8R+PbubcM/ +# 0nlT9Q3rygO2hZedlLMXc1D8zqmbkU3ndLGV0CSf9HzKJ4z2QcVLGmSS/2h38DbQ +# LCYlRsHt5muk2SsaQRyrCHmRYXpa9+nIs/0Hq5SSlprEdcegqXY4QUL6rZbZfRsC +# iSuBSP0VFa4OTw== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/GherkinStep.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/GherkinStep.ps1 new file mode 100644 index 000000000000..d05730bb5fc6 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/GherkinStep.ps1 @@ -0,0 +1,252 @@ +function GherkinStep { + <# +.SYNOPSIS +A step in a test, also known as a Given, When, or Then + +.DESCRIPTION +Pester doesn't technically distinguish between the three kinds of steps. +However, we strongly recommend that you do! +These words were carefully selected to convey meaning which is crucial to get you into the BDD mindset. + +In BDD, we drive development by not first stating the requirements, and then defining steps which can be +executed in a manner that is similar to unit tests. + +.PARAMETER Name +The name of a gherkin step is actually a regular expression, from which capturing groups +are cast and passed to the parameters in the ScriptBlock + +.PARAMETER Test +The ScriptBlock which defines this step. May accept parameters from regular expression +capturing groups (named or not), or from tables or multiline strings. + +.EXAMPLE +```ps +# Gherkin Steps need to be placed in a *.Step.ps1 file + +# filename: copyfile.Step.ps1 +Given 'we have a destination folder' { + mkdir testdrive:\target -ErrorAction SilentlyContinue + 'testdrive:\target' | Should Exist +} + +When 'we call Copy-Item' { + { Copy-Item testdrive:\source\something.txt testdrive:\target } | Should Not Throw +} + +Then 'we have a new file in the destination' { + 'testdrive:\target\something.txt' | Should Exist +} + +# Steps need to allign with feature specifications in a *.feature file +# filename: copyfile.feature +Feature: You can copy one file + +Scenario: The file exists, and the target folder exists + Given we have a source file + And we have a destination folder + When we call Copy-Item + Then we have a new file in the destination + And the new file is the same as the original file +``` + +.EXAMPLE +```ps +# This example shows a complex regex match that can be used for multiple lines in the feature specification +# The named match is mapped to the script parameter + +# filename: namedregex.Step.ps1 +Given 'we have a (?\S*) function' { + param($name) + "$psscriptroot\..\MyModule\*\$name.ps1" | Should Exist +} + +# filename: namedregex.feature +Scenario: basic feature support + Given we have public functions + And we have a New-Node function + And we have a New-Edge function + And we have a New-Graph function + And we have a New-Subgraph function +``` + +.LINK +https://sites.google.com/site/unclebobconsultingllc/the-truth-about-bdd + +#> + param( + + [Parameter(Mandatory = $True, Position = 0)] + [String]$Name, + + + [Parameter(Mandatory = $True, Position = 1)] + [ScriptBlock]$Test + ) + # We need to be able to look up where this step is defined + $Definition = (& $SafeCommands["Get-PSCallStack"])[1] + $RelativePath = & $SafeCommands["Resolve-Path"] $Definition.ScriptName -relative + $Source = "{0}: line {1}" -f $RelativePath, $Definition.ScriptLineNumber + + $Script:GherkinSteps.${Name} = $Test | & $SafeCommands["Add-Member"] -MemberType NoteProperty -Name Source -Value $Source -PassThru +} + +Set-Alias Given GherkinStep +Set-Alias When GherkinStep +Set-Alias Then GherkinStep +Set-Alias And GherkinStep +Set-Alias But GherkinStep + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUktqK3SLk1LUpH4LS2SzucGPY +# IeaggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSB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Yh5qrjbyatei5Sxtuq8glRkB86iGPmTAOzQ3rHs +# YzMZmLcZkRBi1A== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/In.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/In.ps1 new file mode 100644 index 000000000000..c2faa54f7ffc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/In.ps1 @@ -0,0 +1,192 @@ +function In { + <# + .SYNOPSIS + A convenience function that executes a script from a specified path. + + .DESCRIPTION + Before the script block passed to the execute parameter is invoked, + the current location is set to the path specified. Once the script + block has been executed, the location will be reset to the location + the script was in prior to calling In. + + .PARAMETER Path + The path that the execute block will be executed in. + + .PARAMETER execute + The script to be executed in the path provided. + + #> + [CmdletBinding()] + param( + $path, + [ScriptBlock] $execute + ) + Assert-DescribeInProgress -CommandName In + + $old_pwd = $pwd + & $SafeCommands['Push-Location'] $path + $pwd = $path + try { + Write-ScriptBlockInvocationHint -Hint "In" -ScriptBlock $execute + & $execute + } + finally { + & $SafeCommands['Pop-Location'] + $pwd = $old_pwd + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUKxv3ny5ywNCQPAxtuikv6Png +# 1pSggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nI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GTTtb3YMJDtEBXo/7dg1JGO3MYGME7pCWxwyOXcWC5W +# Fsw33hXWI/UiOA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/InModuleScope.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/InModuleScope.ps1 new file mode 100644 index 000000000000..f464ed736410 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/InModuleScope.ps1 @@ -0,0 +1,285 @@ +function InModuleScope { + <# +.SYNOPSIS + Allows you to execute parts of a test script within the + scope of a PowerShell script module. +.DESCRIPTION + By injecting some test code into the scope of a PowerShell + script module, you can use non-exported functions, aliases + and variables inside that module, to perform unit tests on + its internal implementation. + + InModuleScope may be used anywhere inside a Pester script, + either inside or outside a Describe block. +.PARAMETER ModuleName + The name of the module into which the test code should be + injected. This module must already be loaded into the current + PowerShell session. +.PARAMETER ScriptBlock + The code to be executed within the script module. +.EXAMPLE + ```ps + # The script module: + function PublicFunction + { + # Does something + } + + function PrivateFunction + { + return $true + } + + Export-ModuleMember -Function PublicFunction + + # The test script: + + Import-Module MyModule + + InModuleScope MyModule { + Describe 'Testing MyModule' { + It 'Tests the Private function' { + PrivateFunction | Should -Be $true + } + } + } + ``` + + Normally you would not be able to access "PrivateFunction" from + the PowerShell session, because the module only exported + "PublicFunction". Using InModuleScope allowed this call to + "PrivateFunction" to work successfully. +#> + + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [string] + $ModuleName, + + [Parameter(Mandatory = $true)] + [scriptblock] + $ScriptBlock + ) + + if ($null -eq (& $SafeCommands['Get-Variable'] -Name Pester -ValueOnly -ErrorAction $script:IgnoreErrorPreference)) { + # User has executed a test script directly instead of calling Invoke-Pester + $sessionState = Set-SessionStateHint -PassThru -Hint "Caller - Captured in InModuleScope" -SessionState $PSCmdlet.SessionState + $Pester = New-PesterState -Path (& $SafeCommands['Resolve-Path'] .) -TestNameFilter $null -TagFilter @() -ExcludeTagFilter @() -SessionState $sessionState + $script:mockTable = @{ } + } + + $module = Get-ScriptModule -ModuleName $ModuleName -ErrorAction Stop + + $originalState = $Pester.SessionState + $originalScriptBlockScope = Get-ScriptBlockScope -ScriptBlock $ScriptBlock + + try { + $sessionState = Set-SessionStateHint -PassThru -Hint "Module - $($module.Name)" -SessionState $module.SessionState + $Pester.SessionState = $sessionState + Set-ScriptBlockScope -ScriptBlock $ScriptBlock -SessionState $sessionState + + do { + Write-ScriptBlockInvocationHint -Hint "InModuleScope" -ScriptBlock $ScriptBlock + & $ScriptBlock + } until ($true) + } + finally { + $Pester.SessionState = $originalState + Set-ScriptBlockScope -ScriptBlock $ScriptBlock -SessionStateInternal $originalScriptBlockScope + } +} + +function Get-ScriptModule { + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [string] $ModuleName + ) + + try { + $modules = @(& $SafeCommands['Get-Module'] -Name $ModuleName -All -ErrorAction Stop) + } + catch { + throw "No module named '$ModuleName' is currently loaded." + } + + $scriptModules = @($modules | & $SafeCommands['Where-Object'] { $_.ModuleType -eq 'Script' }) + + if ($modules.Count -eq 0) { + throw "No module named '$ModuleName' is currently loaded." + } + + if ($scriptModules.Count -gt 1) { + throw "Multiple Script modules named '$ModuleName' are currently loaded. Make sure to remove any extra copies of the module from your session before testing." + } + + if ($scriptModules.Count -eq 0) { + $actualTypes = @( + $modules | + & $SafeCommands['Where-Object'] { $_.ModuleType -ne 'Script' } | + & $SafeCommands['Select-Object'] -ExpandProperty ModuleType -Unique + ) + + $actualTypes = $actualTypes -join ', ' + + throw "Module '$ModuleName' is not a Script module. Detected modules of the following types: '$actualTypes'" + } + + return $scriptModules[0] +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# A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RMvQR +# Jtf67//8a/jeKHvdjZcuR9339iLIMmWKzYKmleyOx96ySM+bWTQPwQSdwigzsSPN +# aks4DkQ14AtVJeFtKDGLgJcyy8OeY9NAg0ffsdGujDsS7ksZkziUxdtGq2TClbRz +# NEeJ1mddQh9sXbKNbtEci3EBuh4DYne+DgAWMJFt+5gG7jQY2/0dVksvJPXslqKh +# MxvbKqu30AMOFCfl4xYuYtNi1EVDYMBvtFT8C76Oevg476X4at6cc+tnZe1rrOKC +# frEN5dYrq8gJMZ4raijBWLYONoGaDVv/Cmd8B9i95AvJDuwcAn/qNa85qyeJr3Yj +# +fTH99GHWdEAuQ== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/It.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/It.ps1 new file mode 100644 index 000000000000..35e31d6ca57c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/It.ps1 @@ -0,0 +1,520 @@ +function It { + <# +.SYNOPSIS +Validates the results of a test inside of a Describe block. + +.DESCRIPTION +The It command is intended to be used inside of a Describe or Context Block. +If you are familiar with the AAA pattern (Arrange-Act-Assert), the body of +the It block is the appropriate location for an assert. The convention is to +assert a single expectation for each It block. The code inside of the It block +should throw a terminating error if the expectation of the test is not met and +thus cause the test to fail. The name of the It block should expressively state +the expectation of the test. + +In addition to using your own logic to test expectations and throw exceptions, +you may also use Pester's Should command to perform assertions in plain language. + +You can intentionally mark It block result as inconclusive by using Set-TestInconclusive +command as the first tested statement in the It block. + +.PARAMETER Name +An expressive phrase describing the expected test outcome. + +.PARAMETER Test +The script block that should throw an exception if the +expectation of the test is not met.If you are following the +AAA pattern (Arrange-Act-Assert), this typically holds the +Assert. + +.PARAMETER Pending +Use this parameter to explicitly mark the test as work-in-progress/not implemented/pending when you +need to distinguish a test that fails because it is not finished yet from a tests +that fail as a result of changes being made in the code base. An empty test, that is a +test that contains nothing except whitespace or comments is marked as Pending by default. + +.PARAMETER Skip +Use this parameter to explicitly mark the test to be skipped. This is preferable to temporarily +commenting out a test, because the test remains listed in the output. Use the Strict parameter +of Invoke-Pester to force all skipped tests to fail. + +.PARAMETER TestCases +Optional array of hashtable (or any IDictionary) objects. If this parameter is used, +Pester will call the test script block once for each table in the TestCases array, +splatting the dictionary to the test script block as input. If you want the name of +the test to appear differently for each test case, you can embed tokens into the Name +parameter with the syntax 'Adds numbers and ' (assuming you have keys named A and B +in your TestCases hashtables.) + +.EXAMPLE +```ps +function Add-Numbers($a, $b) { + return $a + $b +} + +Describe "Add-Numbers" { + It "adds positive numbers" { + $sum = Add-Numbers 2 3 + $sum | Should -Be 5 + } + + It "adds negative numbers" { + $sum = Add-Numbers (-2) (-2) + $sum | Should -Be (-4) + } + + It "adds one negative number to positive number" { + $sum = Add-Numbers (-2) 2 + $sum | Should -Be 0 + } + + It "concatenates strings if given strings" { + $sum = Add-Numbers two three + $sum | Should -Be "twothree" + } +} +``` + +.EXAMPLE +```ps +function Add-Numbers($a, $b) { + return $a + $b +} + +Describe "Add-Numbers" { + $testCases = @( + @{ a = 2; b = 3; expectedResult = 5 } + @{ a = -2; b = -2; expectedResult = -4 } + @{ a = -2; b = 2; expectedResult = 0 } + @{ a = 'two'; b = 'three'; expectedResult = 'twothree' } + ) + + It 'Correctly adds and to get ' -TestCases $testCases { + param ($a, $b, $expectedResult) + + $sum = Add-Numbers $a $b + $sum | Should -Be $expectedResult + } +} +``` + +.LINK +https://pester.dev/docs/commands/Describe + +.LINK +https://pester.dev/docs/commands/Context + +.LINK +https://pester.dev/docs/commands/Set-TestInconclusive + +.LINK +https://pester.dev/docs/commands/Should + +#> + [CmdletBinding(DefaultParameterSetName = 'Normal')] + param( + [Parameter(Mandatory = $true, Position = 0)] + [string] $Name, + + [Parameter(Position = 1)] + [ScriptBlock] $Test = { }, + + [System.Collections.IDictionary[]] $TestCases, + + [Parameter(ParameterSetName = 'Pending')] + [Switch] $Pending, + + [Parameter(ParameterSetName = 'Skip')] + [Alias('Ignore')] + [Switch] $Skip + ) + + ItImpl -Pester $pester -OutputScriptBlock ${function:Write-PesterResult} @PSBoundParameters +} + +function ItImpl { + [CmdletBinding(DefaultParameterSetName = 'Normal')] + param( + [Parameter(Mandatory = $true, Position = 0)] + [string]$Name, + + [Parameter(Position = 1)] + [ScriptBlock] $Test, + + [System.Collections.IDictionary[]] $TestCases, + [Parameter(ParameterSetName = 'Pending')] + [Switch] $Pending, + + [Parameter(ParameterSetName = 'Skip')] + [Alias('Ignore')] + [Switch] $Skip, + + $Pester, + [scriptblock] $OutputScriptBlock + ) + + Assert-DescribeInProgress -CommandName It + + # Jumping through hoops to make strict mode happy. + if ($PSCmdlet.ParameterSetName -ne 'Skip') { + $Skip = $false + } + if ($PSCmdlet.ParameterSetName -ne 'Pending') { + $Pending = $false + } + + #unless Skip or Pending is specified you must specify a ScriptBlock to the Test parameter + if (-not ($PSBoundParameters.ContainsKey('test') -or $Skip -or $Pending)) { + If ($Name.Contains("`n")) { + throw "Name parameter has multiple lines and no script block is provided. (Have you provided a name for the test group?)" + } + else { + throw 'No test script block is provided. (Have you put the open curly brace on the next line?)' + } + } + + #the function is called with Pending or Skipped set the script block if needed + if ($null -eq $Test) { + $Test = { } + } + + #mark empty Its as Pending + if ($PSVersionTable.PSVersion.Major -le 2 -and + $PSCmdlet.ParameterSetName -eq 'Normal' -and + [String]::IsNullOrEmpty((Remove-Comments $Test.ToString()) -replace "\s")) { + $Pending = $true + } + elseIf ($PSVersionTable.PSVersion.Major -gt 2) { + #[String]::IsNullOrWhitespace is not available in .NET version used with PowerShell 2 + # AST is not available also + $testIsEmpty = + [String]::IsNullOrEmpty($Test.Ast.BeginBlock.Statements) -and + [String]::IsNullOrEmpty($Test.Ast.ProcessBlock.Statements) -and + [String]::IsNullOrEmpty($Test.Ast.EndBlock.Statements) + + if ($PSCmdlet.ParameterSetName -eq 'Normal' -and $testIsEmpty) { + $Pending = $true + } + } + + $pendingSkip = @{ } + + if ($PSCmdlet.ParameterSetName -eq 'Skip') { + $pendingSkip['Skip'] = $Skip + } + else { + $pendingSkip['Pending'] = $Pending + } + + if ($null -ne $TestCases -and $TestCases.Count -gt 0) { + foreach ($testCase in $TestCases) { + $expandedName = [regex]::Replace($Name, '<([^>]+)>', { + $capture = $args[0].Groups[1].Value + if ($testCase.Contains($capture)) { + $value = $testCase[$capture] + # skip adding quotes to non-empty strings to avoid adding junk to the + # test name in case you want to expand captures like 'because' or test name + if ($value -isnot [string] -or [string]::IsNullOrEmpty($value)) { + Format-Nicely $value + } + else { + $value + } + } + else { + "<$capture>" + } + }) + + $splat = @{ + Name = $expandedName + Scriptblock = $Test + Parameters = $testCase + ParameterizedSuiteName = $Name + OutputScriptBlock = $OutputScriptBlock + } + + Invoke-Test @splat @pendingSkip + } + } + else { + Invoke-Test -Name $Name -ScriptBlock $Test @pendingSkip -OutputScriptBlock $OutputScriptBlock + } +} + +function Invoke-Test { + [CmdletBinding(DefaultParameterSetName = 'Normal')] + param ( + [Parameter(Mandatory = $true)] + [string] $Name, + + [Parameter(Mandatory = $true)] + [ScriptBlock] $ScriptBlock, + + [scriptblock] $OutputScriptBlock, + + [System.Collections.IDictionary] $Parameters, + [string] $ParameterizedSuiteName, + + [Parameter(ParameterSetName = 'Pending')] + [Switch] $Pending, + + [Parameter(ParameterSetName = 'Skip')] + [Alias('Ignore')] + [Switch] $Skip + ) + + if ($null -eq $Parameters) { + $Parameters = @{ } + } + + try { + if ($Skip) { + $Pester.AddTestResult($Name, "Skipped", $null) + } + elseif ($Pending) { + $Pester.AddTestResult($Name, "Pending", $null) + } + else { + #todo: disabling the progress for now, it adds a lot of overhead and breaks output on linux, we don't have a good way to disable it by default, or to show it after delay see: https://github.com/pester/Pester/issues/846 + # & $SafeCommands['Write-Progress'] -Activity "Running test '$Name'" -Status Processing + + $errorRecord = $null + try { + $pester.EnterTest() + Invoke-TestCaseSetupBlocks + + do { + Write-ScriptBlockInvocationHint -Hint "It" -ScriptBlock $ScriptBlock + $null = & $ScriptBlock @Parameters + } until ($true) + } + catch { + $errorRecord = $_ + } + finally { + #guarantee that the teardown action will run and prevent it from failing the whole suite + try { + if (-not ($Skip -or $Pending)) { + Invoke-TestCaseTeardownBlocks + } + } + catch { + $errorRecord = $_ + } + + $pester.LeaveTest() + } + + $result = ConvertTo-PesterResult -Name $Name -ErrorRecord $errorRecord + $orderedParameters = Get-OrderedParameterDictionary -ScriptBlock $ScriptBlock -Dictionary $Parameters + $Pester.AddTestResult( $result.Name, $result.Result, $null, $result.FailureMessage, $result.StackTrace, $ParameterizedSuiteName, $orderedParameters, $result.ErrorRecord ) + #todo: disabling progress reporting see above & $SafeCommands['Write-Progress'] -Activity "Running test '$Name'" -Completed -Status Processing + } + } + finally { + Exit-MockScope -ExitTestCaseOnly + } + + if ($null -ne $OutputScriptBlock) { + $Pester.testresult[-1] | & $OutputScriptBlock + } +} + +function Get-OrderedParameterDictionary { + [OutputType([System.Collections.IDictionary])] + param ( + [scriptblock] $ScriptBlock, + [System.Collections.IDictionary] $Dictionary + ) + + $parameters = Get-ParameterDictionary -ScriptBlock $ScriptBlock + + $orderedDictionary = & $SafeCommands['New-Object'] System.Collections.Specialized.OrderedDictionary + + foreach ($parameterName in $parameters.Keys) { + $value = $null + if ($Dictionary.ContainsKey($parameterName)) { + $value = $Dictionary[$parameterName] + } + + $orderedDictionary[$parameterName] = $value + } + + return $orderedDictionary +} + +function Get-ParameterDictionary { + param ( + [scriptblock] $ScriptBlock + ) + + $guid = [Guid]::NewGuid().Guid + + try { + & $SafeCommands['Set-Content'] function:\$guid $ScriptBlock + $metadata = [System.Management.Automation.CommandMetadata](& $SafeCommands['Get-Command'] -Name $guid -CommandType Function) + + return $metadata.Parameters + } + finally { + if (& $SafeCommands['Test-Path'] function:\$guid) { + & $SafeCommands['Remove-Item'] function:\$guid + } + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBg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MTk1NDA1WjAjBgkqhkiG9w0BCQQx +# FgQU4vMirBvgGf4zKu41AlKwwSffDXMwDQYJKoZIhvcNAQEBBQAEggEALO7zLj/6 +# +6WyW9ZGqNB4nsGOdegaNt/MkxqBsixDmGHXS9jDp+VdhL/wGIGT8jRJqa3xCc8e +# lKZBOISlI9eqMoI3j273a1/IOolXzGNGa+C5cYEKkwkFl7BvYMuUTF/HrE2ZJyoN +# n7UW3vXNcqzAgcaw2BhqTMCXBWR222GuSOKt39t9Cin16v2bEx12yuakTNKMbqJT +# TGyWOqxY8ZslXv8Fkjvkc7P2iuyGlq8LbkQWCQk0iBBy/tDRr/M5t85yXnU8vkm8 +# hWaRx1Dfrj4XqccwQx4Yk4m7uKyFXSXVEXNok0NSmdn3m/Vsr5myjr+nV6OQ2ggw +# ZZGvB12VQ842ag== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Mock.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Mock.ps1 new file mode 100644 index 000000000000..614dd8105fbf --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Mock.ps1 @@ -0,0 +1,1988 @@ +function Mock { + + <# +.SYNOPSIS +Mocks the behavior of an existing command with an alternate +implementation. + +.DESCRIPTION +This creates new behavior for any existing command within the scope of a +Describe or Context block. The function allows you to specify a script block +that will become the command's new behavior. + +Optionally, you may create a Parameter Filter which will examine the +parameters passed to the mocked command and will invoke the mocked +behavior only if the values of the parameter values pass the filter. If +they do not, the original command implementation will be invoked instead +of a mock. + +You may create multiple mocks for the same command, each using a different +ParameterFilter. ParameterFilters will be evaluated in reverse order of +their creation. The last one created will be the first to be evaluated. +The mock of the first filter to pass will be used. The exception to this +rule are Mocks with no filters. They will always be evaluated last since +they will act as a "catch all" mock. + +Mocks can be marked Verifiable. If so, the Assert-VerifiableMock command +can be used to check if all Verifiable mocks were actually called. If any +verifiable mock is not called, Assert-VerifiableMock will throw an +exception and indicate all mocks not called. + +If you wish to mock commands that are called from inside a script module, +you can do so by using the -ModuleName parameter to the Mock command. This +injects the mock into the specified module. If you do not specify a +module name, the mock will be created in the same scope as the test script. +You may mock the same command multiple times, in different scopes, as needed. +Each module's mock maintains a separate call history and verified status. + +.PARAMETER CommandName +The name of the command to be mocked. + +.PARAMETER MockWith +A ScriptBlock specifying the behavior that will be used to mock CommandName. +The default is an empty ScriptBlock. +NOTE: Do not specify param or dynamicparam blocks in this script block. +These will be injected automatically based on the signature of the command +being mocked, and the MockWith script block can contain references to the +mocked commands parameter variables. + +.PARAMETER Verifiable +When this is set, the mock will be checked when Assert-VerifiableMock is +called. + +.PARAMETER ParameterFilter +An optional filter to limit mocking behavior only to usages of +CommandName where the values of the parameters passed to the command +pass the filter. + +This ScriptBlock must return a boolean value. See examples for usage. + +.PARAMETER ModuleName +Optional string specifying the name of the module where this command +is to be mocked. This should be a module that _calls_ the mocked +command; it doesn't necessarily have to be the same module which +originally implemented the command. + +.PARAMETER RemoveParameterType +Optional parameter that removes a type of a parameter in the fuction +declaration. This is useful when you are testing a function that has a +strongly typed parameter but you are not able to create an object of the +required type. + +This parameter applies only to the first definintion of a mock within the +current scope. If there are multiple mocks with the same name, any subsequent +configuration of parameters will be ingored, including parameter validation +described below. + +.PARAMETER RemoveParameterValidation +Optional parameter that removes validation from a parameter in the fuction +declaration. This is useful when you are testing a function that validates +it's input, but you are unable to satisfy the validation. + +This parameter applies only to the first definintion of a mock within the +current scope. If there are multiple mocks with the same name, any subsequent +configuration of parameters will be ingored, including parameter types described +above. + +.EXAMPLE +Mock Get-ChildItem { return @{FullName = "A_File.TXT"} } + +Using this Mock, all calls to Get-ChildItem will return a hashtable with a +FullName property returning "A_File.TXT" + +.EXAMPLE +Mock Get-ChildItem { return @{FullName = "A_File.TXT"} } -ParameterFilter { $Path -and $Path.StartsWith($env:temp) } + +This Mock will only be applied to Get-ChildItem calls within the user's temp directory. + +.EXAMPLE +Mock Set-Content {} -Verifiable -ParameterFilter { $Path -eq "some_path" -and $Value -eq "Expected Value" } + +When this mock is used, if the Mock is never invoked and Assert-VerifiableMock is called, an exception will be thrown. The command behavior will do nothing since the ScriptBlock is empty. + +.EXAMPLE +```ps +Mock Get-ChildItem { return @{FullName = "A_File.TXT"} } -ParameterFilter { $Path -and $Path.StartsWith($env:temp\1) } +Mock Get-ChildItem { return @{FullName = "B_File.TXT"} } -ParameterFilter { $Path -and $Path.StartsWith($env:temp\2) } +Mock Get-ChildItem { return @{FullName = "C_File.TXT"} } -ParameterFilter { $Path -and $Path.StartsWith($env:temp\3) } +``` + +Multiple mocks of the same command may be used. The parameter filter determines which is invoked. Here, if Get-ChildItem is called on the "2" directory of the temp folder, then B_File.txt will be returned. + +.EXAMPLE +```ps +Mock Get-ChildItem { return @{FullName="B_File.TXT"} } -ParameterFilter { $Path -eq "$env:temp\me" } +Mock Get-ChildItem { return @{FullName="A_File.TXT"} } -ParameterFilter { $Path -and $Path.StartsWith($env:temp) } + +Get-ChildItem $env:temp\me +``` + +Here, both mocks could apply since both filters will pass. A_File.TXT will be returned because it was the most recent Mock created. + +.EXAMPLE +```ps +Mock Get-ChildItem { return @{FullName = "B_File.TXT"} } -ParameterFilter { $Path -eq "$env:temp\me" } +Mock Get-ChildItem { return @{FullName = "A_File.TXT"} } + +Get-ChildItem c:\windows +``` + +Here, A_File.TXT will be returned. Since no filter was specified, it will apply to any call to Get-ChildItem that does not pass another filter. + +.EXAMPLE +```ps +Mock Get-ChildItem { return @{FullName = "B_File.TXT"} } -ParameterFilter { $Path -eq "$env:temp\me" } +Mock Get-ChildItem { return @{FullName = "A_File.TXT"} } + +Get-ChildItem $env:temp\me +``` + +Here, B_File.TXT will be returned. Even though the filterless mock was created more recently. This illustrates that filterless Mocks are always evaluated last regardless of their creation order. + +.EXAMPLE +Mock Get-ChildItem { return @{FullName = "A_File.TXT"} } -ModuleName MyTestModule + +Using this Mock, all calls to Get-ChildItem from within the MyTestModule module +will return a hashtable with a FullName property returning "A_File.TXT" + +.EXAMPLE +```ps +Get-Module -Name ModuleMockExample | Remove-Module +New-Module -Name ModuleMockExample -ScriptBlock { + function Hidden { "Internal Module Function" } + function Exported { Hidden } + + Export-ModuleMember -Function Exported +} | Import-Module -Force + +Describe "ModuleMockExample" { + + It "Hidden function is not directly accessible outside the module" { + { Hidden } | Should -Throw + } + + It "Original Hidden function is called" { + Exported | Should -Be "Internal Module Function" + } + + It "Hidden is replaced with our implementation" { + Mock Hidden { "Mocked" } -ModuleName ModuleMockExample + Exported | Should -Be "Mocked" + } +} +``` + +This example shows how calls to commands made from inside a module can be +mocked by using the -ModuleName parameter. + +.LINK +https://pester.dev/docs/commands/Assert-MockCalled + +.LINK +https://pester.dev/docs/commands/Assert-VerifiableMock + +.LINK +https://pester.dev/docs/commands/Describe + +.LINK +https://pester.dev/docs/commands/Context + +.LINK +https://pester.dev/docs/commands/It + +.LINK +https://pester.dev/docs/commands/Should + +.LINK +https://pester.dev/docs/usage/mocking + +#> + [CmdletBinding()] + param( + [string]$CommandName, + [ScriptBlock]$MockWith = { }, + [switch]$Verifiable, + [ScriptBlock]$ParameterFilter = { $True }, + [string]$ModuleName, + [string[]]$RemoveParameterType, + [string[]]$RemoveParameterValidation + ) + + Assert-DescribeInProgress -CommandName Mock + Set-ScriptBlockHint -Hint "Unbound MockWith - Captured in Mock" -ScriptBlock $MockWith + Set-ScriptBlockHint -Hint "Unbound ParameterFilter - Captured in Mock" -ScriptBlock $ParameterFilter + + $contextInfo = Validate-Command $CommandName $ModuleName + $CommandName = $contextInfo.Command.Name + + if ($contextInfo.Session.Module -and $contextInfo.Session.Module.Name) { + $ModuleName = $contextInfo.Session.Module.Name + } + else { + $ModuleName = '' + } + + if (Test-IsClosure -ScriptBlock $MockWith) { + # If the user went out of their way to call GetNewClosure(), go ahead and leave the block bound to that + # dynamic module's scope. + $mockWithCopy = $MockWith + } + else { + Write-Hint "Unbinding ScriptBlock from '$(Get-ScriptBlockHint $MockWith)'" + $mockWithCopy = [scriptblock]::Create($MockWith.ToString()) + Set-ScriptBlockHint -ScriptBlock $mockWithCopy -Hint "Unbound ScriptBlock from Mock" + Set-ScriptBlockScope -ScriptBlock $mockWithCopy -SessionState $contextInfo.Session + } + + $block = @{ + Mock = $mockWithCopy + Filter = $ParameterFilter + Verifiable = $Verifiable + Scope = $pester.CurrentTestGroup + } + + $mock = $mockTable["$ModuleName||$CommandName"] + + if (-not $mock) { + $metadata = $null + $originalMetadata = $null + $cmdletBinding = '' + $paramBlock = '' + $dynamicParamBlock = '' + $dynamicParamScriptBlock = $null + + if ($contextInfo.Command.psobject.Properties['ScriptBlock'] -or $contextInfo.Command.CommandType -eq 'Cmdlet') { + $metadata = [System.Management.Automation.CommandMetaData]$contextInfo.Command + $null = $metadata.Parameters.Remove('Verbose') + $null = $metadata.Parameters.Remove('Debug') + $null = $metadata.Parameters.Remove('ErrorAction') + $null = $metadata.Parameters.Remove('WarningAction') + $null = $metadata.Parameters.Remove('ErrorVariable') + $null = $metadata.Parameters.Remove('WarningVariable') + $null = $metadata.Parameters.Remove('OutVariable') + $null = $metadata.Parameters.Remove('OutBuffer') + + # Some versions of PowerShell may include dynamic parameters here + # We will filter them out and add them at the end to be + # compatible with both earlier and later versions + $dynamicParams = $metadata.Parameters.Values | & $SafeCommands['Where-Object'] { $_.IsDynamic } + if ($null -ne $dynamicParams) { + $dynamicparams | & $SafeCommands['ForEach-Object'] { $null = $metadata.Parameters.Remove($_.name) } + } + + $cmdletBinding = [Management.Automation.ProxyCommand]::GetCmdletBindingAttribute($metadata) + if ($global:PSVersionTable.PSVersion.Major -ge 3 -and $contextInfo.Command.CommandType -eq 'Cmdlet') { + if ($cmdletBinding -ne '[CmdletBinding()]') { + $cmdletBinding = $cmdletBinding.Insert($cmdletBinding.Length - 2, ',') + } + $cmdletBinding = $cmdletBinding.Insert($cmdletBinding.Length - 2, 'PositionalBinding=$false') + } + + # Will modify $metadata object in-place + $originalMetadata = $metadata + $metadata = Repair-ConflictingParameters -Metadata $metadata -RemoveParameterType $RemoveParameterType -RemoveParameterValidation $RemoveParameterValidation + $paramBlock = [Management.Automation.ProxyCommand]::GetParamBlock($metadata) + + if ($contextInfo.Command.CommandType -eq 'Cmdlet') { + $dynamicParamBlock = "dynamicparam { Get-MockDynamicParameter -CmdletName '$($contextInfo.Command.Name)' -Parameters `$PSBoundParameters }" + } + else { + $dynamicParamStatements = Get-DynamicParamBlock -ScriptBlock $contextInfo.Command.ScriptBlock + + if ($dynamicParamStatements -match '\S') { + $metadataSafeForDynamicParams = [System.Management.Automation.CommandMetaData]$contextInfo.Command + foreach ($param in $metadataSafeForDynamicParams.Parameters.Values) { + $param.ParameterSets.Clear() + } + + $paramBlockSafeForDynamicParams = [System.Management.Automation.ProxyCommand]::GetParamBlock($metadataSafeForDynamicParams) + $comma = if ($metadataSafeForDynamicParams.Parameters.Count -gt 0) { + ',' + } + else { + '' + } + $dynamicParamBlock = "dynamicparam { Get-MockDynamicParameter -ModuleName '$ModuleName' -FunctionName '$CommandName' -Parameters `$PSBoundParameters -Cmdlet `$PSCmdlet }" + + $code = @" + $cmdletBinding + param( + [object] `${P S Cmdlet}$comma + $paramBlockSafeForDynamicParams + ) + + `$PSCmdlet = `${P S Cmdlet} + + $dynamicParamStatements +"@ + + $dynamicParamScriptBlock = [scriptblock]::Create($code) + + $sessionStateInternal = Get-ScriptBlockScope -ScriptBlock $contextInfo.Command.ScriptBlock + + if ($null -ne $sessionStateInternal) { + Set-ScriptBlockScope -ScriptBlock $dynamicParamScriptBlock -SessionStateInternal $sessionStateInternal + } + } + } + } + + $EscapeSingleQuotedStringContent = + if ($global:PSVersionTable.PSVersion.Major -ge 5) { + { [System.Management.Automation.Language.CodeGeneration]::EscapeSingleQuotedStringContent($args[0]) } + } + else { + { $args[0] -replace "['‘’‚‛]", '$&$&' } + } + + $newContent = & $SafeCommands['Get-Content'] function:\MockPrototype + $newContent = $newContent -replace '#FUNCTIONNAME#', (& $EscapeSingleQuotedStringContent $CommandName) + $newContent = $newContent -replace '#MODULENAME#', (& $EscapeSingleQuotedStringContent $ModuleName) + + $canCaptureArgs = 'true' + if ($contextInfo.Command.CommandType -eq 'Cmdlet' -or + ($contextInfo.Command.CommandType -eq 'Function' -and $contextInfo.Command.CmdletBinding)) { + $canCaptureArgs = 'false' + } + $newContent = $newContent -replace '#CANCAPTUREARGS#', $canCaptureArgs + + $code = @" + $cmdletBinding + param ( $paramBlock ) + $dynamicParamBlock + begin + { + `${mock call state} = @{} + $($newContent -replace '#BLOCK#', 'Begin' -replace '#INPUT#') + } + + process + { + $($newContent -replace '#BLOCK#', 'Process' -replace '#INPUT#', '-InputObject @($input)') + } + + end + { + $($newContent -replace '#BLOCK#', 'End' -replace '#INPUT#') + } +"@ + + $mockScript = [scriptblock]::Create($code) + + $mock = @{ + OriginalCommand = $contextInfo.Command + Blocks = @() + CommandName = $CommandName + SessionState = $contextInfo.Session + Scope = $pester.CurrentTestGroup + PesterState = $pester + Metadata = $metadata + OriginalMetadata = $originalMetadata + CallHistory = @() + DynamicParamScriptBlock = $dynamicParamScriptBlock + Aliases = @() + BootstrapFunctionName = 'PesterMock_' + [Guid]::NewGuid().Guid + } + + $mockTable["$ModuleName||$CommandName"] = $mock + + Invoke-CommonSetupInMockScope -Mock $mock -MockScript $MockScript -CommandName $CommandName + } + + if ($null -ne $mock.Metadata -and $null -ne $block.Filter) { + $block.Filter = New-BlockWithoutParameterAliases -Metadata $mock.Metadata -Block $block.Filter + } + + $mock.Blocks = @( + # trim the script to avoid errors when formatting adds spaces around the default + # filter script, this only affects powershell v2, newer powershell trims it + # automatically + $mock.Blocks | & $SafeCommands['Where-Object'] { $_.Filter.ToString().Trim() -eq '$True' } + if ($block.Filter.ToString().Trim() -eq '$True') { + $block + } + + $mock.Blocks | & $SafeCommands['Where-Object'] { $_.Filter.ToString().Trim() -ne '$True' } + if ($block.Filter.ToString().Trim() -ne '$True') { + $block + } + ) +} + + +function Assert-VerifiableMock { + <# +.SYNOPSIS +Checks if any Verifiable Mock has not been invoked. If so, this will throw an exception. + +.DESCRIPTION +This can be used in tandem with the -Verifiable switch of the Mock +function. Mock can be used to mock the behavior of an existing command +and optionally take a -Verifiable switch. When Assert-VerifiableMock +is called, it checks to see if any Mock marked Verifiable has not been +invoked. If any mocks have been found that specified -Verifiable and +have not been invoked, an exception will be thrown. + +.EXAMPLE +```ps +Mock Set-Content {} -Verifiable -ParameterFilter {$Path -eq "some_path" -and $Value -eq "Expected Value"} + +{ ...some code that never calls Set-Content some_path -Value "Expected Value"... } + +Assert-VerifiableMock +``` + +This will throw an exception and cause the test to fail. + +.EXAMPLE +```ps +Mock Set-Content {} -Verifiable -ParameterFilter {$Path -eq "some_path" -and $Value -eq "Expected Value"} + +Set-Content some_path -Value "Expected Value" + +Assert-VerifiableMock +``` + +This will not throw an exception because the mock was invoked. + +#> + [CmdletBinding()]param() + Assert-DescribeInProgress -CommandName Assert-VerifiableMock + + $unVerified = @{ } + $mockTable.Keys | & $SafeCommands['ForEach-Object'] { + $m = $_; + + $mockTable[$m].blocks | + & $SafeCommands['Where-Object'] { $_.Verifiable } | + & $SafeCommands['ForEach-Object'] { $unVerified[$m] = $_ } + } + if ($unVerified.Count -gt 0) { + foreach ($mock in $unVerified.Keys) { + $array = $mock -split '\|\|' + $function = $array[1] + $module = $array[0] + + $message = "$([System.Environment]::NewLine) Expected $function " + if ($module) { + $message += "in module $module " + } + $message += "to be called with $($unVerified[$mock].Filter)" + } + throw $message + } +} + +function Assert-MockCalled { + <# +.SYNOPSIS +Checks if a Mocked command has been called a certain number of times +and throws an exception if it has not. + +.DESCRIPTION +This command verifies that a mocked command has been called a certain number +of times. If the call history of the mocked command does not match the parameters +passed to Assert-MockCalled, Assert-MockCalled will throw an exception. + +.PARAMETER CommandName +The mocked command whose call history should be checked. + +.PARAMETER ModuleName +The module where the mock being checked was injected. This is optional, +and must match the ModuleName that was used when setting up the Mock. + +.PARAMETER Times +The number of times that the mock must be called to avoid an exception +from throwing. + +.PARAMETER Exactly +If this switch is present, the number specified in Times must match +exactly the number of times the mock has been called. Otherwise it +must match "at least" the number of times specified. If the value +passed to the Times parameter is zero, the Exactly switch is implied. + +.PARAMETER ParameterFilter +An optional filter to qualify which calls should be counted. Only those +calls to the mock whose parameters cause this filter to return true +will be counted. + +.PARAMETER ExclusiveFilter +Like ParameterFilter, except when you use ExclusiveFilter, and there +were any calls to the mocked command which do not match the filter, +an exception will be thrown. This is a convenient way to avoid needing +to have two calls to Assert-MockCalled like this: + +Assert-MockCalled SomeCommand -Times 1 -ParameterFilter { $something -eq $true } +Assert-MockCalled SomeCommand -Times 0 -ParameterFilter { $something -ne $true } + +.PARAMETER Scope +An optional parameter specifying the Pester scope in which to check for +calls to the mocked command. For RSpec style tests, Assert-MockCalled will find +all calls to the mocked command in the current Context block (if present), +or the current Describe block (if there is no active Context), by default. Valid +values are Describe, Context and It. If you use a scope of Describe or +Context, the command will identify all calls to the mocked command in the +current Describe / Context block, as well as all child scopes of that block. + +For Gherkin style tests, Assert-MockCalled will find all calls to the mocked +command in the current Scenario block or the current Feature block (if there is +no active Scenario), by default. Valid values for Gherkin style tests are Feature +and Scenario. If you use a scope of Feature or Scenario, the command will identify +all calls to the mocked command in the current Feature / Scenario block, as well +as all child scopes of that block. + +.EXAMPLE +```ps +PS C:\> Mock Set-Content {} + +{... Some Code ...} + +PS C:\> Assert-MockCalled Set-Content +``` + +This will throw an exception and cause the test to fail if Set-Content is not called in Some Code. + +.EXAMPLE +```ps +PS C:\> Mock Set-Content -parameterFilter {$path.StartsWith("$env:temp\")} + +{... Some Code ...} + +PS C:\> Assert-MockCalled Set-Content 2 { $path -eq "$env:temp\test.txt" } +``` + +This will throw an exception if some code calls Set-Content on $path=$env:temp\test.txt less than 2 times + +.EXAMPLE +```ps +PS C:\> Mock Set-Content {} + +{... Some Code ...} + +PS C:\> Assert-MockCalled Set-Content 0 +``` + +This will throw an exception if some code calls Set-Content at all + +.EXAMPLE +```ps +PS C:\> Mock Set-Content {} + +{... Some Code ...} + +PS C:\> Assert-MockCalled Set-Content -Exactly 2 +``` + +This will throw an exception if some code does not call Set-Content Exactly two times. + +.EXAMPLE +```ps +Describe 'Assert-MockCalled Scope behavior' { + Mock Set-Content { } + + It 'Calls Set-Content at least once in the It block' { + {... Some Code ...} + + Assert-MockCalled Set-Content -Exactly 0 -Scope It + } +} +``` + +Checks for calls only within the current It block. + +.EXAMPLE +```ps +Describe 'Describe' { + Mock -ModuleName SomeModule Set-Content { } + + {... Some Code ...} + + It 'Calls Set-Content at least once in the Describe block' { + Assert-MockCalled -ModuleName SomeModule Set-Content + } +} +``` + +Checks for calls to the mock within the SomeModule module. Note that both the Mock +and Assert-MockCalled commands use the same module name. + +.EXAMPLE +Assert-MockCalled Get-ChildItem -ExclusiveFilter { $Path -eq 'C:\' } + +Checks to make sure that Get-ChildItem was called at least one time with +the -Path parameter set to 'C:\', and that it was not called at all with +the -Path parameter set to any other value. + +.NOTES +The parameter filter passed to Assert-MockCalled does not necessarily have to match the parameter filter +(if any) which was used to create the Mock. Assert-MockCalled will find any entry in the command history +which matches its parameter filter, regardless of how the Mock was created. However, if any calls to the +mocked command are made which did not match any mock's parameter filter (resulting in the original command +being executed instead of a mock), these calls to the original command are not tracked in the call history. +In other words, Assert-MockCalled can only be used to check for calls to the mocked implementation, not +to the original. + +#> + + [CmdletBinding(DefaultParameterSetName = 'ParameterFilter')] + param( + [Parameter(Mandatory = $true, Position = 0)] + [string]$CommandName, + + [Parameter(Position = 1)] + [int]$Times = 1, + + [Parameter(ParameterSetName = 'ParameterFilter', Position = 2)] + [ScriptBlock]$ParameterFilter = { $True }, + + [Parameter(ParameterSetName = 'ExclusiveFilter', Mandatory = $true)] + [scriptblock] $ExclusiveFilter, + + [Parameter(Position = 3)] + [string] $ModuleName, + + [Parameter(Position = 4)] + [ValidateScript( { + if ([uint32]::TryParse($_, [ref] $null) -or + $_ -eq 'Describe' -or + $_ -eq 'Context' -or + $_ -eq 'It' -or + $_ -eq 'Feature' -or + $_ -eq 'Scenario') { + return $true + } + + throw "Scope argument must either be an unsigned integer, or one of the words 'Describe', 'Context', 'It', 'Feature', or 'Scenario'." + })] + [string] $Scope, + + [switch]$Exactly + ) + + if ($PSCmdlet.ParameterSetName -eq 'ParameterFilter') { + $filter = $ParameterFilter + $filterIsExclusive = $false + } + else { + $filter = $ExclusiveFilter + $filterIsExclusive = $true + } + + Assert-DescribeInProgress -CommandName Assert-MockCalled + + if (-not $PSBoundParameters.ContainsKey('ModuleName') -and $null -ne $pester.SessionState.Module) { + $ModuleName = $pester.SessionState.Module.Name + } + + $contextInfo = Validate-Command $CommandName $ModuleName + $CommandName = $contextInfo.Command.Name + + $mock = $script:mockTable["$ModuleName||$CommandName"] + + $moduleMessage = '' + if ($ModuleName) { + $moduleMessage = " in module $ModuleName" + } + + if (-not $mock) { + throw "You did not declare a mock of the $commandName Command${moduleMessage}." + } + + if (-not $PSBoundParameters.ContainsKey('Scope')) { + $scope = 1 + } + + $matchingCalls = & $SafeCommands['New-Object'] System.Collections.ArrayList + $nonMatchingCalls = & $SafeCommands['New-Object'] System.Collections.ArrayList + + foreach ($historyEntry in $mock.CallHistory) { + if (-not (Test-MockCallScope -CallScope $historyEntry.Scope -DesiredScope $Scope)) { + continue + } + + $params = @{ + ScriptBlock = $filter + BoundParameters = $historyEntry.BoundParams + ArgumentList = $historyEntry.Args + Metadata = $mock.Metadata + } + + if ($null -ne $mock.Metadata -and $null -ne $params.ScriptBlock) { + $params.ScriptBlock = New-BlockWithoutParameterAliases -Metadata $mock.Metadata -Block $params.ScriptBlock + } + + if (Test-ParameterFilter @params) { + $null = $matchingCalls.Add($historyEntry) + } + else { + $null = $nonMatchingCalls.Add($historyEntry) + } + } + + $lineText = $MyInvocation.Line.TrimEnd("$([System.Environment]::NewLine)") + $line = $MyInvocation.ScriptLineNumber + + if ($matchingCalls.Count -ne $times -and ($Exactly -or ($times -eq 0))) { + $failureMessage = "Expected ${commandName}${moduleMessage} to be called $times times exactly but was called $($matchingCalls.Count) times" + throw ( New-ShouldErrorRecord -Message $failureMessage -Line $line -LineText $lineText) + } + elseif ($matchingCalls.Count -lt $times) { + $failureMessage = "Expected ${commandName}${moduleMessage} to be called at least $times times but was called $($matchingCalls.Count) times" + throw ( New-ShouldErrorRecord -Message $failureMessage -Line $line -LineText $lineText) + } + elseif ($filterIsExclusive -and $nonMatchingCalls.Count -gt 0) { + $failureMessage = "Expected ${commandName}${moduleMessage} to only be called with with parameters matching the specified filter, but $($nonMatchingCalls.Count) non-matching calls were made" + throw ( New-ShouldErrorRecord -Message $failureMessage -Line $line -LineText $lineText) + } +} + +function Test-MockCallScope { + [CmdletBinding()] + param ( + [object] $CallScope, + [string] $DesiredScope + ) + + if ($null -eq $CallScope) { + # This indicates a call from the current test case ("It" block), which always passes Test-MockCallScope + return $true + } + + $testGroups = $pester.TestGroups + [Array]::Reverse($testGroups) + + $target = 0 + $isNumberedScope = [int]::TryParse($DesiredScope, [ref] $target) + + # The Describe / Context stuff here is for backward compatibility. May be deprecated / removed in the future. + $actualScopeNumber = -1 + $describe = -1 + $context = -1 + + for ($i = 0; $i -lt $testGroups.Count; $i++) { + if ($CallScope -eq $testGroups[$i]) { + $actualScopeNumber = $i + if ($isNumberedScope) { + break + } + } + + if ($describe -lt 0 -and 'Describe', 'Feature' -contains $testGroups[$i].Hint) { + $describe = $i + } + if ($context -lt 0 -and 'Context', 'Scenario' -contains $testGroups[$i].Hint) { + $context = $i + } + } + + if ($actualScopeNumber -lt 0) { + # this should never happen; if we get here, it's a Pester bug. + + throw "Pester error: Corrupted mock call history table." + } + + if ($isNumberedScope) { + # For this, we consider scope 0 to be the current test case / It block, scope 1 to be the first Test Group up the stack, etc. + # $actualScopeNumber currently off by one from that scale (zero-indexed for test groups only; we already checked for the 0 case + # farther up, which only applies if $CallScope is $null). + return $target -gt $actualScopeNumber + } + else { + if ('Describe', 'Feature' -contains $DesiredScope) { + return $describe -ge $actualScopeNumber + } + if ('Context', 'Scenario' -contains $DesiredScope) { + return $context -ge $actualScopeNumber + } + } + + return $false +} + +function Exit-MockScope { + param ( + [switch] $ExitTestCaseOnly + ) + + if ($null -eq $mockTable) { + return + } + + $removeMockStub = + { + param ( + [string] $CommandName, + [string[]] $Aliases + ) + + if ($ExecutionContext.InvokeProvider.Item.Exists("Function:\$CommandName", $true, $true)) { + $ExecutionContext.InvokeProvider.Item.Remove("Function:\$CommandName", $false, $true, $true) + } + + foreach ($alias in $Aliases) { + if ($ExecutionContext.InvokeProvider.Item.Exists("Alias:$alias", $true, $true)) { + $ExecutionContext.InvokeProvider.Item.Remove("Alias:$alias", $false, $true, $true) + } + } + } + + $mockKeys = [string[]]$mockTable.Keys + + foreach ($mockKey in $mockKeys) { + $mock = $mockTable[$mockKey] + + $shouldRemoveMock = (-not $ExitTestCaseOnly) -and (ShouldRemoveMock -Mock $mock -ActivePesterState $pester) + if ($shouldRemoveMock) { + $null = Invoke-InMockScope -SessionState $mock.SessionState -ScriptBlock $removeMockStub -ArgumentList $mock.BootstrapFunctionName, $mock.Aliases + $mockTable.Remove($mockKey) + } + elseif ($mock.PesterState -eq $pester) { + if (-not $ExitTestCaseOnly) { + $mock.Blocks = @($mock.Blocks | & $SafeCommands['Where-Object'] { $_.Scope -ne $pester.CurrentTestGroup }) + } + + $testGroups = @($pester.TestGroups) + + $parentTestGroup = $null + + if ($testGroups.Count -gt 1) { + $parentTestGroup = $testGroups[-2] + } + + foreach ($historyEntry in $mock.CallHistory) { + if ($ExitTestCaseOnly) { + if ($null -eq $historyEntry.Scope) { + $historyEntry.Scope = $pester.CurrentTestGroup + } + } + elseif ($parentTestGroup) { + if ($historyEntry.Scope -eq $pester.CurrentTestGroup) { + $historyEntry.Scope = $parentTestGroup + } + } + } + } + } +} + +function ShouldRemoveMock($Mock, $ActivePesterState) { + if ($ActivePesterState -ne $mock.PesterState) { + return $false + } + if ($mock.Scope -eq $ActivePesterState.CurrentTestGroup) { + return $true + } + + # These two should conditions should _probably_ never happen, because the above condition should + # catch it, but just in case: + if ($ActivePesterState.TestGroups.Count -eq 1) { + return $true + } + if ($ActivePesterState.TestGroups[-2].Hint -eq 'Root') { + return $true + } + + return $false +} + +function Validate-Command([string]$CommandName, [string]$ModuleName) { + $module = $null + $command = $null + + $scriptBlock = { + $command = $ExecutionContext.InvokeCommand.GetCommand($args[0], 'All') + while ($null -ne $command -and $command.CommandType -eq [System.Management.Automation.CommandTypes]::Alias) { + $command = $command.ResolvedCommand + } + + return $command + } + + if ($ModuleName) { + $module = Get-ScriptModule -ModuleName $ModuleName -ErrorAction Stop + $command = & $module $scriptBlock $CommandName + } + + $session = $pester.SessionState + + if (-not $command) { + Set-ScriptBlockScope -ScriptBlock $scriptBlock -SessionState $session + $command = & $scriptBlock $commandName + } + + if (-not $command) { + throw ([System.Management.Automation.CommandNotFoundException] "Could not find Command $commandName") + } + + if ($module) { + $session = Set-SessionStateHint -PassThru -Hint "Module - $($module.Name)" -SessionState ( & $module { $ExecutionContext.SessionState } ) + } + + $hash = @{Command = $command; Session = $session } + + if ($command.CommandType -eq 'Function') { + foreach ($mock in $mockTable.Values) { + if ($command.Name -eq $mock.BootstrapFunctionName) { + return @{ + Command = $mock.OriginalCommand + Session = $mock.SessionState + } + } + } + } + + return $hash +} + +function MockPrototype { + if ($PSVersionTable.PSVersion.Major -ge 3) { + [string] ${ignore preference} = 'Ignore' + } + else { + [string] ${ignore preference} = 'SilentlyContinue' + } + + #todo: remove pester\safegetcommand and use .net calls to get the variable instead? + ${get Variable Command} = & (Pester\SafeGetCommand) -Name Get-Variable -Module Microsoft.PowerShell.Utility -CommandType Cmdlet + + [object] ${a r g s} = $null + if (${#CANCAPTUREARGS#}) { + ${a r g s} = & ${get Variable Command} -Name args -ValueOnly -Scope Local -ErrorAction ${ignore preference} + } + if ($null -eq ${a r g s}) { + ${a r g s} = @() + } + + ${p s cmdlet} = & ${get Variable Command} -Name PSCmdlet -ValueOnly -Scope Local -ErrorAction ${ignore preference} + + #todo: Add session state hint - once we are calling this in the Pester state + ${session state} = if (${p s cmdlet}) { + ${p s cmdlet}.SessionState + } + + # todo: lookup Pester state and invoke it in there to remote Invoke-Mock from the public Api + # @{mock call state} initialization is injected only into the begin block by the code that uses this prototype. + Invoke-Mock -CommandName '#FUNCTIONNAME#' -ModuleName '#MODULENAME#' -BoundParameters $PSBoundParameters -ArgumentList ${a r g s} -CallerSessionState ${session state} -FromBlock '#BLOCK#' -MockCallState ${mock call state} #INPUT# +} + +function Invoke-Mock { + <# + .SYNOPSIS + This command is used by Pester's Mocking framework. You do not need to call it directly. + #> + + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [string] + $CommandName, + + [Parameter(Mandatory = $true)] + [hashtable] $MockCallState, + + [string] + $ModuleName, + + [hashtable] + $BoundParameters = @{ }, + + [object[]] + $ArgumentList = @(), + + [object] $CallerSessionState, + + [ValidateSet('Begin', 'Process', 'End')] + [string] $FromBlock, + + [object] $InputObject + ) + + $detectedModule = $ModuleName + $mock = FindMock -CommandName $CommandName -ModuleName ([ref]$detectedModule) + + if ($null -eq $mock) { + # If this ever happens, it's a bug in Pester. The scriptBlock that calls Invoke-Mock should be removed at the same time as the entry in the mock table. + throw "Internal error detected: Mock for '$CommandName' in module '$ModuleName' was called, but does not exist in the mock table." + } + + switch ($FromBlock) { + Begin { + $MockCallState['InputObjects'] = & $SafeCommands['New-Object'] System.Collections.ArrayList + $MockCallState['ShouldExecuteOriginalCommand'] = $false + $MockCallState['BeginBoundParameters'] = $BoundParameters.Clone() + $MockCallState['BeginArgumentList'] = $ArgumentList + + return + } + + Process { + $block = $null + if ($detectedModule -eq $ModuleName) { + $block = FindMatchingBlock -Mock $mock -BoundParameters $BoundParameters -ArgumentList $ArgumentList + } + + if ($null -ne $block) { + ExecuteBlock -Block $block ` + -CommandName $CommandName ` + -ModuleName $ModuleName ` + -BoundParameters $BoundParameters ` + -ArgumentList $ArgumentList ` + -Mock $mock + + return + } + else { + $MockCallState['ShouldExecuteOriginalCommand'] = $true + if ($null -ne $InputObject) { + $null = $MockCallState['InputObjects'].AddRange(@($InputObject)) + } + + return + } + } + + End { + if ($MockCallState['ShouldExecuteOriginalCommand']) { + $MockCallState['BeginBoundParameters'] = Reset-ConflictingParameters -BoundParameters $MockCallState['BeginBoundParameters'] + + if ($MockCallState['InputObjects'].Count -gt 0) { + $scriptBlock = { + param ($Command, $ArgumentList, $BoundParameters, $InputObjects) + $InputObjects | & $Command @ArgumentList @BoundParameters + } + } + else { + $scriptBlock = { + param ($Command, $ArgumentList, $BoundParameters, $InputObjects) + & $Command @ArgumentList @BoundParameters + } + } + + $state = if ($CallerSessionState) { + $CallerSessionState + } + else { + $mock.SessionState + } + + Set-ScriptBlockScope -ScriptBlock $scriptBlock -SessionState $state + + # In order to mock Set-Variable correctly we need to write the variable + # two scopes above + if ( $mock.OriginalCommand -like "Set-Variable" ) { + if ($MockCallState['BeginBoundParameters'].Keys -notcontains "Scope") { + $MockCallState['BeginBoundParameters'].Add( "Scope", 2) + } + # local is the same as scope 0, in that case we also write to scope 2 + elseif ("Local", "0" -contains $MockCallState['BeginBoundParameters'].Scope) { + $MockCallState['BeginBoundParameters'].Scope = 2 + } + elseif ($MockCallState['BeginBoundParameters'].Scope -match "\d+") { + $MockCallState['BeginBoundParameters'].Scope = 2 + $matches[0] + } + else { + # not sure what the user did, but we won't change it + } + } + + Write-ScriptBlockInvocationHint -Hint "Mock - Original Command" -ScriptBlock $scriptBlock + & $scriptBlock -Command $mock.OriginalCommand ` + -ArgumentList $MockCallState['BeginArgumentList'] ` + -BoundParameters $MockCallState['BeginBoundParameters'] ` + -InputObjects $MockCallState['InputObjects'] + } + } + } +} + +function FindMock { + param ( + [string] $CommandName, + [ref] $ModuleName + ) + + $mock = $mockTable["$($ModuleName.Value)||$CommandName"] + + if ($null -eq $mock) { + $mock = $mockTable["||$CommandName"] + if ($null -ne $mock) { + $ModuleName.Value = '' + } + } + + return $mock +} + +function FindMatchingBlock { + param ( + [object] $Mock, + [hashtable] $BoundParameters = @{ }, + [object[]] $ArgumentList = @() + ) + + for ($idx = $mock.Blocks.Length; $idx -gt 0; $idx--) { + $block = $mock.Blocks[$idx - 1] + + $params = @{ + ScriptBlock = $block.Filter + BoundParameters = $BoundParameters + ArgumentList = $ArgumentList + Metadata = $mock.Metadata + } + + if (Test-ParameterFilter @params) { + return $block + } + } + + return $null +} + +function ExecuteBlock { + param ( + [object] $Block, + [object] $Mock, + [string] $CommandName, + [string] $ModuleName, + [hashtable] $BoundParameters = @{ }, + [object[]] $ArgumentList = @() + ) + + $Block.Verifiable = $false + + $scope = if ($pester.InTest) { + $null + } + else { + $pester.CurrentTestGroup + } + $Mock.CallHistory += @{CommandName = "$ModuleName||$CommandName"; BoundParams = $BoundParameters; Args = $ArgumentList; Scope = $scope } + + $scriptBlock = { + param ( + [Parameter(Mandatory = $true)] + [scriptblock] + ${Script Block}, + + [hashtable] + $___BoundParameters___ = @{ }, + + [object[]] + $___ArgumentList___ = @(), + + [System.Management.Automation.CommandMetadata] + ${Meta data}, + + [System.Management.Automation.SessionState] + ${Session State}, + + ${R e p o r t S c o p e}, + + ${M o d u l e N a m e} + ) + + # This script block exists to hold variables without polluting the test script's current scope. + # Dynamic parameters in functions, for some reason, only exist in $PSBoundParameters instead + # of being assigned a local variable the way static parameters do. By calling Set-DynamicParameterVariable, + # we create these variables for the caller's use in a Parameter Filter or within the mock itself, and + # by doing it inside this temporary script block, those variables don't stick around longer than they + # should. + + Set-DynamicParameterVariable -SessionState ${Session State} -Parameters $___BoundParameters___ -Metadata ${Meta data} + # Name property is not present on Application Command metadata in PowerShell 2 + & ${R e p o r t S c o p e} -ModuleName ${M o d u l e N a m e} -CommandName $(try { + ${Meta data}.Name + } + catch { + }) -ScriptBlock ${Script Block} + & ${Script Block} @___BoundParameters___ @___ArgumentList___ + } + + Set-ScriptBlockScope -ScriptBlock $scriptBlock -SessionState $mock.SessionState + $splat = @{ + 'Script Block' = $block.Mock + '___ArgumentList___' = $ArgumentList + '___BoundParameters___' = $BoundParameters + 'Meta data' = $mock.Metadata + 'Session State' = $mock.SessionState + 'R e p o r t S c o p e' = { param ($CommandName, $ModuleName, $ScriptBlock) + Write-ScriptBlockInvocationHint -Hint "Mock - of command $CommandName$(if ($ModuleName) { "from module $ModuleName"})" -ScriptBlock $ScriptBlock } + } + + # the real scriptblock is passed to the other one, we are interested in the mock, not the wrapper, so I pass $block.Mock, and not $scriptBlock + + Write-ScriptBlockInvocationHint -Hint "Mock - of command $CommandName$(if ($ModuleName) { "from module $ModuleName"})" -ScriptBlock ($block.Mock) + & $scriptBlock @splat +} + +function Invoke-InMockScope { + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [System.Management.Automation.SessionState] + $SessionState, + + [Parameter(Mandatory = $true)] + [scriptblock] + $ScriptBlock, + + [Parameter(ValueFromRemainingArguments = $true)] + [object[]] + $ArgumentList = @() + ) + + if ($SessionState.Module) { + $SessionState.Module.Invoke($ScriptBlock, $ArgumentList) + } + else { + Set-ScriptBlockScope -ScriptBlock $ScriptBlock -SessionState $SessionState + Write-ScriptBlockInvocationHint -Hint "Mock - InMockScope" -ScriptBlock $ScriptBlock + & $ScriptBlock @ArgumentList + } +} + +function Test-ParameterFilter { + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [scriptblock] + $ScriptBlock, + + [System.Collections.IDictionary] + $BoundParameters, + + [object[]] + $ArgumentList, + + [System.Management.Automation.CommandMetadata] + $Metadata + ) + + if ($null -eq $BoundParameters) { + $BoundParameters = @{ } + } + if ($null -eq $ArgumentList) { + $ArgumentList = @() + } + + $paramBlock = Get-ParamBlockFromBoundParameters -BoundParameters $BoundParameters -Metadata $Metadata + + $scriptBlockString = " + $paramBlock + + Set-StrictMode -Off + $ScriptBlock + " + Write-Hint "Unbinding ScriptBlock from '$(Get-ScriptBlockHint $ScriptBlock)'" + $cmd = [scriptblock]::Create($scriptBlockString) + Set-ScriptBlockHint -ScriptBlock $cmd -Hint "Unbound ScriptBlock from Test-ParameterFilter" + Set-ScriptBlockScope -ScriptBlock $cmd -SessionState $pester.SessionState + + Write-ScriptBlockInvocationHint -Hint "Mock - Parameter filter" -ScriptBlock $cmd + & $cmd @BoundParameters @ArgumentList +} + +function Get-ParamBlockFromBoundParameters { + param ( + [System.Collections.IDictionary] $BoundParameters, + [System.Management.Automation.CommandMetadata] $Metadata + ) + + $params = foreach ($paramName in $BoundParameters.get_Keys()) { + if (IsCommonParameter -Name $paramName -Metadata $Metadata) { + continue + } + + "`${$paramName}" + } + + $params = $params -join ',' + + if ($null -ne $Metadata) { + $cmdletBinding = [System.Management.Automation.ProxyCommand]::GetCmdletBindingAttribute($Metadata) + } + else { + $cmdletBinding = '' + } + + return "$cmdletBinding param ($params)" +} + +function IsCommonParameter { + param ( + [string] $Name, + [System.Management.Automation.CommandMetadata] $Metadata + ) + + if ($null -ne $Metadata) { + if ([System.Management.Automation.Internal.CommonParameters].GetProperty($Name)) { + return $true + } + if ($Metadata.SupportsShouldProcess -and [System.Management.Automation.Internal.ShouldProcessParameters].GetProperty($Name)) { + return $true + } + if ($PSVersionTable.PSVersion.Major -ge 3 -and $Metadata.SupportsPaging -and [System.Management.Automation.PagingParameters].GetProperty($Name)) { + return $true + } + if ($Metadata.SupportsTransactions -and [System.Management.Automation.Internal.TransactionParameters].GetProperty($Name)) { + return $true + } + } + + return $false +} + +function Set-DynamicParameterVariable { + <# + .SYNOPSIS + This command is used by Pester's Mocking framework. You do not need to call it directly. + #> + + param ( + [Parameter(Mandatory = $true)] + [System.Management.Automation.SessionState] + $SessionState, + + [hashtable] + $Parameters, + + [System.Management.Automation.CommandMetadata] + $Metadata + ) + + if ($null -eq $Parameters) { + $Parameters = @{ } + } + + foreach ($keyValuePair in $Parameters.GetEnumerator()) { + $variableName = $keyValuePair.Key + + if (-not (IsCommonParameter -Name $variableName -Metadata $Metadata)) { + if ($ExecutionContext.SessionState -eq $SessionState) { + & $SafeCommands['Set-Variable'] -Scope 1 -Name $variableName -Value $keyValuePair.Value -Force -Confirm:$false -WhatIf:$false + } + else { + $SessionState.PSVariable.Set($variableName, $keyValuePair.Value) + } + } + } +} + +function Get-DynamicParamBlock { + param ( + [scriptblock] $ScriptBlock + ) + + if ($PSVersionTable.PSVersion.Major -le 2) { + $flags = [System.Reflection.BindingFlags]'Instance, NonPublic' + $dynamicParams = [scriptblock].GetField('_dynamicParams', $flags).GetValue($ScriptBlock) + + if ($null -ne $dynamicParams) { + return $dynamicParams.ToString() + + } + } + else { + If ( $ScriptBlock.AST.psobject.Properties.Name -match "Body") { + if ($null -ne $ScriptBlock.Ast.Body.DynamicParamBlock) { + $statements = $ScriptBlock.Ast.Body.DynamicParamBlock.Statements | + & $SafeCommands['Select-Object'] -ExpandProperty Extent | + & $SafeCommands['Select-Object'] -ExpandProperty Text + + return $statements -join "$([System.Environment]::NewLine)" + } + } + } +} + +function Get-MockDynamicParameter { + <# + .SYNOPSIS + This command is used by Pester's Mocking framework. You do not need to call it directly. + #> + + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true, ParameterSetName = 'Cmdlet')] + [string] $CmdletName, + + [Parameter(Mandatory = $true, ParameterSetName = 'Function')] + [string] $FunctionName, + + [Parameter(ParameterSetName = 'Function')] + [string] $ModuleName, + + [System.Collections.IDictionary] $Parameters, + + [object] $Cmdlet + ) + + switch ($PSCmdlet.ParameterSetName) { + 'Cmdlet' { + Get-DynamicParametersForCmdlet -CmdletName $CmdletName -Parameters $Parameters + } + + 'Function' { + Get-DynamicParametersForMockedFunction -FunctionName $FunctionName -ModuleName $ModuleName -Parameters $Parameters -Cmdlet $Cmdlet + } + } +} + +function Get-DynamicParametersForCmdlet { + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [string] $CmdletName, + + [ValidateScript( { + if ($PSVersionTable.PSVersion.Major -ge 3 -and + $null -ne $_ -and + $_.GetType().FullName -ne 'System.Management.Automation.PSBoundParametersDictionary') { + throw 'The -Parameters argument must be a PSBoundParametersDictionary object ($PSBoundParameters).' + } + + return $true + })] + [System.Collections.IDictionary] $Parameters + ) + + try { + $command = & $SafeCommands['Get-Command'] -Name $CmdletName -CommandType Cmdlet -ErrorAction Stop + + if (@($command).Count -gt 1) { + throw "Name '$CmdletName' resolved to multiple Cmdlets" + } + } + catch { + $PSCmdlet.ThrowTerminatingError($_) + } + + if ($null -eq $command.ImplementingType.GetInterface('IDynamicParameters', $true)) { + return + } + + if ('5.0.10586.122' -lt $PSVersionTable.PSVersion) { + # Older version of PS required Reflection to do this. It has run into problems on occasion with certain cmdlets, + # such as ActiveDirectory and AzureRM, so we'll take advantage of the newer PSv5 engine features if at all possible. + + if ($null -eq $Parameters) { + $paramsArg = @() + } + else { + $paramsArg = @($Parameters) + } + + $command = $ExecutionContext.InvokeCommand.GetCommand($CmdletName, [System.Management.Automation.CommandTypes]::Cmdlet, $paramsArg) + $paramDictionary = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new() + + foreach ($param in $command.Parameters.Values) { + if (-not $param.IsDynamic) { + continue + } + if ($Parameters.ContainsKey($param.Name)) { + continue + } + + $dynParam = [System.Management.Automation.RuntimeDefinedParameter]::new($param.Name, $param.ParameterType, $param.Attributes) + $paramDictionary.Add($param.Name, $dynParam) + } + + return $paramDictionary + } + else { + if ($null -eq $Parameters) { + $Parameters = @{ } + } + + $cmdlet = & $SafeCommands['New-Object'] $command.ImplementingType.FullName + + $flags = [System.Reflection.BindingFlags]'Instance, Nonpublic' + $context = $ExecutionContext.GetType().GetField('_context', $flags).GetValue($ExecutionContext) + [System.Management.Automation.Cmdlet].GetProperty('Context', $flags).SetValue($cmdlet, $context, $null) + + foreach ($keyValuePair in $Parameters.GetEnumerator()) { + $property = $cmdlet.GetType().GetProperty($keyValuePair.Key) + if ($null -eq $property -or -not $property.CanWrite) { + continue + } + + $isParameter = [bool]($property.GetCustomAttributes([System.Management.Automation.ParameterAttribute], $true)) + if (-not $isParameter) { + continue + } + + $property.SetValue($cmdlet, $keyValuePair.Value, $null) + } + + try { + # This unary comma is important in some cases. On Windows 7 systems, the ActiveDirectory module cmdlets + # return objects from this method which implement IEnumerable for some reason, and even cause PowerShell + # to throw an exception when it tries to cast the object to that interface. + + # We avoid that problem by wrapping the result of GetDynamicParameters() in a one-element array with the + # unary comma. PowerShell enumerates that array instead of trying to enumerate the goofy object, and + # everyone's happy. + + # Love the comma. Don't delete it. We don't have a test for this yet, unless we can get the AD module + # on a Server 2008 R2 build server, or until we write some C# code to reproduce its goofy behavior. + + , $cmdlet.GetDynamicParameters() + } + catch [System.NotImplementedException] { + # Some cmdlets implement IDynamicParameters but then throw a NotImplementedException. I have no idea why. Ignore them. + } + } +} + +function Get-DynamicParametersForMockedFunction { + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [string] + $FunctionName, + + [string] + $ModuleName, + + [System.Collections.IDictionary] + $Parameters, + + [object] + $Cmdlet + ) + + $mock = $mockTable["$ModuleName||$FunctionName"] + + if (-not $mock) { + throw "Internal error detected: Mock for '$FunctionName' in module '$ModuleName' was called, but does not exist in the mock table." + } + + if ($mock.DynamicParamScriptBlock) { + $splat = @{ 'P S Cmdlet' = $Cmdlet } + return & $mock.DynamicParamScriptBlock @Parameters @splat + } +} + +function Test-IsClosure { + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [scriptblock] + $ScriptBlock + ) + + $sessionStateInternal = Get-ScriptBlockScope -ScriptBlock $ScriptBlock + if ($null -eq $sessionStateInternal) { + return $false + } + + $flags = [System.Reflection.BindingFlags]'Instance,NonPublic' + $module = $sessionStateInternal.GetType().GetProperty('Module', $flags).GetValue($sessionStateInternal, $null) + + return ( + $null -ne $module -and + $module.Name -match '^__DynamicModule_([a-f\d-]+)$' -and + $null -ne ($matches[1] -as [guid]) + ) +} + +function Remove-MockFunctionsAndAliases { + # when a test is terminated (e.g. by stopping at a breakpoint and then stoping the execution of the script) + # the aliases and bootstrap functions for the currently mocked functions will remain in place + # Then on subsequent runs the bootstrap function will be picked up instead of the real command, + # because there is still an alias associated with it, and the test will fail. + # So before putting Pester state in place we should make sure that all Pester mocks are gone + # by deleting every alias pointing to a function that starts with PesterMock_. Then we also delete the + # bootstrap function. + foreach ($alias in (& $script:SafeCommands['Get-Alias'] -Definition "PesterMock_*")) { + & $script:SafeCommands['Remove-Item'] "alias:/$($alias.Name)" + } + + foreach ($bootstrapFunction in (& $script:SafeCommands['Get-Command'] -Name "PesterMock_*")) { + & $script:SafeCommands['Remove-Item'] "function:/$($bootstrapFunction.Name)" + } +} + +function Repair-ConflictingParameters { + [CmdletBinding()] + [OutputType([System.Management.Automation.CommandMetadata])] + param( + [Parameter(Mandatory = $true)] + [System.Management.Automation.CommandMetadata] + $Metadata, + [Parameter()] + [string[]] + $RemoveParameterType, + [Parameter()] + [string[]] + $RemoveParameterValidation + ) + + $repairedMetadata = New-Object System.Management.Automation.CommandMetadata -ArgumentList $Metadata + $paramMetadatas = @() + $paramMetadatas += $repairedMetadata.Parameters.Values + + $conflictingParams = Get-ConflictingParameterNames + + foreach ($paramMetadata in $paramMetadatas) { + if ($paramMetadata.IsDynamic) { + continue + } + + if ($conflictingParams -contains $paramMetadata.Name) { + $paramName = $paramMetadata.Name + $newName = "_$paramName" + $paramMetadata.Name = $newName + $paramMetadata.Aliases.Add($paramName) + + $null = $repairedMetadata.Parameters.Remove($paramName) + $repairedMetadata.Parameters.Add($newName, $paramMetadata) + } + + $attrIndexesToRemove = New-Object System.Collections.ArrayList + + if ($RemoveParameterType -contains $paramMetadata.Name) { + $paramMetadata.ParameterType = [object] + + for ($i = 0; $i -lt $paramMetadata.Attributes.Count; $i++) { + $attr = $paramMetadata.Attributes[$i] + if ($attr -is [PSTypeNameAttribute]) { + $null = $attrIndexesToRemove.Add($i) + break + } + } + } + + if ($RemoveParameterValidation -contains $paramMetadata.Name) { + for ($i = 0; $i -lt $paramMetadata.Attributes.Count; $i++) { + $attr = $paramMetadata.Attributes[$i] + if ($attr -is [System.Management.Automation.ValidateArgumentsAttribute]) { + $null = $attrIndexesToRemove.Add($i) + } + } + } + + foreach ($index in $attrIndexesToRemove) { + $null = $paramMetadata.Attributes.RemoveAt($index) + } + } + + $repairedMetadata +} + +function Reset-ConflictingParameters { + [CmdletBinding()] + [OutputType([hashtable])] + param( + [Parameter(Mandatory = $true)] + [hashtable] + $BoundParameters + ) + + $parameters = $BoundParameters.Clone() + $names = Get-ConflictingParameterNames + + foreach ($param in $names) { + $fixedName = "_$param" + + if (-not $parameters.ContainsKey($fixedName)) { + continue + } + + $parameters[$param] = $parameters[$fixedName] + $null = $parameters.Remove($fixedName) + } + + $parameters +} + +function Get-ConflictingParameterNames { + $script:ConflictingParameterNames +} + +function Initialize-ConflictingParameterNames { + foreach ($var in (& $script:SafeCommands['Get-Variable'])) { + if (($var.Options -band [System.Management.Automation.ScopedItemOptions]::Constant) -or ($var.Options -band [System.Management.Automation.ScopedItemOptions]::ReadOnly)) { + $var.Name + } + } +} + +function Get-ScriptBlockAST { + param ( + [scriptblock] + $ScriptBlock + ) + + if ($ScriptBlock.Ast -is [System.Management.Automation.Language.ScriptBlockAst]) { + $ast = $Block.Ast.EndBlock + } + elseif ($ScriptBlock.Ast -is [System.Management.Automation.Language.FunctionDefinitionAst]) { + $ast = $Block.Ast.Body.EndBlock + } + else { + throw "Pester failed to parse ParameterFilter, scriptblock is invalid type. Please reformat your ParameterFilter." + } + + return $ast +} + +function New-BlockWithoutParameterAliases { + [CmdletBinding()] + [OutputType([scriptblock])] + param( + [Parameter(Mandatory = $true)] + [ValidateNotNull()] + [System.Management.Automation.CommandMetadata] + $Metadata, + [Parameter(Mandatory = $true)] + [ValidateNotNull()] + [scriptblock] + $Block + ) + try { + if ($PSVersionTable.PSVersion.Major -ge 3) { + $params = $Metadata.Parameters.Values + $ast = Get-ScriptBlockAST $Block + $blockText = $ast.Extent.Text + $variables = [array]($Ast.FindAll( { param($ast) $ast -is [System.Management.Automation.Language.VariableExpressionAst] }, $true)) + [array]::Reverse($variables) + + foreach ($var in $variables) { + $varName = $var.VariablePath.UserPath + $length = $varName.Length + + foreach ($param in $params) { + if ($param.Aliases -contains $varName) { + $startIndex = $var.Extent.StartOffset - $ast.Extent.StartOffset + 1 # move one position after the dollar sign + + $blockText = $blockText.Remove($startIndex, $length).Insert($startIndex, $param.Name) + + break # It is safe to stop checking for further params here, since aliases cannot be shared by parameters + } + } + } + + $Block = [scriptblock]::Create($blockText) + } + + $Block + } + catch { + $PSCmdlet.ThrowTerminatingError($_) + } +} + +function Invoke-CommonSetupInMockScope { + [CmdletBinding()] + param( + [Parameter(Mandatory = $true)] + [ValidateNotNull()] + [hashtable] + $Mock, + [Parameter(Mandatory = $true)] + [ValidateNotNull()] + [scriptblock] + $MockScript, + [Parameter(Mandatory = $true)] + [ValidateNotNull()] + [string] + $CommandName + ) + try { + $scriptBlock = { $ExecutionContext.InvokeProvider.Item.Set("Function:\script:$($args[0])", $args[1], $true, $true) } + $null = Invoke-InMockScope -SessionState $Mock.SessionState -ScriptBlock $scriptBlock -ArgumentList $Mock.BootstrapFunctionName, $MockScript + + $mock.Aliases += $CommandName + + $scriptBlock = { + $setAlias = & (Pester\SafeGetCommand) -Name Set-Alias -CommandType Cmdlet -Module Microsoft.PowerShell.Utility + & $setAlias -Name $args[0] -Value $args[1] -Scope Script + } + + $null = Invoke-InMockScope -SessionState $Mock.SessionState -ScriptBlock $scriptBlock -ArgumentList $CommandName, $Mock.BootstrapFunctionName + + if ($Mock.OriginalCommand.ModuleName) { + $aliasName = "$($Mock.OriginalCommand.ModuleName)\$($CommandName)" + $Mock.Aliases += $aliasName + + $scriptBlock = { + $setAlias = & (Pester\SafeGetCommand) -Name Set-Alias -CommandType Cmdlet -Module Microsoft.PowerShell.Utility + & $setAlias -Name $args[0] -Value $args[1] -Scope Script + } + + $null = Invoke-InMockScope -SessionState $Mock.SessionState -ScriptBlock $scriptBlock -ArgumentList $aliasName, $Mock.BootstrapFunctionName + } + + if ($Mock.OriginalCommand.CommandType -eq 'Application') { + $aliasWithoutExt = $CommandName -replace $Mock.OriginalCommand.Extension + + $Mock.Aliases += $aliasWithoutExt + + $scriptBlock = { + $setAlias = & (Pester\SafeGetCommand) -Name Set-Alias -CommandType Cmdlet -Module Microsoft.PowerShell.Utility + & $setAlias -Name $args[0] -Value $args[1] -Scope Script + } + + $null = Invoke-InMockScope -SessionState $Mock.SessionState -ScriptBlock $scriptBlock -ArgumentList $aliasWithoutExt, $Mock.BootstrapFunctionName + } + } + catch { + $PSCmdlet.ThrowTerminatingError($_) + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU1WSFtZu9OoGAnZ104wiwRp7Q +# fqiggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZlHvN7axg+pCgdEJrtIy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kiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDA2WjAjBgkqhkiG9w0BCQQx +# FgQUvWxqYvoQCfFltNuW+MU8k/S5OHkwDQYJKoZIhvcNAQEBBQAEggEARVjhEq5+ +# Er5fVlccXvHXzreIHo/tReTKXbHZi1MSTZ2zialo/y+NPHGlbGyx7WB8v7diy9LI +# DTnok3UfiR9/oSV8y4w4gf7L32ocUBR+6ZQr/ZlAS5q4ECSwWIuBuXbd85K31Htz +# 832OYTNasZeq8CoTamkeagqsomNxVWTVfcB5/ydlvvqdOkS9o6c8Yp98fv4/AMhG +# DQQmP4F0JBCBJzjebnVJY6V41PXOscVPxh9oBQKGHqFq4fJhdLpguiN2hNL7OY5/ +# qICrc9RxkXSp2B4NWJO8lMve5vfkuwFSEGrdDvLGeBA6Xbb8YdqFhl76r+NnXe3B +# owJsg3aP9K4ALg== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/New-Fixture.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/New-Fixture.ps1 new file mode 100644 index 000000000000..e626a55a16e9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/New-Fixture.ps1 @@ -0,0 +1,271 @@ +function New-Fixture { + <# + .SYNOPSIS + This function generates two scripts, one that defines a function + and another one that contains its tests. + + .DESCRIPTION + This function generates two scripts, one that defines a function + and another one that contains its tests. The files are by default + placed in the current directory and are called and populated as such: + + The script defining the function: .\Clean.ps1: + + ``` + function Clean { + + } + + The script containing the example test .\Clean.Tests.ps1: + + $here = Split-Path -Parent $MyInvocation.MyCommand.Path + $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' + . "$here\$sut" + + Describe "Clean" { + + It "does something useful" { + $true | Should -Be $false + } + } + ``` + + + .PARAMETER Name + Defines the name of the function and the name of the test to be created. + + .PARAMETER Path + Defines path where the test and the function should be created, you can use full or relative path. + If the parameter is not specified the scripts are created in the current directory. + + .EXAMPLE + New-Fixture -Name Clean + + Creates the scripts in the current directory. + + .EXAMPLE + New-Fixture C:\Projects\Cleaner Clean + + Creates the scripts in the C:\Projects\Cleaner directory. + + .EXAMPLE + New-Fixture Cleaner Clean + + Creates a new folder named Cleaner in the current directory and creates the scripts in it. + + .LINK + https://pester.dev/docs/commands/Describe + + .LINK + https://pester.dev/docs/commands/Context + + .LINK + https://pester.dev/docs/commands/It + + .LINK + https://pester.dev/docs/commands/Should + + #> + + param ( + [String]$Path = $PWD, + [Parameter(Mandatory = $true)] + [String]$Name + ) + + $Name = $Name -replace '.ps1', '' + + #region File contents + #keep this formatted as is. the format is output to the file as is, including indentation + $scriptCode = "function $Name {$([System.Environment]::NewLine)$([System.Environment]::NewLine)}" + + $testCode = '$here = Split-Path -Parent $MyInvocation.MyCommand.Path +$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace ''\.Tests\.'', ''.'' +. "$here\$sut" + +Describe "#name#" { + It "does something useful" { + $true | Should -Be $false + } +}' -replace "#name#", $Name + + #endregion + + $Path = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Path) + + Create-File -Path $Path -Name "$Name.ps1" -Content $scriptCode + Create-File -Path $Path -Name "$Name.Tests.ps1" -Content $testCode +} + +function Create-File ($Path, $Name, $Content) { + if (-not (& $SafeCommands['Test-Path'] -Path $Path)) { + & $SafeCommands['New-Item'] -ItemType Directory -Path $Path | & $SafeCommands['Out-Null'] + } + + $FullPath = & $SafeCommands['Join-Path'] -Path $Path -ChildPath $Name + if (-not (& $SafeCommands['Test-Path'] -Path $FullPath)) { + & $SafeCommands['Set-Content'] -Path $FullPath -Value $Content -Encoding UTF8 + & $SafeCommands['Get-Item'] -Path $FullPath + } + else { + # This is deliberately not sent through $SafeCommands, because our own tests rely on + # mocking Write-Warning, and it's not really the end of the world if this call happens to + # be screwed up in an edge case. + Write-Warning "Skipping the file '$FullPath', because it already exists." + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUXx+AVtnqE94mHyGLrp2/zjYZ +# TfSggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ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8S7AN4FAU0eHzzLbLR +# xOXRL/uKGKGCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDA2WjAjBgkqhkiG9w0BCQQx +# FgQUtBUbxyucy32/4Jo1tVUddl9mDlIwDQYJKoZIhvcNAQEBBQAEggEAiPmQZstN +# +6rZhWcGtLiPRjiyJhw3IdE40FP4e80PEuQcyi4Gstu9ROtXp0ErtJOAUdgVgbpp +# r6829JMBx5fHyNFXlLpr3iYIxe2IoI2Z17CQkIgr3i20HKs691BDefKt6zYorzwJ +# IKXwUJi2dMnIrktNF4J9ePZZ5toDqN9IuQEN0jZEqonGeqsVtd0YRWTI4JW0+xIV +# bwtneOZFNhfN4/8o1gKBj86yhSanIXW6AdBU3FCsFSAIXCZxmRHdRGiSfAwdxoVn +# T1K5Q7cScmYhDC5DsvYtZnlhtOqN/Q2aerTYBcqXbaKxXRPYbrE5xA96s16hK+dh +# P6xR7m7JeF2eWA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/New-MockObject.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/New-MockObject.ps1 new file mode 100644 index 000000000000..deec23b2b6dc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/New-MockObject.ps1 @@ -0,0 +1,185 @@ +function New-MockObject { + <# +.SYNOPSIS +This function instantiates a .NET object from a type. + +.DESCRIPTION +Using the New-MockObject you can mock an object based on .NET type. + +An .NET assembly for the particular type must be available in the system and loaded. + +.PARAMETER Type +The .NET type to create an object based on. + +.EXAMPLE +```ps +$obj = New-MockObject -Type 'System.Diagnostics.Process' +$obj.GetType().FullName + System.Diagnostics.Process +``` +#> + + param ( + [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [type]$Type + ) + + [System.Runtime.Serialization.Formatterservices]::GetUninitializedObject($Type) + +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU3nuF7LAU4Jr51dG294VgVU4Z +# J4SggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67mZlHvN7axg+pCgdEJr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GCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDA2WjAjBgkqhkiG9w0BCQQx +# FgQUIaO889ipGcPpdkTXDTlkVcGNlwgwDQYJKoZIhvcNAQEBBQAEggEAfJfGSsGC +# gojHnbdNkqHOxohj/CMnjfhdGU5K5vdeZN7v+QzphZu5hjHS32Yt0br+usywyats +# LMVrnnI3SVVgZKqhYjzzneTvw2R69OSkCHbh3ljZqcapK3RspM72kMcKerZd31/N +# OHqp5zySAJ2pS3eVu3nl8xAtCVDYfyTZM5nwWNjN4F5zMiTpwcIy/eKUbLQyAXIg +# 47MLnye6FV5M6gbqM5TkYhcux8g3cgssymjVgV/JEwtHPnIUSuaEYiGv4txlGBaw +# FwmvtSWWUv8T0/Yw4QXB0QOWn0QtQJTBJ3efiL61RjY4jul5lQcV8/K/0RMrIuDz +# fwKZa/lgh3u8Zw== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Output.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Output.ps1 new file mode 100644 index 000000000000..e1a9736752c9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Output.ps1 @@ -0,0 +1,706 @@ +$Script:ReportStrings = DATA { + @{ + HeaderMessage = 'Pester v{0}' + StartMessage = "Executing all tests in '{0}'" + FilterMessage = ' matching test name {0}' + TagMessage = ' with Tags {0}' + MessageOfs = "', '" + + CoverageTitle = 'Code coverage report:' + CoverageMessage = 'Covered {2:P2} of {3:N0} analyzed {0} in {4:N0} {1}.' + MissedSingular = 'Missed command:' + MissedPlural = 'Missed commands:' + CommandSingular = 'Command' + CommandPlural = 'Commands' + FileSingular = 'File' + FilePlural = 'Files' + + Describe = 'Describing {0}' + Script = 'Executing script {0}' + Context = 'Context {0}' + Margin = ' ' + Timing = 'Tests completed in {0}' + + # If this is set to an empty string, the count won't be printed + ContextsPassed = '' + ContextsFailed = '' + + TestsPassed = 'Tests Passed: {0}, ' + TestsFailed = 'Failed: {0}, ' + TestsSkipped = 'Skipped: {0}, ' + TestsPending = 'Pending: {0}, ' + TestsInconclusive = 'Inconclusive: {0} ' + } +} + +$Script:ReportTheme = DATA { + @{ + Describe = 'Green' + DescribeDetail = 'DarkYellow' + Context = 'Cyan' + ContextDetail = 'DarkCyan' + Pass = 'DarkGreen' + PassTime = 'DarkGray' + Fail = 'Red' + FailTime = 'DarkGray' + Skipped = 'Yellow' + SkippedTime = 'DarkGray' + Pending = 'Gray' + PendingTime = 'DarkGray' + Inconclusive = 'Gray' + InconclusiveTime = 'DarkGray' + Incomplete = 'Yellow' + IncompleteTime = 'DarkGray' + Foreground = 'White' + Information = 'DarkGray' + Coverage = 'White' + CoverageWarn = 'DarkRed' + } +} + +function Format-PesterPath ($Path, [String]$Delimiter) { + # -is check is not enough for the arrays, the incoming value will likely be object[] + # so we have to check if we can upcast to our required type + + if ($null -eq $Path) { + $null + } + elseif ($Path -is [String]) { + $Path + } + elseif ($Path -is [hashtable]) { + # a well formed pester hashtable contains Path + $Path.Path + } + elseif ($null -ne ($path -as [hashtable[]])) { + ($path | ForEach-Object { $_.Path }) -join $Delimiter + } + # needs to stay at the bottom because almost everything can be upcast to array of string + elseif ($Path -as [String[]]) { + $Path -join $Delimiter + } +} + +function Write-PesterStart { + param( + [Parameter(mandatory = $true, valueFromPipeline = $true)] + $PesterState, + $Path = '.' + ) + process { + if (-not ( $pester.Show | Has-Flag 'Header')) { + return + } + + $OFS = $ReportStrings.MessageOfs + + $moduleInfo = $MyInvocation.MyCommand.ScriptBlock.Module + $moduleVersion = $moduleInfo.Version.ToString() + if ($moduleInfo.PrivateData.PSData.Prerelease) { + $moduleVersion += "-$($moduleInfo.PrivateData.PSData.Prerelease)" + } + $message = $ReportStrings.HeaderMessage -f $moduleVersion + $message += [Environment]::NewLine + $message += $ReportStrings.StartMessage -f (Format-PesterPath $Path -Delimiter $OFS) + if ($PesterState.TestNameFilter) { + $message += $ReportStrings.FilterMessage -f "$($PesterState.TestNameFilter)" + } + if ($PesterState.ScriptBlockFilter) { + $m = $(foreach ($m in $PesterState.ScriptBlockFilter) { "$($m.Path):$($m.Line)" }) -join ", " + $message += $ReportStrings.FilterMessage -f $m + } + if ($PesterState.TagFilter) { + $message += $ReportStrings.TagMessage -f "$($PesterState.TagFilter)" + } + + & $SafeCommands['Write-Host'] $message -Foreground $ReportTheme.Foreground + } +} + +function Write-Describe { + param ( + [Parameter(mandatory = $true, valueFromPipeline = $true)] + $Describe, + + [string] $CommandUsed = 'Describe' + ) + process { + if (-not ( $pester.Show | Has-Flag Describe)) { + return + } + + $margin = $ReportStrings.Margin * $pester.IndentLevel + + $Text = if ($Describe.PSObject.Properties['Name'] -and $Describe.Name) { + $ReportStrings.$CommandUsed -f $Describe.Name + } + else { + $ReportStrings.$CommandUsed -f $Describe + } + + & $SafeCommands['Write-Host'] + & $SafeCommands['Write-Host'] "${margin}${Text}" -ForegroundColor $ReportTheme.Describe + # If the feature has a longer description, write that too + if ($Describe.PSObject.Properties['Description'] -and $Describe.Description) { + $Describe.Description -split "$([System.Environment]::NewLine)" | ForEach-Object { + & $SafeCommands['Write-Host'] ($ReportStrings.Margin * ($pester.IndentLevel + 1)) $_ -ForegroundColor $ReportTheme.DescribeDetail + } + } + } +} + +function Write-Context { + param ( + [Parameter(mandatory = $true, valueFromPipeline = $true)] + $Context + ) + process { + if (-not ( $pester.Show | Has-Flag Context)) { + return + } + $Text = if ($Context.PSObject.Properties['Name'] -and $Context.Name) { + $ReportStrings.Context -f $Context.Name + } + else { + $ReportStrings.Context -f $Context + } + + & $SafeCommands['Write-Host'] + & $SafeCommands['Write-Host'] ($ReportStrings.Margin + $Text) -ForegroundColor $ReportTheme.Context + # If the scenario has a longer description, write that too + if ($Context.PSObject.Properties['Description'] -and $Context.Description) { + $Context.Description -split "$([System.Environment]::NewLine)" | ForEach-Object { + & $SafeCommands['Write-Host'] (" " * $ReportStrings.Context.Length) $_ -ForegroundColor $ReportTheme.ContextDetail + } + } + } +} + +function ConvertTo-PesterResult { + param( + [String] $Name, + [Nullable[TimeSpan]] $Time, + [System.Management.Automation.ErrorRecord] $ErrorRecord + ) + + $testResult = @{ + Name = $Name + Time = $time + FailureMessage = "" + StackTrace = "" + ErrorRecord = $null + Success = $false + Result = "Failed" + } + + if (-not $ErrorRecord) { + $testResult.Result = "Passed" + $testResult.Success = $true + return $testResult + } + + if (@('PesterAssertionFailed', 'PesterTestSkipped', 'PesterTestInconclusive', 'PesterTestPending') -contains $ErrorRecord.FullyQualifiedErrorID) { + # we use TargetObject to pass structured information about the error. + $details = $ErrorRecord.TargetObject + + $failureMessage = $details.Message + $file = $details.File + $line = $details.Line + $Text = $details.LineText + + if (-not $Pester.Strict) { + switch ($ErrorRecord.FullyQualifiedErrorID) { + PesterTestInconclusive { + $testResult.Result = "Inconclusive"; break; + } + PesterTestPending { + $testResult.Result = "Pending"; break; + } + PesterTestSkipped { + $testResult.Result = "Skipped"; break; + } + } + } + } + else { + $failureMessage = $ErrorRecord.ToString() + $file = $ErrorRecord.InvocationInfo.ScriptName + $line = $ErrorRecord.InvocationInfo.ScriptLineNumber + $Text = $ErrorRecord.InvocationInfo.Line + } + + $testResult.FailureMessage = $failureMessage + $testResult.StackTrace = "at , ${file}: line ${line}$([System.Environment]::NewLine)${line}: ${Text}" + $testResult.ErrorRecord = $ErrorRecord + + return $testResult +} + +function Remove-Comments ($Text) { + $text -replace "(?s)(<#.*#>)" -replace "\#.*" +} + +function Write-PesterResult { + param ( + [Parameter(mandatory = $true, valueFromPipeline = $true)] + $TestResult + ) + + process { + $quiet = $pester.Show -eq [Pester.OutputTypes]::None + $OutputType = [Pester.OutputTypes] $TestResult.Result + $writeToScreen = $pester.Show | Has-Flag $OutputType + $skipOutput = $quiet -or (-not $writeToScreen) + + if ($skipOutput) { + return + } + + $margin = $ReportStrings.Margin * ($pester.IndentLevel + 1) + $error_margin = $margin + $ReportStrings.Margin + $output = $TestResult.Name + $humanTime = Get-HumanTime $TestResult.Time.TotalSeconds + + if (-not ($OutputType | Has-Flag 'Default, Summary')) { + switch ($TestResult.Result) { + Passed { + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Pass "$margin[+] $output" -NoNewLine + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.PassTime " $humanTime" + break + } + + Failed { + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Fail "$margin[-] $output" -NoNewLine + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.FailTime " $humanTime" + + if ($pester.IncludeVSCodeMarker) { + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Fail $($TestResult.StackTrace -replace '(?m)^', $error_margin) + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Fail $($TestResult.FailureMessage -replace '(?m)^', $error_margin) + } + else { + $TestResult.ErrorRecord | + ConvertTo-FailureLines | + ForEach-Object {$_.Message + $_.Trace} | + ForEach-Object { & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Fail $($_ -replace '(?m)^', $error_margin) } + } + break + } + + Skipped { + $targetObject = if ($null -ne $testresult.ErrorRecord -and + ($o = $testresult.ErrorRecord.PSObject.Properties.Item("TargetObject"))) { $o.Value } + $because = if ($targetObject -and $targetObject.Data.Because) { + ", because $($testresult.ErrorRecord.TargetObject.Data.Because)" + } + else { + $null + } + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Skipped "$margin[!] $output" -NoNewLine + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Skipped ", is skipped$because" -NoNewLine + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.SkippedTime " $humanTime" + break + } + + Pending { + $because = if ($testresult.ErrorRecord.TargetObject.Data.Because) { + ", because $($testresult.ErrorRecord.TargetObject.Data.Because)" + } + else { + $null + } + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Pending "$margin[?] $output" -NoNewLine + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Pending ", is pending$because" -NoNewLine + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.PendingTime " $humanTime" + break + } + + Inconclusive { + $because = if ($testresult.ErrorRecord.TargetObject.Data.Because) { + ", because $($testresult.ErrorRecord.TargetObject.Data.Because)" + } + else { + $null + } + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Inconclusive "$margin[?] $output" -NoNewLine + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Inconclusive ", is inconclusive$because" -NoNewLine + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.InconclusiveTime " $humanTime" + + break + } + + default { + # TODO: Add actual Incomplete status as default rather than checking for null time. + if ($null -eq $TestResult.Time) { + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.Incomplete "$margin[?] $output" -NoNewLine + & $SafeCommands['Write-Host'] -ForegroundColor $ReportTheme.IncompleteTime " $humanTime" + } + } + } + } + } +} + +function Write-PesterReport { + param ( + [Parameter(mandatory = $true, valueFromPipeline = $true)] + $PesterState + ) + if (-not ($PesterState.Show | Has-Flag Summary)) { + return + } + + & $SafeCommands['Write-Host'] ($ReportStrings.Timing -f (Get-HumanTime $PesterState.Time.TotalSeconds)) -Foreground $ReportTheme.Foreground + + $Success, $Failure = if ($PesterState.FailedCount -gt 0) { + $ReportTheme.Foreground, $ReportTheme.Fail + } + else { + $ReportTheme.Pass, $ReportTheme.Information + } + $Skipped = if ($PesterState.SkippedCount -gt 0) { + $ReportTheme.Skipped + } + else { + $ReportTheme.Information + } + $Pending = if ($PesterState.PendingCount -gt 0) { + $ReportTheme.Pending + } + else { + $ReportTheme.Information + } + $Inconclusive = if ($PesterState.InconclusiveCount -gt 0) { + $ReportTheme.Inconclusive + } + else { + $ReportTheme.Information + } + + Try { + $PesterStatePassedScenariosCount = $PesterState.PassedScenarios.Count + } + Catch { + $PesterStatePassedScenariosCount = 0 + } + + Try { + $PesterStateFailedScenariosCount = $PesterState.FailedScenarios.Count + } + Catch { + $PesterStateFailedScenariosCount = 0 + } + + if ($ReportStrings.ContextsPassed) { + & $SafeCommands['Write-Host'] ($ReportStrings.ContextsPassed -f $PesterStatePassedScenariosCount) -Foreground $Success -NoNewLine + & $SafeCommands['Write-Host'] ($ReportStrings.ContextsFailed -f $PesterStateFailedScenariosCount) -Foreground $Failure + } + if ($ReportStrings.TestsPassed) { + & $SafeCommands['Write-Host'] ($ReportStrings.TestsPassed -f $PesterState.PassedCount) -Foreground $Success -NoNewLine + & $SafeCommands['Write-Host'] ($ReportStrings.TestsFailed -f $PesterState.FailedCount) -Foreground $Failure -NoNewLine + & $SafeCommands['Write-Host'] ($ReportStrings.TestsSkipped -f $PesterState.SkippedCount) -Foreground $Skipped -NoNewLine + & $SafeCommands['Write-Host'] ($ReportStrings.TestsPending -f $PesterState.PendingCount) -Foreground $Pending -NoNewLine + & $SafeCommands['Write-Host'] ($ReportStrings.TestsInconclusive -f $PesterState.InconclusiveCount) -Foreground $Inconclusive + } +} + +function Write-CoverageReport { + param ([object] $CoverageReport) + + if ($null -eq $CoverageReport -or ($pester.Show -eq [Pester.OutputTypes]::None) -or $CoverageReport.NumberOfCommandsAnalyzed -eq 0) { + return + } + + $totalCommandCount = $CoverageReport.NumberOfCommandsAnalyzed + $fileCount = $CoverageReport.NumberOfFilesAnalyzed + $executedPercent = ($CoverageReport.NumberOfCommandsExecuted / $CoverageReport.NumberOfCommandsAnalyzed).ToString("P2") + + $command = if ($totalCommandCount -gt 1) { + $ReportStrings.CommandPlural + } + else { + $ReportStrings.CommandSingular + } + $file = if ($fileCount -gt 1) { + $ReportStrings.FilePlural + } + else { + $ReportStrings.FileSingular + } + + $commonParent = Get-CommonParentPath -Path $CoverageReport.AnalyzedFiles + $report = $CoverageReport.MissedCommands | & $SafeCommands['Select-Object'] -Property @( + @{ Name = 'File'; Expression = { Get-RelativePath -Path $_.File -RelativeTo $commonParent } } + 'Class' + 'Function' + 'Line' + 'Command' + ) + + & $SafeCommands['Write-Host'] + & $SafeCommands['Write-Host'] $ReportStrings.CoverageTitle -Foreground $ReportTheme.Coverage + + if ($CoverageReport.MissedCommands.Count -gt 0) { + & $SafeCommands['Write-Host'] ($ReportStrings.CoverageMessage -f $command, $file, $executedPercent, $totalCommandCount, $fileCount) -Foreground $ReportTheme.CoverageWarn + if ($CoverageReport.MissedCommands.Count -eq 1) { + & $SafeCommands['Write-Host'] $ReportStrings.MissedSingular -Foreground $ReportTheme.CoverageWarn + } + else { + & $SafeCommands['Write-Host'] $ReportStrings.MissedPlural -Foreground $ReportTheme.CoverageWarn + } + $report | & $SafeCommands['Format-Table'] -AutoSize | & $SafeCommands['Out-Host'] + } + else { + & $SafeCommands['Write-Host'] ($ReportStrings.CoverageMessage -f $command, $file, $executedPercent, $totalCommandCount, $fileCount) -Foreground $ReportTheme.Coverage + } +} + +function ConvertTo-FailureLines { + param ( + [Parameter(mandatory = $true, valueFromPipeline = $true)] + $ErrorRecord + ) + process { + $lines = & $script:SafeCommands['New-Object'] psobject -Property @{ + Message = @() + Trace = @() + } + + ## convert the exception messages + $exception = $ErrorRecord.Exception + $exceptionLines = @() + + while ($exception) { + $exceptionName = $exception.GetType().Name + $thisLines = $exception.Message.Split([string[]]($([System.Environment]::NewLine), "\n", "`n"), [System.StringSplitOptions]::RemoveEmptyEntries) + if ($ErrorRecord.FullyQualifiedErrorId -ne 'PesterAssertionFailed' -and $thisLines.Length -gt 0) { + $thisLines[0] = "$exceptionName`: $($thisLines[0])" + } + [array]::Reverse($thisLines) + $exceptionLines += $thisLines + $exception = $exception.InnerException + } + [array]::Reverse($exceptionLines) + $lines.Message += $exceptionLines + if ($ErrorRecord.FullyQualifiedErrorId -eq 'PesterAssertionFailed') { + $lines.Message += "$($ErrorRecord.TargetObject.Line)`: $($ErrorRecord.TargetObject.LineText)".Split([string[]]($([System.Environment]::NewLine), "\n", "`n"), [System.StringSplitOptions]::RemoveEmptyEntries) + } + + if ( -not ($ErrorRecord | & $SafeCommands['Get-Member'] -Name ScriptStackTrace) ) { + if ($ErrorRecord.FullyQualifiedErrorID -eq 'PesterAssertionFailed') { + $lines.Trace += "at line: $($ErrorRecord.TargetObject.Line) in $($ErrorRecord.TargetObject.File)" + } + else { + $lines.Trace += "at line: $($ErrorRecord.InvocationInfo.ScriptLineNumber) in $($ErrorRecord.InvocationInfo.ScriptName)" + } + return $lines + } + + ## convert the stack trace if present (there might be none if we are raising the error ourselves) + # todo: this is a workaround see https://github.com/pester/Pester/pull/886 + if ($null -ne $ErrorRecord.ScriptStackTrace) { + $traceLines = $ErrorRecord.ScriptStackTrace.Split([Environment]::NewLine, [System.StringSplitOptions]::RemoveEmptyEntries) + } + + $count = 0 + + # omit the lines internal to Pester + + If ((GetPesterOS) -ne 'Windows') { + + [String]$pattern1 = '^at (Invoke-Test|Context|Describe|InModuleScope|Invoke-Pester), .*/Functions/.*.ps1: line [0-9]*$' + [String]$pattern2 = '^at Should, .*/Functions/Assertions/Should.ps1: line [0-9]*$' + [String]$pattern3 = '^at Assert-MockCalled, .*/Functions/Mock.ps1: line [0-9]*$' + [String]$pattern4 = '^at Invoke-Assertion, .*/Functions/.*.ps1: line [0-9]*$' + [String]$pattern5 = '^at (|Invoke-Gherkin.*), (|.*/Functions/.*.ps1): line [0-9]*$' + [String]$pattern6 = '^at Invoke-LegacyAssertion, .*/Functions/.*.ps1: line [0-9]*$' + } + Else { + + [String]$pattern1 = '^at (Invoke-Test|Context|Describe|InModuleScope|Invoke-Pester), .*\\Functions\\.*.ps1: line [0-9]*$' + [String]$pattern2 = '^at Should, .*\\Functions\\Assertions\\Should.ps1: line [0-9]*$' + [String]$pattern3 = '^at Assert-MockCalled, .*\\Functions\\Mock.ps1: line [0-9]*$' + [String]$pattern4 = '^at Invoke-Assertion, .*\\Functions\\.*.ps1: line [0-9]*$' + [String]$pattern5 = '^at (|Invoke-Gherkin.*), (|.*\\Functions\\.*.ps1): line [0-9]*$' + [String]$pattern6 = '^at Invoke-LegacyAssertion, .*\\Functions\\.*.ps1: line [0-9]*$' + } + + foreach ( $line in $traceLines ) { + if ( $line -match $pattern1 ) { + break + } + $count ++ + } + + if ($ExecutionContext.SessionState.PSVariable.GetValue("PesterDebugPreference_ShowFullErrors")) { + $lines.Trace += $traceLines + } + else { + $lines.Trace += $traceLines | + & $SafeCommands['Select-Object'] -First $count | + & $SafeCommands['Where-Object'] { + $_ -notmatch $pattern2 -and + $_ -notmatch $pattern3 -and + $_ -notmatch $pattern4 -and + $_ -notmatch $pattern5 -and + $_ -notmatch $pattern6 + } + } + + return $lines + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU5FrKOjIL6b1uawwLypcsP79C +# K2iggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgN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sResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/PesterState.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/PesterState.ps1 new file mode 100644 index 000000000000..3aa4a319d68f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/PesterState.ps1 @@ -0,0 +1,533 @@ +function New-PesterState { + param ( + [String[]]$TagFilter, + [String[]]$ExcludeTagFilter, + [String[]]$TestNameFilter, + [System.Management.Automation.SessionState]$SessionState, + [Switch]$Strict, + [Pester.OutputTypes]$Show = 'All', + [object]$PesterOption, + [Switch]$RunningViaInvokePester, + [Hashtable[]] $ScriptBlockFilter + ) + + if ($null -eq $SessionState) { + $SessionState = Set-SessionStateHint -PassThru -Hint "Module - Pester (captured in New-PesterState)" -SessionState $ExecutionContext.SessionState + } + + if ($null -eq $PesterOption) { + $PesterOption = New-PesterOption + } + elseif ($PesterOption -is [System.Collections.IDictionary]) { + try { + $PesterOption = New-PesterOption @PesterOption + } + catch { + throw + } + } + + & $SafeCommands['New-Module'] -Name PesterState -AsCustomObject -ArgumentList $TagFilter, $ExcludeTagFilter, $TestNameFilter, $SessionState, $Strict, $Show, $PesterOption, $RunningViaInvokePester -ScriptBlock { + param ( + [String[]]$_tagFilter, + [String[]]$_excludeTagFilter, + [String[]]$_testNameFilter, + [System.Management.Automation.SessionState]$_sessionState, + [Switch]$Strict, + [Pester.OutputTypes]$Show, + [object]$PesterOption, + [Switch]$RunningViaInvokePester + ) + + #public read-only + $TagFilter = $_tagFilter + $ExcludeTagFilter = $_excludeTagFilter + $TestNameFilter = $_testNameFilter + + + $script:SessionState = $_sessionState + $script:Stopwatch = [System.Diagnostics.Stopwatch]::StartNew() + $script:TestStartTime = $null + $script:TestStopTime = $null + $script:CommandCoverage = @() + $script:Strict = $Strict + $script:Show = $Show + $script:InTest = $false + + $script:TestResult = @() + + $script:TotalCount = 0 + $script:Time = [timespan]0 + $script:PassedCount = 0 + $script:FailedCount = 0 + $script:SkippedCount = 0 + $script:PendingCount = 0 + $script:InconclusiveCount = 0 + + $script:IncludeVSCodeMarker = $PesterOption.IncludeVSCodeMarker + $script:TestSuiteName = $PesterOption.TestSuiteName + $script:ScriptBlockFilter = $PesterOption.ScriptBlockFilter + $script:RunningViaInvokePester = $RunningViaInvokePester + + $script:SafeCommands = @{} + + $script:SafeCommands['New-Object'] = & (Pester\SafeGetCommand) -Name New-Object -Module Microsoft.PowerShell.Utility -CommandType Cmdlet + $script:SafeCommands['Select-Object'] = & (Pester\SafeGetCommand) -Name Select-Object -Module Microsoft.PowerShell.Utility -CommandType Cmdlet + $script:SafeCommands['Export-ModuleMember'] = & (Pester\SafeGetCommand) -Name Export-ModuleMember -Module Microsoft.PowerShell.Core -CommandType Cmdlet + $script:SafeCommands['Add-Member'] = & (Pester\SafeGetCommand) -Name Add-Member -Module Microsoft.PowerShell.Utility -CommandType Cmdlet + + function New-TestGroup([string] $Name, [string] $Hint) { + & $SafeCommands['New-Object'] psobject -Property @{ + Name = $Name + Type = 'TestGroup' + Hint = $Hint + Actions = [System.Collections.ArrayList]@() + BeforeEach = & $SafeCommands['New-Object'] System.Collections.Generic.List[scriptblock] + AfterEach = & $SafeCommands['New-Object'] System.Collections.Generic.List[scriptblock] + BeforeAll = & $SafeCommands['New-Object'] System.Collections.Generic.List[scriptblock] + AfterAll = & $SafeCommands['New-Object'] System.Collections.Generic.List[scriptblock] + TotalCount = 0 + StartTime = $Null + Time = [timespan]0 + PassedCount = 0 + FailedCount = 0 + SkippedCount = 0 + PendingCount = 0 + InconclusiveCount = 0 + } + } + + $script:TestActions = New-TestGroup -Name Pester -Hint Root + $script:TestGroupStack = & $SafeCommands['New-Object'] System.Collections.Stack + $script:TestGroupStack.Push($script:TestActions) + + function EnterTestGroup([string] $Name, [string] $Hint) { + $newGroup = New-TestGroup @PSBoundParameters + $newGroup.StartTime = $script:Stopwatch.Elapsed + $null = $script:TestGroupStack.Peek().Actions.Add($newGroup) + + $script:TestGroupStack.Push($newGroup) + } + + function LeaveTestGroup([string] $Name, [string] $Hint) { + $StopTime = $script:Stopwatch.Elapsed + $currentGroup = $script:TestGroupStack.Pop() + + if ( $Hint -eq 'Script' ) { + $script:Time += $StopTime - $currentGroup.StartTime + } + + $currentGroup.Time = $StopTime - $currentGroup.StartTime + + # Removing start time property from output to prevent clutter + $currentGroup.PSObject.properties.remove('StartTime') + + if ($currentGroup.Name -ne $Name -or $currentGroup.Hint -ne $Hint) { + throw "TestGroups stack corrupted: Expected name/hint of '$Name','$Hint'. Found '$($currentGroup.Name)', '$($currentGroup.Hint)'." + } + } + + function AddTestResult { + param ( + [string]$Name, + [ValidateSet("Failed", "Passed", "Skipped", "Pending", "Inconclusive")] + [string]$Result, + [Nullable[TimeSpan]]$Time, + [string]$FailureMessage, + [string]$StackTrace, + [string] $ParameterizedSuiteName, + [System.Collections.IDictionary] $Parameters, + [System.Management.Automation.ErrorRecord] $ErrorRecord + ) + + # defining this function in here, because otherwise it is not available + function New-ErrorRecord ([string] $Message, [string] $ErrorId, [string] $File, [string] $Line, [string] $LineText) { + $exception = & $SafeCommands['New-Object'] Exception $Message + $errorCategory = [Management.Automation.ErrorCategory]::InvalidResult + # we use ErrorRecord.TargetObject to pass structured information about the error to a reporting system. + $targetObject = @{Message = $Message; File = $File; Line = $Line; LineText = $LineText} + $errorRecord = & $SafeCommands['New-Object'] Management.Automation.ErrorRecord $exception, $ErrorID, $errorCategory, $targetObject + return $errorRecord + } + + if ($null -eq $Time) { + if ( $script:TestStartTime -and $script:TestStopTime ) { + $Time = $script:TestStopTime - $script:TestStartTime + $script:TestStartTime = $null + $script:TestStopTime = [timespan]0 + } + else { + $Time = [timespan]0 + } + } + + if (-not $script:Strict) { + $Passed = "Passed", "Skipped", "Pending" -contains $Result + } + else { + $Passed = $Result -eq "Passed" + if (@("Skipped", "Pending", "Inconclusive") -contains $Result) { + $FailureMessage = "The test failed because the test was executed in Strict mode and the result '$result' was translated to Failed." + $ErrorRecord = New-ErrorRecord -ErrorId "PesterTest$Result" -Message $FailureMessage + $Result = "Failed" + } + + } + + $script:TotalCount++ + + switch ($Result) { + Passed { + $script:PassedCount++; break; + } + Failed { + $script:FailedCount++; break; + } + Skipped { + $script:SkippedCount++; break; + } + Pending { + $script:PendingCount++; break; + } + Inconclusive { + $script:InconclusiveCount++; break; + } + } + + $resultRecord = & $SafeCommands['New-Object'] -TypeName PsObject -Property @{ + Name = $Name + Type = 'TestCase' + Passed = $Passed + Result = $Result + Time = $Time + FailureMessage = $FailureMessage + StackTrace = $StackTrace + ErrorRecord = $ErrorRecord + ParameterizedSuiteName = $ParameterizedSuiteName + Parameters = $Parameters + Show = $script:Show + } + + $null = $script:TestGroupStack.Peek().Actions.Add($resultRecord) + + # Attempting some degree of backward compatibility for the TestResult collection for now; deprecated and will be removed in the future + $describe = '' + $contexts = [System.Collections.ArrayList]@() + + # make a copy of the stack and reverse it + $reversedStack = $script:TestGroupStack.ToArray() + [array]::Reverse($reversedStack) + + foreach ($group in $reversedStack) { + if ($group.Hint -eq 'Root' -or $group.Hint -eq 'Script') { + continue + } + if ($describe -eq '') { + $describe = $group.Name + } + else { + $null = $contexts.Add($group.Name) + } + } + + $context = $contexts -join '\' + + $script:TestResult += & $SafeCommands['New-Object'] psobject -Property @{ + Describe = $describe + Context = $context + Name = $Name + Passed = $Passed + Result = $Result + Time = $Time + FailureMessage = $FailureMessage + StackTrace = $StackTrace + ErrorRecord = $ErrorRecord + ParameterizedSuiteName = $ParameterizedSuiteName + Parameters = $Parameters + Show = $script:Show + } + } + + function AddSetupOrTeardownBlock([scriptblock] $ScriptBlock, [string] $CommandName) { + $currentGroup = $script:TestGroupStack.Peek() + + $isSetupCommand = IsSetupCommand -CommandName $CommandName + $isGroupCommand = IsTestGroupCommand -CommandName $CommandName + + if ($isSetupCommand) { + if ($isGroupCommand) { + $currentGroup.BeforeAll.Add($ScriptBlock) + } + else { + $currentGroup.BeforeEach.Add($ScriptBlock) + } + } + else { + if ($isGroupCommand) { + $currentGroup.AfterAll.Add($ScriptBlock) + } + else { + $currentGroup.AfterEach.Add($ScriptBlock) + } + } + } + + function IsSetupCommand { + param ([string] $CommandName) + return $CommandName -eq 'BeforeEach' -or $CommandName -eq 'BeforeAll' + } + + function IsTestGroupCommand { + param ([string] $CommandName) + return $CommandName -eq 'BeforeAll' -or $CommandName -eq 'AfterAll' + } + + function GetTestCaseSetupBlocks { + $blocks = @( + foreach ($group in $this.TestGroups) { + $group.BeforeEach + } + ) + + return $blocks + } + + function GetTestCaseTeardownBlocks { + $groups = @($this.TestGroups) + [Array]::Reverse($groups) + + $blocks = @( + foreach ($group in $groups) { + $group.AfterEach + } + ) + + return $blocks + } + + function GetCurrentTestGroupSetupBlocks { + return $script:TestGroupStack.Peek().BeforeAll + } + + function GetCurrentTestGroupTeardownBlocks { + return $script:TestGroupStack.Peek().AfterAll + } + + function EnterTest { + if ($script:InTest) { + throw 'You are already in a test case.' + } + + $script:TestStartTime = $script:Stopwatch.Elapsed + $script:InTest = $true + } + + function LeaveTest { + $script:TestStopTime = $script:Stopwatch.Elapsed + $script:InTest = $false + } + + $ExportedVariables = "TagFilter", + "ExcludeTagFilter", + "TestNameFilter", + "ScriptBlockFilter", + "TestResult", + "SessionState", + "CommandCoverage", + "Strict", + "Show", + "Time", + "TotalCount", + "PassedCount", + "FailedCount", + "SkippedCount", + "PendingCount", + "InconclusiveCount", + "IncludeVSCodeMarker", + "TestActions", + "TestGroupStack", + "TestSuiteName", + "InTest", + "RunningViaInvokePester" + + $ExportedFunctions = "EnterTestGroup", + "LeaveTestGroup", + "AddTestResult", + "AddSetupOrTeardownBlock", + "GetTestCaseSetupBlocks", + "GetTestCaseTeardownBlocks", + "GetCurrentTestGroupSetupBlocks", + "GetCurrentTestGroupTeardownBlocks", + "EnterTest", + "LeaveTest" + + & $SafeCommands['Export-ModuleMember'] -Variable $ExportedVariables -function $ExportedFunctions + } | + & $SafeCommands['Add-Member'] -PassThru -MemberType ScriptProperty -Name CurrentTestGroup -Value { + $this.TestGroupStack.Peek() + } | + & $SafeCommands['Add-Member'] -PassThru -MemberType ScriptProperty -Name TestGroups -Value { + $array = $this.TestGroupStack.ToArray() + [Array]::Reverse($array) + return $array + } | + & $SafeCommands['Add-Member'] -PassThru -MemberType ScriptProperty -Name IndentLevel -Value { + # We ignore the root node of the stack here, and don't start indenting until after the Script nodes inside the root + return [Math]::Max(0, $this.TestGroupStack.Count - 2) + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUmkuNYKsGqbcH53Y8Sif1Q1xt +# VJuggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA9utpwxVQSutt +# /H1onVexiJgwGJ6xoQgR17FGLBGiIHgyPhFJhba9yENh0dqargLWllsg070WE2yb +# gz3m659gmfuCuSZOhQ2nCHvOjEocTiI67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X4J/UZ5iKGCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDA3WjAjBgkqhkiG9w0BCQQx +# FgQUze02YQBhdgGNThVB1KTXxqbiG4YwDQYJKoZIhvcNAQEBBQAEggEAR8KOlUFc +# o7s+Gl/7tXRaJtDGB5dhrvhrTo3lJEs3uvtqShMa4Em4cB0bPsRPbTDtVDyMSUYT +# h6R0IyhO9zIVrGB4ftwiV9XFLs9uIyQZ2cEhdnlXdFXl1Y7Qf9bmJtoSQXK1yb4Z +# C4TuHonfv22lFVw4CJmzYixSQ0D6B7LFm7BtZcZyTNQSgZKYG0Q5a1oUAEuP8yNJ +# gB/tkgfND+Zpyo+IYgvxwDMPKY4I4p1/4BbUCk05aLsCpkPuoMtEEb12ogBQ3hjH +# x3MLW7qGSn+wnzlKdPgbY2tz9OM/bh/iIW2AkXAc1ZsCsht2p4Rlu5uE/0MDMsGY +# Ue/qyWGwEG10mw== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Set-ItResult.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Set-ItResult.ps1 new file mode 100644 index 000000000000..943a002f7f02 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/Set-ItResult.ps1 @@ -0,0 +1,276 @@ +function Set-ItResult { + <# + .SYNOPSIS + Set-ItResult is used inside the It block to explicitly set the test result + + .DESCRIPTION + Sometimes a test shouldn't be executed, sometimes the condition cannot be evaluated. + By default such tests would typically fail and produce a big red message. + Using Set-ItResult it is possible to set the result from the inside of the It script + block to either inconclusive, pending or skipped. + + .PARAMETER Inconclusive + Sets the test result to inconclusive. Cannot be used at the same time as -Pending or -Skipped + + .PARAMETER Pending + Sets the test result to pending. Cannot be used at the same time as -Inconclusive or -Skipped + + .PARAMETER Skipped + Sets the test result to skipped. Cannot be used at the same time as -Inconclusive or -Pending + + .PARAMETER Because + Similarily to failing tests, skipped and inconclusive tests should have reason. It allows + to provide information to the user why the test is neither successful nor failed. + + .EXAMPLE + ```ps + Describe "Example" { + It "Inconclusive result test" { + Set-ItResult -Inconclusive -Because "we want it to be inconclusive" + } + } + ``` + + the output should be + + ``` + [?] Inconclusive result test, is inconclusive, because we want it to be inconclusive + Tests completed in 0ms + Tests Passed: 0, Failed: 0, Skipped: 0, Pending: 0, Inconclusive 1 + ``` + + .EXAMPLE + ```ps + Describe "Example" { + It "Skipped test" { + Set-ItResult -Skipped -Because "we want it to be skipped" + } + } + ``` + + the output should be + + ``` + [!] Skipped test, is skipped, because we want it to be skipped + Tests completed in 0ms + Tests Passed: 0, Failed: 0, Skipped: 0, Pending: 0, Inconclusive 1 + ``` +#> + [CmdletBinding()] + param( + [Parameter(Mandatory = $false, ParameterSetName = "Inconclusive")][switch]$Inconclusive, + [Parameter(Mandatory = $false, ParameterSetName = "Pending")][switch]$Pending, + [Parameter(Mandatory = $false, ParameterSetName = "Skipped")][switch]$Skipped, + [string]$Because + ) + + Assert-DescribeInProgress -CommandName Set-ItResult + + $result = $PSCmdlet.ParameterSetName + $message = "It result set to $result$(if ($Because) { ", $Because" })" + $data = @{ + Result = $result + Because = $Because + } + $errorRecord = New-PesterErrorRecord -Result $result -Message $message -Data $data + throw $errorRecord +} + +function New-PesterErrorRecord { + [CmdletBinding()] + param( + [Parameter(Mandatory = $true)] + [string]$Result, + [Parameter(Mandatory = $true)] + [string]$Message, + [string]$File, + [string]$Line, + [string]$LineText, + [hashtable]$Data + ) + + $exception = New-Object Exception $Message + $errorID = "PesterTest$Result" + $errorCategory = [Management.Automation.ErrorCategory]::InvalidResult + + # we use ErrorRecord.TargetObject to pass structured information about the error to a reporting system. + $targetObject = @{ + Message = $Message + Data = $Data + File = $(if ($File -ne $null) { + $File + } + else { + $MyInvocation.ScriptName + }) + Line = $(if ($Line -ne $null) { + $Line + } + else { + $MyInvocation.ScriptLineNumber + }) + LineText = $(if ($LineText -ne $null) { + $LineText + } + else { + $MyInvocation.Line + }).TrimEnd($([System.Environment]::NewLine)) + } + + New-Object Management.Automation.ErrorRecord $exception, $errorID, $errorCategory, $targetObject +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUgCdHQVMDWahxEPgFP2MBM9PH +# bdKggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTEyMDAwMFowSzELMAkGA1UEBhMCQ1oxDjAMBgNVBAcTBVByYWhhMRUwEwYDVQQK +# DAxKYWt1YiBKYXJlxaExFTATBgNVBAMMDEpha3ViIEphcmXFoTCCASIwDQYJKoZI +# hvcNAQEBBQADggEPADCCAQoCggEBALYF0cDtFUyYgraHpHdObGJM9dxjfRr0WaPN +# kVZcEHdPXk4bVCPZLSca3Byybx745CpB3oejDHEbohLSTrbunoSA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PQnHGWFFJmKW8t6faI0aNvGY+h0thz +# 793iiXCE9uG9Yy/IDm1/J8x5tnaP6KHAp1PCwcPd/KgkIvZ3yPigm7m84Yk4kifY +# tz3prOM9TaGCAg8wggILBgkqhkiG9w0BCQYxggH8MIIB+AIBATB2MGIxCzAJBgNV +# BAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdp +# Y2VydC5jb20xITAfBgNVBAMTGERpZ2lDZXJ0IEFzc3VyZWQgSUQgQ0EtMQIQAwGa +# Ajr/WLFr1tXq5hfwZjAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3 +# DQEHATAcBgkqhkiG9w0BCQUxDxcNMjAwMjA3MTk1NDA3WjAjBgkqhkiG9w0BCQQx +# FgQUT93YXr4s0ibkpP1vRDGMHQjYaoQwDQYJKoZIhvcNAQEBBQAEggEAIBlSDiUL +# j+VBeKi6DhGuD3rkEpPCv6PZcajWwercy7vq8nUT8A/rkFVS6r07XNmM2TI8kkbh +# 33tRwBukFbofpvB1UmMlabHp4Pj2dEvod5a1tg8X9vxH1dKNoVS26snQ5gqACl4J +# HmEVpQ5ZM/CN5Lr957vx9QcqnAJ//5rlIMzaffFLHHRh87/L91ar7PlAki3rx5b+ +# pT6mpK4RXWks7Cq8hARrMb809qF5xokIz4HbCBirhtoKGdBLj7dc0/SE+k6IRSKo +# PkGLXiTxWd5Nqwc7n1JNGvxdB+41u36zq0iUV+rogy4X46csIPkKiMbBWFsKYedY +# dC9AkAO34FWMQg== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/SetupTeardown.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/SetupTeardown.ps1 new file mode 100644 index 000000000000..c26612419efc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/SetupTeardown.ps1 @@ -0,0 +1,521 @@ +function BeforeEach { + <# + .SYNOPSIS + Defines a series of steps to perform at the beginning of every It block within + the current Context or Describe block. + + .DESCRIPTION + BeforeEach, AfterEach, BeforeAll, and AfterAll are unique in that they apply + to the entire Context or Describe block, regardless of the order of the + statements in the Context or Describe. For a full description of this + behavior, as well as how multiple BeforeEach or AfterEach blocks interact + with each other, please refer to the about_BeforeEach_AfterEach help file. + + .LINK + https://pester.dev/docs/commands/AfterEach + + #> + [CmdletBinding()] + param + ( + # the scriptblock to execute + [Parameter(Mandatory = $true, + Position = 1)] + [Scriptblock] + $Scriptblock + ) + Assert-DescribeInProgress -CommandName BeforeEach +} + +function AfterEach { + <# + .SYNOPSIS + Defines a series of steps to perform at the end of every It block within + the current Context or Describe block. + + .DESCRIPTION + BeforeEach, AfterEach, BeforeAll, and AfterAll are unique in that they apply + to the entire Context or Describe block, regardless of the order of the + statements in the Context or Describe. For a full description of this + behavior, as well as how multiple BeforeEach or AfterEach blocks interact + with each other, please refer to the about_BeforeEach_AfterEach help file. + + .LINK + https://pester.dev/docs/commands/BeforeEach + + #> + [CmdletBinding()] + param + ( + # the scriptblock to execute + [Parameter(Mandatory = $true, + Position = 1)] + [Scriptblock] + $Scriptblock + ) + Assert-DescribeInProgress -CommandName AfterEach +} + +function BeforeAll { + <# + .SYNOPSIS + Defines a series of steps to perform at the beginning of the current Context + or Describe block. + + .DESCRIPTION + BeforeEach, AfterEach, BeforeAll, and AfterAll are unique in that they apply + to the entire Context or Describe block, regardless of the order of the + statements in the Context or Describe. + + .LINK + https://pester.dev/docs/commands/AfterAll + + #> + [CmdletBinding()] + param + ( + # the scriptblock to execute + [Parameter(Mandatory = $true, + Position = 1)] + [Scriptblock] + $Scriptblock + ) + Assert-DescribeInProgress -CommandName BeforeAll +} + +function AfterAll { + <# +.SYNOPSIS + Defines a series of steps to perform at the end of the current Context + or Describe block. + +.DESCRIPTION + BeforeEach, AfterEach, BeforeAll, and AfterAll are unique in that they apply + to the entire Context or Describe block, regardless of the order of the + statements in the Context or Describe. + +.LINK + https://pester.dev/docs/commands/BeforeAll +#> + [CmdletBinding()] + param + ( + # the scriptblock to execute + [Parameter(Mandatory = $true, + Position = 1)] + [Scriptblock] + $Scriptblock + ) + Assert-DescribeInProgress -CommandName AfterAll +} + +function Invoke-TestCaseSetupBlocks { + Invoke-Blocks -ScriptBlock $pester.GetTestCaseSetupBlocks() +} + +function Invoke-TestCaseTeardownBlocks { + Invoke-Blocks -ScriptBlock $pester.GetTestCaseTeardownBlocks() +} + +function Invoke-TestGroupSetupBlocks { + Invoke-Blocks -ScriptBlock $pester.GetCurrentTestGroupSetupBlocks() +} + +function Invoke-TestGroupTeardownBlocks { + Invoke-Blocks -ScriptBlock $pester.GetCurrentTestGroupTeardownBlocks() +} + +function Invoke-Blocks { + param ([scriptblock[]] $ScriptBlock) + + foreach ($block in $ScriptBlock) { + if ($null -eq $block) { + continue + } + $null = . $block + } +} + +function Add-SetupAndTeardown { + param ( + [scriptblock] $ScriptBlock + ) + + if ($PSVersionTable.PSVersion.Major -le 2) { + Add-SetupAndTeardownV2 -ScriptBlock $ScriptBlock + } + else { + Add-SetupAndTeardownV3 -ScriptBlock $ScriptBlock + } +} + +function Add-SetupAndTeardownV3 { + param ( + [scriptblock] $ScriptBlock + ) + + $pattern = '^(?:Before|After)(?:Each|All)$' + $predicate = { + param ([System.Management.Automation.Language.Ast] $Ast) + + $Ast -is [System.Management.Automation.Language.CommandAst] -and + $Ast.CommandElements[0].ToString() -match $pattern -and + $Ast.CommandElements[-1] -is [System.Management.Automation.Language.ScriptBlockExpressionAst] + } + + $searchNestedBlocks = $false + + $calls = $ScriptBlock.Ast.FindAll($predicate, $searchNestedBlocks) + + foreach ($call in $calls) { + # For some reason, calling ScriptBlockAst.GetScriptBlock() sometimes blows up due to failing semantics + # checks, even though the code is perfectly valid. So we'll poke around with reflection again to skip + # that part and just call the internal ScriptBlock constructor that we need + + $iPmdProviderType = [scriptblock].Assembly.GetType('System.Management.Automation.Language.IParameterMetadataProvider') + + $flags = [System.Reflection.BindingFlags]'Instance, NonPublic' + $constructor = [scriptblock].GetConstructor($flags, $null, [Type[]]@($iPmdProviderType, [bool]), $null) + + $block = $constructor.Invoke(@($call.CommandElements[-1].ScriptBlock, $false)) + + Set-ScriptBlockScope -ScriptBlock $block -SessionState $pester.SessionState + $commandName = $call.CommandElements[0].ToString() + Add-SetupOrTeardownScriptBlock -CommandName $commandName -ScriptBlock $block + } +} + +function Add-SetupAndTeardownV2 { + param ( + [scriptblock] $ScriptBlock + ) + + $codeText = $ScriptBlock.ToString() + $tokens = @(ParseCodeIntoTokens -CodeText $codeText) + + for ($i = 0; $i -lt $tokens.Count; $i++) { + $token = $tokens[$i] + $type = $token.Type + if ($type -eq [System.Management.Automation.PSTokenType]::Command -and + (IsSetupOrTeardownCommand -CommandName $token.Content)) { + $openBraceIndex, $closeBraceIndex = Get-BraceIndicesForCommand -Tokens $tokens -CommandIndex $i + + $block = Get-ScriptBlockFromTokens -Tokens $Tokens -OpenBraceIndex $openBraceIndex -CloseBraceIndex $closeBraceIndex -CodeText $codeText + Add-SetupOrTeardownScriptBlock -CommandName $token.Content -ScriptBlock $block + + $i = $closeBraceIndex + } + elseif ($type -eq [System.Management.Automation.PSTokenType]::GroupStart) { + # We don't want to parse Setup or Teardown commands in child scopes here, so anything + # bounded by a GroupStart / GroupEnd token pair which is not immediately preceded by + # a setup / teardown command name is ignored. + $i = Get-GroupCloseTokenIndex -Tokens $tokens -GroupStartTokenIndex $i + } + } +} + +function ParseCodeIntoTokens { + param ([string] $CodeText) + + $parseErrors = $null + $tokens = [System.Management.Automation.PSParser]::Tokenize($CodeText, [ref] $parseErrors) + + if ($parseErrors.Count -gt 0) { + $currentScope = $pester.CurrentTestGroup.Hint + if (-not $currentScope) { + $currentScope = 'test group' + } + throw "The current $currentScope block contains syntax errors." + } + + return $tokens +} + +function IsSetupOrTeardownCommand { + param ([string] $CommandName) + return (IsSetupCommand -CommandName $CommandName) -or (IsTeardownCommand -CommandName $CommandName) +} + +function IsSetupCommand { + param ([string] $CommandName) + return $CommandName -eq 'BeforeEach' -or $CommandName -eq 'BeforeAll' +} + +function IsTeardownCommand { + param ([string] $CommandName) + return $CommandName -eq 'AfterEach' -or $CommandName -eq 'AfterAll' +} + +function IsTestGroupCommand { + param ([string] $CommandName) + return $CommandName -eq 'BeforeAll' -or $CommandName -eq 'AfterAll' +} + +function Get-BraceIndicesForCommand { + param ( + [System.Management.Automation.PSToken[]] $Tokens, + [int] $CommandIndex + ) + + $openingGroupTokenIndex = Get-GroupStartTokenForCommand -Tokens $Tokens -CommandIndex $CommandIndex + $closingGroupTokenIndex = Get-GroupCloseTokenIndex -Tokens $Tokens -GroupStartTokenIndex $openingGroupTokenIndex + + return $openingGroupTokenIndex, $closingGroupTokenIndex +} + +function Get-GroupStartTokenForCommand { + param ( + [System.Management.Automation.PSToken[]] $Tokens, + [int] $CommandIndex + ) + + $commandName = $Tokens[$CommandIndex].Content + + # gets ScriptBlock from positional parameter e.g. BeforeEach { } + if ($CommandIndex + 1 -lt $tokens.Count -and + ($tokens[$CommandIndex + 1].Type -eq [System.Management.Automation.PSTokenType]::GroupStart -or + $tokens[$CommandIndex + 1].Content -eq '{')) { + return $CommandIndex + 1 + } + + # gets ScriptBlock from named parameter e.g. BeforeEach -ScriptBlock { } + if ($CommandIndex + 2 -lt $tokens.Count -and + ($tokens[$CommandIndex + 2].Type -eq [System.Management.Automation.PSTokenType]::GroupStart -or + $tokens[$CommandIndex + 2].Content -eq '{')) { + return $CommandIndex + 2 + } + + throw "The $commandName command must be followed by the script block as the first argument or named parameter value." +} + +& $SafeCommands['Add-Type'] -TypeDefinition @' + namespace Pester + { + using System; + using System.Management.Automation; + + public static class ClosingBraceFinder + { + public static int GetClosingBraceIndex(PSToken[] tokens, int startIndex) + { + int groupLevel = 1; + int len = tokens.Length; + + for (int i = startIndex + 1; i < len; i++) + { + PSTokenType type = tokens[i].Type; + if (type == PSTokenType.GroupStart) + { + groupLevel++; + } + else if (type == PSTokenType.GroupEnd) + { + groupLevel--; + + if (groupLevel <= 0) { return i; } + } + } + + return -1; + } + } + } +'@ + +function Get-GroupCloseTokenIndex { + param ( + [System.Management.Automation.PSToken[]] $Tokens, + [int] $GroupStartTokenIndex + ) + + $closeIndex = [Pester.ClosingBraceFinder]::GetClosingBraceIndex($Tokens, $GroupStartTokenIndex) + + if ($closeIndex -lt 0) { + throw 'No corresponding GroupEnd token was found.' + } + + return $closeIndex +} + +function Get-ScriptBlockFromTokens { + param ( + [System.Management.Automation.PSToken[]] $Tokens, + [int] $OpenBraceIndex, + [int] $CloseBraceIndex, + [string] $CodeText + ) + + $blockStart = $Tokens[$OpenBraceIndex + 1].Start + $blockLength = $Tokens[$CloseBraceIndex].Start - $blockStart + $setupOrTeardownCodeText = $codeText.Substring($blockStart, $blockLength) + + $scriptBlock = [scriptblock]::Create($setupOrTeardownCodeText) + Set-ScriptBlockHint -Hint "Unbound ScriptBlock from Get-ScriptBlockFromTokens" -ScriptBlock $scriptBlock + Set-ScriptBlockScope -ScriptBlock $scriptBlock -SessionState $pester.SessionState + + return $scriptBlock +} + +function Add-SetupOrTeardownScriptBlock { + param ( + [string] $CommandName, + [scriptblock] $ScriptBlock + ) + + $Pester.AddSetupOrTeardownBlock($ScriptBlock, $CommandName) +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUqIaObdWMQcKsTArM41YKB8d/ +# cLCggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMT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H6mFfR5zzvHhY0G6h6DnXqUyBtP4olOvjW8vRAJj6A/ZPnJ/j7d +# fnH/3zr+spLw7n+gr47O9DOLLZhNrfITZLK25SHF0yzE8WGvofdviBp4S54IruBL +# Z9/90vKq6FHooA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/TestDrive.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/TestDrive.ps1 new file mode 100644 index 000000000000..3aa3e73583a4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/TestDrive.ps1 @@ -0,0 +1,338 @@ +# +function New-TestDrive ([Switch]$PassThru, [string] $Path) { + if ($Path -notmatch '\S') { + $directory = New-RandomTempDirectory + } + else { + if (-not (& $SafeCommands['Test-Path'] -Path $Path)) { + $null = & $SafeCommands['New-Item'] -ItemType Container -Path $Path + } + + $directory = & $SafeCommands['Get-Item'] $Path + } + + $DriveName = "TestDrive" + + #setup the test drive + if ( -not (& $SafeCommands['Test-Path'] "${DriveName}:\") ) { + $null = & $SafeCommands['New-PSDrive'] -Name $DriveName -PSProvider FileSystem -Root $directory -Scope Global -Description "Pester test drive" + } + + #publish the global TestDrive variable used in few places within the module + if (-not (& $SafeCommands['Test-Path'] "Variable:Global:$DriveName")) { + & $SafeCommands['New-Variable'] -Name $DriveName -Scope Global -Value $directory + } + + if ( $PassThru ) { + & $SafeCommands['Get-PSDrive'] -Name $DriveName + } +} + + +function Clear-TestDrive ([String[]]$Exclude) { + $Path = (& $SafeCommands['Get-PSDrive'] -Name TestDrive).Root + if (& $SafeCommands['Test-Path'] -Path $Path ) { + + Remove-TestDriveSymbolicLinks -Path $Path + + #Get-ChildItem -Exclude did not seem to work with full paths + & $SafeCommands['Get-ChildItem'] -Recurse -Path $Path | + & $SafeCommands['Sort-Object'] -Descending -Property "FullName" | + & $SafeCommands['Where-Object'] { $Exclude -NotContains $_.FullName } | + & $SafeCommands['Remove-Item'] -Force -Recurse + + } +} + +function New-RandomTempDirectory { + do { + $tempPath = Get-TempDirectory + $Path = & $SafeCommands['Join-Path'] -Path $tempPath -ChildPath ([Guid]::NewGuid()) + } until (-not (& $SafeCommands['Test-Path'] -Path $Path )) + + & $SafeCommands['New-Item'] -ItemType Container -Path $Path +} + +function Get-TestDriveItem { + <# + .SYNOPSIS + The Get-TestDriveItem cmdlet gets the item in Pester test drive. + + .DESCRIPTION + The Get-TestDriveItem cmdlet gets the item in Pester test drive. It does not + get the contents of the item at the location unless you use a wildcard + character (*) to request all the contents of the item. + + The function Get-TestDriveItem is deprecated since Pester v. 4.0 + and will be deleted in the next major version of Pester. + + .PARAMETER Path + Specifies the path to an item. The path need to be relative to TestDrive:. + This cmdlet gets the item at the specified location. Wildcards are permitted. + This parameter is required, but the parameter name ("Path") is optional. + + .EXAMPLE + + Get-TestDriveItem MyTestFolder\MyTestFile.txt + + This command returns the file MyTestFile.txt located in the folder MyTestFolder + what is located under TestDrive. + + .LINK + https://pester.dev/docs/usage/testdrive + +#> + + #moved here from Pester.psm1 + param ([string]$Path) + + & $SafeCommands['Write-Warning'] -Message "The function Get-TestDriveItem is deprecated since Pester 4.0.0 and will be removed from Pester 5.0.0." + + Assert-DescribeInProgress -CommandName Get-TestDriveItem + & $SafeCommands['Get-Item'] $(& $SafeCommands['Join-Path'] $TestDrive $Path ) +} + +function Get-TestDriveChildItem { + $Path = (& $SafeCommands['Get-PSDrive'] -Name TestDrive).Root + if (& $SafeCommands['Test-Path'] -Path $Path ) { + & $SafeCommands['Get-ChildItem'] -Recurse -Path $Path + } +} + +function Remove-TestDriveSymbolicLinks ([String] $Path) { + + # remove symbolic links to work around problem with Remove-Item. + # see https://github.com/PowerShell/PowerShell/issues/621 + # https://github.com/pester/Pester/issues/1100 + + # powershell 5 and higher + # & $SafeCommands["Get-ChildItem"] -Recurse -Path $Path -Attributes "ReparsePoint" | + # % { $_.Delete() } + + # issue 621 was fixed before PowerShell 6.1 + # now there is an issue with calling the Delete method in recent (6.1) builds of PowerShell + if ( (GetPesterPSVersion) -ge 6) { + return + } + + # powershell 2-compatible + $reparsePoint = [System.IO.FileAttributes]::ReparsePoint + & $SafeCommands["Get-ChildItem"] -Recurse -Path $Path | + where-object { ($_.Attributes -band $reparsePoint) -eq $reparsePoint } | + foreach-object { $_.Delete() } +} + +function Remove-TestDrive { + + $DriveName = "TestDrive" + $Drive = & $SafeCommands['Get-PSDrive'] -Name $DriveName -ErrorAction $script:IgnoreErrorPreference + $Path = ($Drive).Root + + + if ($pwd -like "$DriveName*" ) { + #will staying in the test drive cause issues? + #TODO review this + & $SafeCommands['Write-Warning'] -Message "Your current path is set to ${pwd}:. You should leave ${DriveName}:\ before leaving Describe." + } + + if ( $Drive ) { + $Drive | & $SafeCommands['Remove-PSDrive'] -Force #This should fail explicitly as it impacts future pester runs + } + + if ($null -ne $Path) { + Remove-TestDriveSymbolicLinks -Path $Path + + if (& $SafeCommands['Test-Path'] -Path $Path) { + & $SafeCommands['Remove-Item'] -Path $Path -Force -Recurse + } + } + + if (& $SafeCommands['Get-Variable'] -Name $DriveName -Scope Global -ErrorAction $script:IgnoreErrorPreference) { + & $SafeCommands['Remove-Variable'] -Scope Global -Name $DriveName -Force + } +} + +function Setup { + <# + .SYNOPSIS + This command is included in the Pester Mocking framework for backwards compatibility. You do not need to call it directly. + #> + param( + [switch]$Dir, + [switch]$File, + $Path, + $Content = "", + [switch]$PassThru + ) + + Assert-DescribeInProgress -CommandName Setup + + $TestDriveName = & $SafeCommands['Get-PSDrive'] TestDrive | + & $SafeCommands['Select-Object'] -ExpandProperty Root + + if ($Dir) { + $item = & $SafeCommands['New-Item'] -Name $Path -Path "${TestDriveName}\" -Type Container -Force + } + if ($File) { + $item = $Content | & $SafeCommands['New-Item'] -Name $Path -Path "${TestDriveName}\" -Type File -Force + } + + if ($PassThru) { + return $item + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExC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jAwMjA3MTk1NDA4WjAjBgkqhkiG9w0BCQQx +# FgQUeiDmQMqXqjY+xD8lkR0ilNNr6uAwDQYJKoZIhvcNAQEBBQAEggEAjYjv/zhY +# ms3GX/kyCBOpZGiKht00ucHE978eFFd3EC4St2s/O/Qb3KW1J8GGkpkEB5TxE9z5 +# YzkenzKkdxjoT08eQnPGI5rXlpDpREl2CRTR7XySss2wPzvhLQK5KQFfpbwA7PgR +# T89VbJlBP2MRrkAWi0/5T1SOacNOu5ngD7aPzd+si9lyZSH7LwRgr/fEnZubjtd3 +# BSl7d2+AUG0xx4/YPVZhFtSDkl5PAQ4sV+uwo1Sn1weiNyOND6DSG5V5r05MyqZe +# yLGyMRgGMMQFB3lgYz26r4sSh0/t6Q50IU6SCzRoLphdtxtUJ+DRQyGZF0ChgbW1 +# 5JrURY67OwtGBA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/TestRegistry.ps1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/TestRegistry.ps1 new file mode 100644 index 000000000000..ef8a57769864 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Functions/TestRegistry.ps1 @@ -0,0 +1,293 @@ + function New-TestRegistry { + param( + [Switch] + $PassThru, + + [string] + $Path + ) + + if ($Path -notmatch '\S') { + $directory = New-RandomTempRegistry + } + else { + if (-not (& $SafeCommands['Test-Path'] -Path $Path)) { + # the pester registry root path HKCU:\Pester is created once + # and then stays in place, in TestDrive we use system Temp folder, + # but no such folder exists for registry so we create our own. + # removing the folder after test run would be possible but we potentially + # running into conflict with other instance of Pester that is running + # so keeping it in place is a small price to pay for being able to run + # parallel pester sessions easily. + # Also don't use -Force parameter here + # because that deletes the folder and creates a race condition see + # https://github.com/pester/Pester/issues/1181 + $null = & $SafeCommands['New-Item'] -Path $Path + } + + $directory = & $SafeCommands['Get-Item'] $Path + } + + $DriveName = "TestRegistry" + #setup the test drive + if ( -not (& $SafeCommands['Test-Path'] "${DriveName}:\") ) { + try { + $null = & $SafeCommands['New-PSDrive'] -Name $DriveName -PSProvider Registry -Root $directory -Scope Global -Description "Pester test registry" -ErrorAction Stop + } + catch { + if ($_.FullyQualifiedErrorId -like 'DriveAlreadyExists*') { + # it can happen that Test-Path reports false even though the drive + # exists. I don't know why but I see it in "Context Teardown fails" + # it would be possible to use Get-PsDrive directly for the test but it + # is about 10ms slower and we do it in every Describe and It so it would + # quickly add up + + # so if that happens just ignore the error, the goal of this function is to + # create the testdrive and the testdrive already exists, so all is good. + } + else { + Write-Error $_ -ErrorAction 'Stop' + } + } + } + + if ( $PassThru ) { + & $SafeCommands['Get-PSDrive'] -Name $DriveName + } +} + +function Get-TestRegistryPath () { + "Microsoft.PowerShell.Core\Registry::" + (& $SafeCommands['Get-PSDrive'] -Name TestRegistry -ErrorAction Stop).Root +} + +function Clear-TestRegistry { + param( + [String[]] + $Exclude + ) + + # if the setup fails before we mark test registry added + # we would be trying to teardown something that does not + # exist and fail in Get-TestRegistryPath + if (-not (& $SafeCommands['Test-Path'] "TestRegistry:\")) { + return + } + + $path = Get-TestRegistryPath + + if ($null -ne $path -and (& $SafeCommands['Test-Path'] -Path $Path)) { + #Get-ChildItem -Exclude did not seem to work with full paths + & $SafeCommands['Get-ChildItem'] -Recurse -Path $Path | + & $SafeCommands['Sort-Object'] -Descending -Property 'PSPath' | + & $SafeCommands['Where-Object'] { $Exclude -NotContains $_.PSPath } | + & $SafeCommands['Remove-Item'] -Force -Recurse + } +} + +function Get-TestRegistryChildItem { + $path = Get-TestRegistryPath + & $SafeCommands['Get-ChildItem'] -Recurse -Path $path +} + +function New-RandomTempRegistry { + do { + $tempPath = Get-TempRegistry + $Path = & $SafeCommands['Join-Path'] -Path $tempPath -ChildPath ([Guid]::NewGuid()) + } until (-not (& $SafeCommands['Test-Path'] -Path $Path )) + + try { + & $SafeCommands['New-Item'] -Path $Path + } + catch [System.IO.IOException] { + # when running in parallel this occasionally triggers + # IOException: No more data is available + # let's just retry the operation + & $SafeCommands['New-Item'] -Path $Path + } +} + +function Remove-TestRegistry { + $DriveName = "TestRegistry" + $Drive = & $SafeCommands['Get-PSDrive'] -Name $DriveName -ErrorAction $script:IgnoreErrorPreference + if ($null -eq $Drive) { + # the drive does not exist, someone must have removed it instead of us, + # most likely a test that tests pester itself, so we just hope that the + # one who removed this removed also the contents of it correctly + return + } + + $path = Get-TestRegistryPath + + if ($pwd -like "$DriveName*" ) { + #will staying in the test drive cause issues? + #TODO review this + & $SafeCommands['Write-Warning'] -Message "Your current path is set to ${pwd}:. You should leave ${DriveName}:\ before leaving Describe." + } + + if ( $Drive ) { + $Drive | & $SafeCommands['Remove-PSDrive'] -Force #This should fail explicitly as it impacts future pester runs + } + + if (& $SafeCommands['Test-Path'] -Path $path) { + & $SafeCommands['Remove-Item'] -Path $path -Force -Recurse + } + + if (& $SafeCommands['Get-Variable'] -Name $DriveName -Scope Global -ErrorAction $script:IgnoreErrorPreference) { + & $SafeCommands['Remove-Variable'] -Scope Global -Name $DriveName -Force + } +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUPo4pq2KIcx9Sw06Yd+5UK/YD +# QA2ggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFoXDTIxMDEw +# NTE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Hd1ck/komUORVjmw00 +# MNY7fqWbh4tKeA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/LICENSE b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/LICENSE new file mode 100644 index 000000000000..924d9f5acc8c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/LICENSE @@ -0,0 +1,13 @@ +Copyright 2011 Scott Muc and Manoj Mahalingam + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/PSGetModuleInfo.xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/PSGetModuleInfo.xml new file mode 100644 index 000000000000..087373b009af --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/PSGetModuleInfo.xml @@ -0,0 +1,204 @@ + + + + Microsoft.PowerShell.Commands.PSRepositoryItemInfo + System.Management.Automation.PSCustomObject + System.Object + + + Pester + 4.10.1 + Module + Pester provides a framework for running BDD style Tests to execute and validate PowerShell commands inside of PowerShell and offers a powerful set of Mocking Functions that allow tests to mimic and mock the functionality of any command inside of a piece of PowerShell code being tested. Pester tests can execute any command or script that is accessible to a pester test file. This can include functions, Cmdlets, Modules and scripts. Pester can be run in ad hoc style in a console or it can be integrated into the Build scripts of a Continuous Integration system. + Pester Team + + + System.Object[] + System.Array + System.Object + + + nohwnd + fflaten + + + Copyright (c) 2019 by Pester Team, licensed under Apache 2.0 License. +
2020-02-07T19:57:31-08:00
+ + + https://www.apache.org/licenses/LICENSE-2.0.html + https://github.com/Pester/Pester + https://raw.githubusercontent.com/pester/Pester/master/images/pester.PNG + + + + powershell + unit_testing + bdd + tdd + mocking + PSEdition_Core + PSEdition_Desktop + Windows + Linux + MacOS + PSModule + + + + + System.Collections.Hashtable + System.Object + + + + DscResource + + + + + + + Cmdlet + + + + Function + + + + Describe + Context + It + Should + Mock + Assert-MockCalled + Assert-VerifiableMock + Assert-VerifiableMocks + New-Fixture + Get-TestDriveItem + Invoke-Pester + Setup + In + InModuleScope + Invoke-Mock + BeforeEach + AfterEach + BeforeAll + AfterAll + Get-MockDynamicParameter + Set-DynamicParameterVariable + Set-TestInconclusive + Set-ItResult + SafeGetCommand + New-PesterOption + New-MockObject + Add-AssertionOperator + Get-ShouldOperator + Invoke-Gherkin + Find-GherkinStep + GherkinStep + BeforeEachFeature + AfterEachFeature + BeforeEachScenario + AfterEachScenario + + + + + Workflow + + + + RoleCapability + + + + Command + + + + Describe + Context + It + Should + Mock + Assert-MockCalled + Assert-VerifiableMock + Assert-VerifiableMocks + New-Fixture + Get-TestDriveItem + Invoke-Pester + Setup + In + InModuleScope + Invoke-Mock + BeforeEach + AfterEach + BeforeAll + AfterAll + Get-MockDynamicParameter + Set-DynamicParameterVariable + Set-TestInconclusive + Set-ItResult + SafeGetCommand + New-PesterOption + New-MockObject + Add-AssertionOperator + Get-ShouldOperator + Invoke-Gherkin + Find-GherkinStep + GherkinStep + BeforeEachFeature + AfterEachFeature + BeforeEachScenario + AfterEachScenario + + + + + + + https://github.com/pester/Pester/releases/tag/4.10.1 + + + + + https://www.powershellgallery.com/api/v2 + PSGallery + NuGet + + + System.Management.Automation.PSCustomObject + System.Object + + + Copyright (c) 2019 by Pester Team, licensed under Apache 2.0 License. + Pester provides a framework for running BDD style Tests to execute and validate PowerShell commands inside of PowerShell and offers a powerful set of Mocking Functions that allow tests to mimic and mock the functionality of any command inside of a piece of PowerShell code being tested. Pester tests can execute any command or script that is accessible to a pester test file. This can include functions, Cmdlets, Modules and scripts. Pester can be run in ad hoc style in a console or it can be integrated into the Build scripts of a Continuous Integration system. + False + https://github.com/pester/Pester/releases/tag/4.10.1 + False + False + 6946466 + 22783922 + 887295 + 2020-02-07 7:57:31 PM -08:00 + 2020-02-07 7:57:31 PM -08:00 + 2024-10-17 4:50:00 PM -07:00 + powershell unit_testing bdd tdd mocking PSEdition_Core PSEdition_Desktop Windows Linux MacOS PSModule PSFunction_Describe PSCommand_Describe PSFunction_Context PSCommand_Context PSFunction_It PSCommand_It PSFunction_Should PSCommand_Should PSFunction_Mock PSCommand_Mock PSFunction_Assert-MockCalled PSCommand_Assert-MockCalled PSFunction_Assert-VerifiableMock PSCommand_Assert-VerifiableMock PSFunction_Assert-VerifiableMocks PSCommand_Assert-VerifiableMocks PSFunction_New-Fixture PSCommand_New-Fixture PSFunction_Get-TestDriveItem PSCommand_Get-TestDriveItem PSFunction_Invoke-Pester PSCommand_Invoke-Pester PSFunction_Setup PSCommand_Setup PSFunction_In PSCommand_In PSFunction_InModuleScope PSCommand_InModuleScope PSFunction_Invoke-Mock PSCommand_Invoke-Mock PSFunction_BeforeEach PSCommand_BeforeEach PSFunction_AfterEach PSCommand_AfterEach PSFunction_BeforeAll PSCommand_BeforeAll PSFunction_AfterAll PSCommand_AfterAll PSFunction_Get-MockDynamicParameter PSCommand_Get-MockDynamicParameter PSFunction_Set-DynamicParameterVariable PSCommand_Set-DynamicParameterVariable PSFunction_Set-TestInconclusive PSCommand_Set-TestInconclusive PSFunction_Set-ItResult PSCommand_Set-ItResult PSFunction_SafeGetCommand PSCommand_SafeGetCommand PSFunction_New-PesterOption PSCommand_New-PesterOption PSFunction_New-MockObject PSCommand_New-MockObject PSFunction_Add-AssertionOperator PSCommand_Add-AssertionOperator PSFunction_Get-ShouldOperator PSCommand_Get-ShouldOperator PSFunction_Invoke-Gherkin PSCommand_Invoke-Gherkin PSFunction_Find-GherkinStep PSCommand_Find-GherkinStep PSFunction_GherkinStep PSCommand_GherkinStep PSFunction_BeforeEachFeature PSCommand_BeforeEachFeature PSFunction_AfterEachFeature PSCommand_AfterEachFeature PSFunction_BeforeEachScenario PSCommand_BeforeEachScenario PSFunction_AfterEachScenario PSCommand_AfterEachScenario PSIncludes_Function + False + 2024-10-17T16:50:00Z + 4.10.1 + Pester Team + false + Module + Pester.nuspec|junit_schema_4.xsd|LICENSE|nunit_schema_2.5.xsd|Pester.psd1|Pester.psm1|bin\pester.bat|Dependencies\Axiom\Axiom.psm1|Dependencies\Axiom\Verify-AssertionFailed.ps1|Dependencies\Axiom\Verify-Equal.ps1|Dependencies\Axiom\Verify-False.ps1|Dependencies\Axiom\Verify-NotNull.ps1|Dependencies\Axiom\Verify-NotSame.ps1|Dependencies\Axiom\Verify-Null.ps1|Dependencies\Axiom\Verify-Same.ps1|Dependencies\Axiom\Verify-Throw.ps1|Dependencies\Axiom\Verify-True.ps1|Dependencies\Axiom\Verify-Type.ps1|Dependencies\Format\Format.psm1|Dependencies\TypeClass\TypeClass.psm1|en-US\about_BeforeEach_AfterEach.help.txt|en-US\about_Mocking.help.txt|en-US\about_Pester.help.txt|en-US\about_Should.help.txt|en-US\about_TestDrive.help.txt|en-US\Gherkin.psd1|en-US\RSpec.psd1|Functions\Context.ps1|Functions\Coverage.ps1|Functions\Describe.ps1|Functions\Environment.ps1|Functions\Get-ShouldOperator.ps1|Functions\Gherkin.ps1|Functions\Gherkin.types.ps1xml|Functions\GherkinHook.ps1|Functions\GherkinStep.ps1|Functions\In.ps1|Functions\InModuleScope.ps1|Functions\It.ps1|Functions\Mock.ps1|Functions\New-Fixture.ps1|Functions\New-MockObject.ps1|Functions\Output.ps1|Functions\PesterState.ps1|Functions\Set-ItResult.ps1|Functions\SetupTeardown.ps1|Functions\TestDrive.ps1|Functions\TestRegistry.ps1|Functions\TestResults.ps1|Functions\Assertions\Be.ps1|Functions\Assertions\BeGreaterThan.ps1|Functions\Assertions\BeIn.ps1|Functions\Assertions\BeLessThan.ps1|Functions\Assertions\BeLike.ps1|Functions\Assertions\BeLikeExactly.ps1|Functions\Assertions\BeNullOrEmpty.ps1|Functions\Assertions\BeOfType.ps1|Functions\Assertions\BeTrueOrFalse.ps1|Functions\Assertions\Contain.ps1|Functions\Assertions\Exist.ps1|Functions\Assertions\FileContentMatch.ps1|Functions\Assertions\FileContentMatchExactly.ps1|Functions\Assertions\FileContentMatchMultiline.ps1|Functions\Assertions\HaveCount.ps1|Functions\Assertions\HaveParameter.ps1|Functions\Assertions\Match.ps1|Functions\Assertions\MatchExactly.ps1|Functions\Assertions\PesterThrow.ps1|Functions\Assertions\Set-TestInconclusive.ps1|Functions\Assertions\Should.ps1|lib\Gherkin\gherkin-languages.json|lib\Gherkin\core\Gherkin.dll|lib\Gherkin\legacy\Gherkin.dll|lib\Gherkin\legacy\Newtonsoft.Json.dll|Snippets\Context.snippets.ps1xml|Snippets\Describe.snippets.ps1xml|Snippets\It.snippets.ps1xml|Snippets\ShouldBe.snippets.ps1xml|Snippets\ShouldBeGreaterThan.snippets.ps1xml|Snippets\ShouldBeLessThan.snippets.ps1xml|Snippets\ShouldBeNullOrEmpty.snippets.ps1xml|Snippets\ShouldExist.snippets.ps1xml|Snippets\ShouldFileContentMatch.snippets.ps1xml|Snippets\ShouldMatch.snippets.ps1xml|Snippets\ShouldNotBe.snippets.ps1xml|Snippets\ShouldNotBeNullOrEmpty.snippets.ps1xml|Snippets\ShouldNotExist.snippets.ps1xml|Snippets\ShouldNotFileContentMatch.snippets.ps1xml|Snippets\ShouldNotMatch.snippets.ps1xml|Snippets\ShouldNotThrow.snippets.ps1xml|Snippets\ShouldThrow.snippets.ps1xml + a699dea5-2c73-4616-a270-1f7abb777e71 + 2.0 + Pester + + + C:\Git\azure-powershell-dns-resolver-policy\src\DnsResolver\DnsResolver.Autorest\generated\modules\Pester\4.10.1 +
+
+
diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Pester.psd1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Pester.psd1 new file mode 100644 index 000000000000..ca9d47f22120 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Pester.psd1 @@ -0,0 +1,298 @@ +@{ + + # Script module or binary module file associated with this manifest. + ModuleToProcess = 'Pester.psm1' + + # Version number of this module. + ModuleVersion = '4.10.1' + + # ID used to uniquely identify this module + GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' + + # Author of this module + Author = 'Pester Team' + + # Company or vendor of this module + CompanyName = 'Pester' + + # Copyright statement for this module + Copyright = 'Copyright (c) 2019 by Pester Team, licensed under Apache 2.0 License.' + + # Description of the functionality provided by this module + Description = 'Pester provides a framework for running BDD style Tests to execute and validate PowerShell commands inside of PowerShell and offers a powerful set of Mocking Functions that allow tests to mimic and mock the functionality of any command inside of a piece of PowerShell code being tested. Pester tests can execute any command or script that is accessible to a pester test file. This can include functions, Cmdlets, Modules and scripts. Pester can be run in ad hoc style in a console or it can be integrated into the Build scripts of a Continuous Integration system.' + + # Minimum version of the Windows PowerShell engine required by this module + PowerShellVersion = '2.0' + + TypesToProcess = @('.\Functions\Gherkin.types.ps1xml') + + # Functions to export from this module + FunctionsToExport = @( + 'Describe' + 'Context' + 'It' + 'Should' + 'Mock' + 'Assert-MockCalled' + 'Assert-VerifiableMock' + 'Assert-VerifiableMocks' + 'New-Fixture' + 'Get-TestDriveItem' + 'Invoke-Pester' + 'Setup' + 'In' + 'InModuleScope' + 'Invoke-Mock' + 'BeforeEach' + 'AfterEach' + 'BeforeAll' + 'AfterAll' + 'Get-MockDynamicParameter' + 'Set-DynamicParameterVariable' + 'Set-TestInconclusive' + 'Set-ItResult' + 'SafeGetCommand' + 'New-PesterOption' + 'New-MockObject' + 'Add-AssertionOperator' + 'Get-ShouldOperator' + + # Gherkin Support: + 'Invoke-Gherkin' + 'Find-GherkinStep' + 'GherkinStep' + 'BeforeEachFeature' + 'AfterEachFeature' + 'BeforeEachScenario' + 'AfterEachScenario' + ) + + # # Cmdlets to export from this module + CmdletsToExport = '' + + # Variables to export from this module + VariablesToExport = @( + 'Path' + 'TagFilter' + 'ExcludeTagFilter' + 'TestNameFilter' + 'TestResult' + 'CurrentContext' + 'CurrentDescribe' + 'CurrentTest' + 'SessionState' + 'CommandCoverage' + 'BeforeEach' + 'AfterEach' + 'Strict' + ) + + # # Aliases to export from this module + AliasesToExport = @( + 'Given' + 'When' + 'Then' + 'And' + 'But' + + 'Add-ShouldOperator' + ) + + + # List of all modules packaged with this module + # ModuleList = @() + + # List of all files packaged with this module + # FileList = @() + + PrivateData = @{ + # PSData is module packaging and gallery metadata embedded in PrivateData + # It's for rebuilding PowerShellGet (and PoshCode) NuGet-style packages + # We had to do this because it's the only place we're allowed to extend the manifest + # https://connect.microsoft.com/PowerShell/feedback/details/421837 + PSData = @{ + # The primary categorization of this module (from the TechNet Gallery tech tree). + Category = "Scripting Techniques" + + # Keyword tags to help users find this module via navigations and search. + Tags = @('powershell', 'unit_testing', 'bdd', 'tdd', 'mocking', 'PSEdition_Core', 'PSEdition_Desktop', 'Windows', 'Linux', 'MacOS') + + # The web address of an icon which can be used in galleries to represent this module + IconUri = 'https://raw.githubusercontent.com/pester/Pester/master/images/pester.PNG' + + # The web address of this module's project or support homepage. + ProjectUri = "https://github.com/Pester/Pester" + + # The web address of this module's license. Points to a page that's embeddable and linkable. + LicenseUri = "https://www.apache.org/licenses/LICENSE-2.0.html" + + # Release notes for this particular version of the module + ReleaseNotes = 'https://github.com/pester/Pester/releases/tag/4.10.1' + + # Prerelease string of this module + Prerelease = '' + } + } + + # HelpInfo URI of this module + # HelpInfoURI = '' + + # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. + # DefaultCommandPrefix = '' + +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4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XQlxqp/DLCYM+MzrmPRotSiSw22Oy2Y32H/vjISkfKT2eH +# kk4ZgZ46t+pVmb+OEJfPPeTg7J4xflsVwvzeWfD0o6tOOXlBGFRs6kWa4Fo2IGP+ +# wxUReOZaxLeL9nB9TAnBBo/08g8RY2qsekex+GEeGGqXPIrknm+69SElsVVpvSAJ +# HASaNNq7x+5MnhKLCA8mSlH2U9fMkczov1CKjaD/V74EvuCrmewraWgVLOxbpuEL +# k2jJ0H2Ye4UbJXQeSJ5B+J1kRgQ3XXkmwqxdDX4kdg9LP1lO/lIcpuYMDiLlPR5v +# m8f14qP+LaqUuA== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Pester.psm1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Pester.psm1 new file mode 100644 index 000000000000..4a7df32d07d1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Pester.psm1 @@ -0,0 +1,1700 @@ +if ($PSVersionTable.PSVersion.Major -ge 3) { + $script:IgnoreErrorPreference = 'Ignore' + $outNullModule = 'Microsoft.PowerShell.Core' + $outHostModule = 'Microsoft.PowerShell.Core' +} +else { + $script:IgnoreErrorPreference = 'SilentlyContinue' + $outNullModule = 'Microsoft.PowerShell.Utility' + $outHostModule = $null +} + +# Tried using $ExecutionState.InvokeCommand.GetCmdlet() here, but it does not trigger module auto-loading the way +# Get-Command does. Since this is at import time, before any mocks have been defined, that's probably acceptable. +# If someone monkeys with Get-Command before they import Pester, they may break something. + +# The -All parameter is required when calling Get-Command to ensure that PowerShell can find the command it is +# looking for. Otherwise, if you have modules loaded that define proxy cmdlets or that have cmdlets with the same +# name as the safe cmdlets, Get-Command will return null. +$safeCommandLookupParameters = @{ + CommandType = [System.Management.Automation.CommandTypes]::Cmdlet + ErrorAction = [System.Management.Automation.ActionPreference]::Stop +} + +if ($PSVersionTable.PSVersion.Major -gt 2) { + $safeCommandLookupParameters['All'] = $true +} + +$script:SafeCommands = @{ + 'Add-Member' = Get-Command -Name Add-Member -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Add-Type' = Get-Command -Name Add-Type -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Compare-Object' = Get-Command -Name Compare-Object -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Export-ModuleMember' = Get-Command -Name Export-ModuleMember -Module Microsoft.PowerShell.Core @safeCommandLookupParameters + 'ForEach-Object' = Get-Command -Name ForEach-Object -Module Microsoft.PowerShell.Core @safeCommandLookupParameters + 'Format-Table' = Get-Command -Name Format-Table -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Get-Alias' = Get-Command -Name Get-Alias -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Get-ChildItem' = Get-Command -Name Get-ChildItem -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Get-Command' = Get-Command -Name Get-Command -Module Microsoft.PowerShell.Core @safeCommandLookupParameters + 'Get-Content' = Get-Command -Name Get-Content -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Get-Date' = Get-Command -Name Get-Date -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Get-Item' = Get-Command -Name Get-Item -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Get-ItemProperty' = Get-Command -Name Get-ItemProperty -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Get-Location' = Get-Command -Name Get-Location -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Get-Member' = Get-Command -Name Get-Member -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Get-Module' = Get-Command -Name Get-Module -Module Microsoft.PowerShell.Core @safeCommandLookupParameters + 'Get-PSDrive' = Get-Command -Name Get-PSDrive -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Get-PSCallStack' = Get-Command -Name Get-PSCallStack -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Get-Unique' = Get-Command -Name Get-Unique -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Get-Variable' = Get-Command -Name Get-Variable -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Group-Object' = Get-Command -Name Group-Object -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Import-LocalizedData' = Get-Command -Name Import-LocalizedData -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Import-Module' = Get-Command -Name Import-Module -Module Microsoft.PowerShell.Core @safeCommandLookupParameters + 'Join-Path' = Get-Command -Name Join-Path -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Measure-Object' = Get-Command -Name Measure-Object -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'New-Item' = Get-Command -Name New-Item -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'New-ItemProperty' = Get-Command -Name New-ItemProperty -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'New-Module' = Get-Command -Name New-Module -Module Microsoft.PowerShell.Core @safeCommandLookupParameters + 'New-Object' = Get-Command -Name New-Object -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'New-PSDrive' = Get-Command -Name New-PSDrive -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'New-Variable' = Get-Command -Name New-Variable -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Out-Host' = Get-Command -Name Out-Host -Module $outHostModule @safeCommandLookupParameters + 'Out-File' = Get-Command -Name Out-File -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Out-Null' = Get-Command -Name Out-Null -Module $outNullModule @safeCommandLookupParameters + 'Out-String' = Get-Command -Name Out-String -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Pop-Location' = Get-Command -Name Pop-Location -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Push-Location' = Get-Command -Name Push-Location -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Remove-Item' = Get-Command -Name Remove-Item -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Remove-PSBreakpoint' = Get-Command -Name Remove-PSBreakpoint -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Remove-PSDrive' = Get-Command -Name Remove-PSDrive -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Remove-Variable' = Get-Command -Name Remove-Variable -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Resolve-Path' = Get-Command -Name Resolve-Path -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Select-Object' = Get-Command -Name Select-Object -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Set-Content' = Get-Command -Name Set-Content -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Set-Location' = Get-Command -Name Set-Location -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Set-PSBreakpoint' = Get-Command -Name Set-PSBreakpoint -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Set-StrictMode' = Get-Command -Name Set-StrictMode -Module Microsoft.PowerShell.Core @safeCommandLookupParameters + 'Set-Variable' = Get-Command -Name Set-Variable -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Sort-Object' = Get-Command -Name Sort-Object -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Split-Path' = Get-Command -Name Split-Path -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Start-Sleep' = Get-Command -Name Start-Sleep -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Test-Path' = Get-Command -Name Test-Path -Module Microsoft.PowerShell.Management @safeCommandLookupParameters + 'Where-Object' = Get-Command -Name Where-Object -Module Microsoft.PowerShell.Core @safeCommandLookupParameters + 'Write-Error' = Get-Command -Name Write-Error -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Write-Host' = Get-Command -Name Write-Host -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Write-Progress' = Get-Command -Name Write-Progress -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Write-Verbose' = Get-Command -Name Write-Verbose -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters + 'Write-Warning' = Get-Command -Name Write-Warning -Module Microsoft.PowerShell.Utility @safeCommandLookupParameters +} + +# Not all platforms have Get-WmiObject (Nano or PSCore 6.0.0-beta.x on Linux) +# Get-CimInstance is preferred, but we can use Get-WmiObject if it exists +# Moreover, it shouldn't really be fatal if neither of those cmdlets +# exist +if ( Get-Command -ea SilentlyContinue Get-CimInstance ) { + $script:SafeCommands['Get-CimInstance'] = Get-Command -Name Get-CimInstance -Module CimCmdlets @safeCommandLookupParameters +} +elseif ( Get-command -ea SilentlyContinue Get-WmiObject ) { + $script:SafeCommands['Get-WmiObject'] = Get-Command -Name Get-WmiObject -Module Microsoft.PowerShell.Management @safeCommandLookupParameters +} +elseif ( Get-Command -ea SilentlyContinue uname -Type Application ) { + $script:SafeCommands['uname'] = Get-Command -Name uname -Type Application | Select-Object -First 1 + if ( Get-Command -ea SilentlyContinue id -Type Application ) { + $script:SafeCommands['id'] = Get-Command -Name id -Type Application | Select-Object -First 1 + } +} +else { + Write-Warning "OS Information retrieval is not possible, reports will contain only partial system data" +} + +# little sanity check to make sure we don't blow up a system with a typo up there +# (not that I've EVER done that by, for example, mapping New-Item to Remove-Item...) + +foreach ($keyValuePair in $script:SafeCommands.GetEnumerator()) { + if ($keyValuePair.Key -ne $keyValuePair.Value.Name) { + throw "SafeCommands entry for $($keyValuePair.Key) does not hold a reference to the proper command." + } +} + +$script:AssertionOperators = & $SafeCommands['New-Object'] 'Collections.Generic.Dictionary[string,object]'([StringComparer]::InvariantCultureIgnoreCase) +$script:AssertionAliases = & $SafeCommands['New-Object'] 'Collections.Generic.Dictionary[string,object]'([StringComparer]::InvariantCultureIgnoreCase) +$script:AssertionDynamicParams = & $SafeCommands['New-Object'] System.Management.Automation.RuntimeDefinedParameterDictionary +$script:DisableScopeHints = $true + +function Count-Scopes { + param( + [Parameter(Mandatory = $true)] + $ScriptBlock) + + if ($script:DisableScopeHints) { + return 0 + } + + # automatic variable that can help us count scopes must be constant a must not be all scopes + # from the standard ones only Error seems to be that, let's ensure it is like that everywhere run + # other candidate variables can be found by this code + # Get-Variable | where { -not ($_.Options -band [Management.Automation.ScopedItemOptions]"AllScope") -and $_.Options -band $_.Options -band [Management.Automation.ScopedItemOptions]"Constant" } + + # get-variable steps on it's toes and recurses when we mock it in a test + # and we are also invoking this in user scope so we need to pass the reference + # to the safely captured function in the user scope + $safeGetVariable = $script:SafeCommands['Get-Variable'] + $sb = { + param($safeGetVariable) + $err = (& $safeGetVariable -Name Error).Options + if ($err -band "AllScope" -or (-not ($err -band "Constant"))) { + throw "Error variable is set to AllScope, or is not marked as constant cannot use it to count scopes on this platform." + } + + $scope = 0 + while ($null -eq (& $safeGetVariable -Name Error -Scope $scope -ErrorAction SilentlyContinue)) { + $scope++ + } + + $scope - 1 # because we are in a function + } + + $flags = [System.Reflection.BindingFlags]'Instance,NonPublic' + $property = [scriptblock].GetProperty('SessionStateInternal', $flags) + $ssi = $property.GetValue($ScriptBlock, $null) + $property.SetValue($sb, $ssi, $null) + + &$sb $safeGetVariable +} + +function Write-ScriptBlockInvocationHint { + param( + [Parameter(Mandatory = $true)] + [ScriptBlock] $ScriptBlock, + [Parameter(Mandatory = $true)] + [String] + $Hint + ) + + if ($script:DisableScopeHints) { + return + } + + $scope = Get-ScriptBlockHint $ScriptBlock + $count = Count-Scopes -ScriptBlock $ScriptBlock + + Write-Hint "Invoking scriptblock from location '$Hint' in state '$scope', $count scopes deep: + { + $ScriptBlock + }`n`n" +} + +function Write-Hint ($Hint) { + if ($script:DisableScopeHints) { + return + } + + Write-Host -ForegroundColor Cyan $Hint +} + +function Test-Hint { + param ( + [Parameter(Mandatory = $true)] + $InputObject + ) + + if ($script:DisableScopeHints) { + return $true + } + + $property = $InputObject | Get-Member -Name Hint -MemberType NoteProperty + if ($null -eq $property) { + return $false + } + + Test-NullOrWhiteSpace $property.Value +} + +function Set-Hint { + param( + [Parameter(Mandatory = $true)] + [String] $Hint, + [Parameter(Mandatory = $true)] + $InputObject, + [Switch] $Force + ) + + if ($script:DisableScopeHints) { + return + } + + if ($InputObject | Get-Member -Name Hint -MemberType NoteProperty) { + $hintIsNotSet = Test-NullOrWhiteSpace $InputObject.Hint + if ($Force -or $hintIsNotSet) { + $InputObject.Hint = $Hint + } + } + else { + # do not change this to be called without the pipeline, it will throw: Cannot evaluate parameter 'InputObject' because its argument is specified as a script block and there is no input. A script block cannot be evaluated without input. + $InputObject | Add-Member -Name Hint -Value $Hint -MemberType NoteProperty + } +} + +function Set-SessionStateHint { + param( + [Parameter(Mandatory = $true)] + [String] $Hint, + [Parameter(Mandatory = $true)] + [Management.Automation.SessionState] $SessionState, + [Switch] $PassThru + ) + + if ($script:DisableScopeHints) { + if ($PassThru) { + return $SessionState + } + return + } + + # in all places where we capture SessionState we mark its internal state with a hint + # the internal state does not change and we use it to invoke scriptblock in diferent + # states, setting the hint on SessionState is only secondary to make is easier to debug + $flags = [System.Reflection.BindingFlags]'Instance,NonPublic' + $internalSessionState = $SessionState.GetType().GetProperty('Internal', $flags).GetValue($SessionState, $null) + if ($null -eq $internalSessionState) { + throw "SessionState does not have any internal SessionState, this should never happen." + } + + $hashcode = $internalSessionState.GetHashCode() + # optionally sets the hint if there was none, so the hint from the + # function that first captured this session state is preserved + Set-Hint -Hint "$Hint ($hashcode))" -InputObject $internalSessionState + # the public session state should always depend on the internal state + Set-Hint -Hint $internalSessionState.Hint -InputObject $SessionState -Force + + if ($PassThru) { + $SessionState + } +} + +function Get-SessionStateHint { + param( + [Parameter(Mandatory = $true)] + [Management.Automation.SessionState] $SessionState + ) + + if ($script:DisableScopeHints) { + return + } + + # the hint is also attached to the session state object, but sessionstate objects are recreated while + # the internal state stays static so to see the hint on object that we receive via $PSCmdlet.SessionState we need + # to look at the InternalSessionState. the internal state should be never null so just looking there is enough + $flags = [System.Reflection.BindingFlags]'Instance,NonPublic' + $internalSessionState = $SessionState.GetType().GetProperty('Internal', $flags).GetValue($SessionState, $null) + if (Test-Hint $internalSessionState) { + $internalSessionState.Hint + } +} + +function Set-ScriptBlockHint { + param( + [Parameter(Mandatory = $true)] + [ScriptBlock] $ScriptBlock, + [string] $Hint + ) + + if ($script:DisableScopeHints) { + return + } + + $flags = [System.Reflection.BindingFlags]'Instance,NonPublic' + $internalSessionState = $ScriptBlock.GetType().GetProperty('SessionStateInternal', $flags).GetValue($ScriptBlock, $null) + if ($null -eq $internalSessionState) { + if (Test-Hint -InputObject $ScriptBlock) { + # the scriptblock already has a hint and there is not internal state + # so the hint on the scriptblock is enough + # if there was an internal state we would try to copy the hint from it + # onto the scriptblock to keep them in sync + return + } + + if ($null -eq $Hint) { + throw "Cannot set ScriptBlock hint because it is unbound ScriptBlock (with null internal state) and no -Hint was provided." + } + + # adds hint on the ScriptBlock + # the internal session state is null so we must attach the hint directly + # on the scriptblock + Set-Hint -Hint "$Hint (Unbound)" -InputObject $ScriptBlock -Force + } + else { + if (Test-Hint -InputObject $internalSessionState) { + # there already is hint on the internal state, we take it and sync + # it with the hint on the object + Set-Hint -Hint $internalSessionState.Hint -InputObject $ScriptBlock -Force + return + } + + if ($null -eq $Hint) { + throw "Cannot set ScriptBlock hint because it's internal state does not have any Hint and no external -Hint was provided." + } + + $hashcode = $internalSessionState.GetHashCode() + $Hint = "$Hint - ($hashCode)" + Set-Hint -Hint $Hint -InputObject $internalSessionState -Force + Set-Hint -Hint $Hint -InputObject $ScriptBlock -Force + } +} + +function Get-ScriptBlockHint { + param( + [Parameter(Mandatory = $true)] + [ScriptBlock] $ScriptBlock + ) + + if ($script:DisableScopeHints) { + return + } + + # the hint is also attached to the scriptblock object, but not all scriptblocks are tagged by us, + # the internal state stays static so to see the hint on object that we receive we need to look at the InternalSessionState + $flags = [System.Reflection.BindingFlags]'Instance,NonPublic' + $internalSessionState = $ScriptBlock.GetType().GetProperty('SessionStateInternal', $flags).GetValue($ScriptBlock, $null) + + + if ($null -ne $internalSessionState -and (Test-Hint $internalSessionState)) { + return $internalSessionState.Hint + } + + if (Test-Hint $ScriptBlock) { + return $ScriptBlock.Hint + } + + "Unknown unbound ScriptBlock" +} + + +function Test-NullOrWhiteSpace { + param ([string]$String) + + $String -match "^\s*$" +} + +function Assert-ValidAssertionName { + param([string]$Name) + if ($Name -notmatch '^\S+$') { + throw "Assertion name '$name' is invalid, assertion name must be a single word." + } +} + +function Assert-ValidAssertionAlias { + param([string[]]$Alias) + if ($Alias -notmatch '^\S+$') { + throw "Assertion alias '$string' is invalid, assertion alias must be a single word." + } +} + +function Add-AssertionOperator { + <# +.SYNOPSIS + Register an Assertion Operator with Pester +.DESCRIPTION + This function allows you to create custom Should assertions. +.EXAMPLE + ```ps + function BeAwesome($ActualValue, [switch] $Negate) + { + + [bool] $succeeded = $ActualValue -eq 'Awesome' + if ($Negate) { $succeeded = -not $succeeded } + + if (-not $succeeded) + { + if ($Negate) + { + $failureMessage = "{$ActualValue} is Awesome" + } + else + { + $failureMessage = "{$ActualValue} is not Awesome" + } + } + + return New-Object psobject -Property @{ + Succeeded = $succeeded + FailureMessage = $failureMessage + } + } + + Add-AssertionOperator -Name BeAwesome ` + -Test $function:BeAwesome ` + -Alias 'BA' + + PS C:\> "bad" | should -BeAwesome + {bad} is not Awesome + ``` +.PARAMETER Name + The name of the assertion. This will become a Named Parameter of Should. +.PARAMETER Test + The test function. The function must return a PSObject with a [Bool]succeeded and a [string]failureMessage property. +.PARAMETER Alias + A list of aliases for the Named Parameter. +.PARAMETER SupportsArrayInput + Does the test function support the passing an array of values to test. +.PARAMETER InternalName + If -Name is different from the actual function name, record the actual function name here. + Used by Get-ShouldOperator to pull function help. +#> + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [string] $Name, + + [Parameter(Mandatory = $true)] + [scriptblock] $Test, + + [ValidateNotNullOrEmpty()] + [AllowEmptyCollection()] + [string[]] $Alias = @(), + + [Parameter()] + [string] $InternalName, + + [switch] $SupportsArrayInput + ) + + $entry = New-Object psobject -Property @{ + Test = $Test + SupportsArrayInput = [bool]$SupportsArrayInput + Name = $Name + Alias = $Alias + InternalName = If ($InternalName) { + $InternalName + } + Else { + $Name + } + } + if (Test-AssertionOperatorIsDuplicate -Operator $entry) { + # This is an exact duplicate of an existing assertion operator. + return + } + + $namesToCheck = @( + $Name + $Alias + ) + + Assert-AssertionOperatorNameIsUnique -Name $namesToCheck + + $script:AssertionOperators[$Name] = $entry + + foreach ($string in $Alias | Where { -not (Test-NullOrWhiteSpace $_) }) { + Assert-ValidAssertionAlias -Alias $string + $script:AssertionAliases[$string] = $Name + } + + Add-AssertionDynamicParameterSet -AssertionEntry $entry +} + +function Test-AssertionOperatorIsDuplicate { + param ( + [psobject] $Operator + ) + + $existing = $script:AssertionOperators[$Operator.Name] + if (-not $existing) { + return $false + } + + return $Operator.SupportsArrayInput -eq $existing.SupportsArrayInput -and + $Operator.Test.ToString() -eq $existing.Test.ToString() -and + -not (Compare-Object $Operator.Alias $existing.Alias) +} +function Assert-AssertionOperatorNameIsUnique { + param ( + [string[]] $Name + ) + + foreach ($string in $name | Where { -not (Test-NullOrWhiteSpace $_) }) { + Assert-ValidAssertionName -Name $string + + if ($script:AssertionOperators.ContainsKey($string)) { + throw "Assertion operator name '$string' has been added multiple times." + } + + if ($script:AssertionAliases.ContainsKey($string)) { + throw "Assertion operator name '$string' already exists as an alias for operator '$($script:AssertionAliases[$key])'" + } + } +} + +function Add-AssertionDynamicParameterSet { + param ( + [object] $AssertionEntry + ) + + ${function:__AssertionTest__} = $AssertionEntry.Test + $commandInfo = Get-Command __AssertionTest__ -CommandType Function + $metadata = [System.Management.Automation.CommandMetadata]$commandInfo + + $attribute = New-Object Management.Automation.ParameterAttribute + $attribute.ParameterSetName = $AssertionEntry.Name + $attribute.Mandatory = $true + + $attributeCollection = New-Object Collections.ObjectModel.Collection[Attribute] + $null = $attributeCollection.Add($attribute) + if (-not (Test-NullOrWhiteSpace $AssertionEntry.Alias)) { + Assert-ValidAssertionAlias -Alias $AssertionEntry.Alias + $attribute = New-Object System.Management.Automation.AliasAttribute($AssertionEntry.Alias) + $attributeCollection.Add($attribute) + } + + $dynamic = New-Object System.Management.Automation.RuntimeDefinedParameter($AssertionEntry.Name, [switch], $attributeCollection) + $null = $script:AssertionDynamicParams.Add($AssertionEntry.Name, $dynamic) + + if ($script:AssertionDynamicParams.ContainsKey('Not')) { + $dynamic = $script:AssertionDynamicParams['Not'] + } + else { + $dynamic = New-Object System.Management.Automation.RuntimeDefinedParameter('Not', [switch], (New-Object System.Collections.ObjectModel.Collection[Attribute])) + $null = $script:AssertionDynamicParams.Add('Not', $dynamic) + } + + $attribute = New-Object System.Management.Automation.ParameterAttribute + $attribute.ParameterSetName = $AssertionEntry.Name + $attribute.Mandatory = $false + $null = $dynamic.Attributes.Add($attribute) + + $i = 1 + foreach ($parameter in $metadata.Parameters.Values) { + # common parameters that are already defined + if ($parameter.Name -eq 'ActualValue' -or $parameter.Name -eq 'Not' -or $parameter.Name -eq 'Negate') { + continue + } + + + if ($script:AssertionOperators.ContainsKey($parameter.Name) -or $script:AssertionAliases.ContainsKey($parameter.Name)) { + throw "Test block for assertion operator $($AssertionEntry.Name) contains a parameter named $($parameter.Name), which conflicts with another assertion operator's name or alias." + } + + foreach ($alias in $parameter.Aliases) { + if ($script:AssertionOperators.ContainsKey($alias) -or $script:AssertionAliases.ContainsKey($alias)) { + throw "Test block for assertion operator $($AssertionEntry.Name) contains a parameter named $($parameter.Name) with alias $alias, which conflicts with another assertion operator's name or alias." + } + } + + if ($script:AssertionDynamicParams.ContainsKey($parameter.Name)) { + $dynamic = $script:AssertionDynamicParams[$parameter.Name] + } + else { + # We deliberately use a type of [object] here to avoid conflicts between different assertion operators that may use the same parameter name. + # We also don't bother to try to copy transformation / validation attributes here for the same reason. + # Because we'll be passing these parameters on to the actual test function later, any errors will come out at that time. + + # few years later: using [object] causes problems with switch params (in my case -PassThru), because then we cannot use them without defining a value + # so for switches we must prefer the conflicts over type + if ([switch] -eq $parameter.ParameterType) { + $type = [switch] + } + else { + $type = [object] + } + + $dynamic = New-Object System.Management.Automation.RuntimeDefinedParameter($parameter.Name, $type, (New-Object System.Collections.ObjectModel.Collection[Attribute])) + $null = $script:AssertionDynamicParams.Add($parameter.Name, $dynamic) + } + + $attribute = New-Object Management.Automation.ParameterAttribute + $attribute.ParameterSetName = $AssertionEntry.Name + $attribute.Mandatory = $false + $attribute.Position = ($i++) + + $null = $dynamic.Attributes.Add($attribute) + } +} + +function Get-AssertionOperatorEntry([string] $Name) { + return $script:AssertionOperators[$Name] +} + +function Get-AssertionDynamicParams { + return $script:AssertionDynamicParams +} + +$Script:PesterRoot = & $SafeCommands['Split-Path'] -Path $MyInvocation.MyCommand.Path +"$PesterRoot\Functions\*.ps1", "$PesterRoot\Functions\Assertions\*.ps1" | + & $script:SafeCommands['Resolve-Path'] | + & $script:SafeCommands['Where-Object'] { -not ($_.ProviderPath.ToLower().Contains(".tests.")) } | + & $script:SafeCommands['ForEach-Object'] { . $_.ProviderPath } + +if (& $script:SafeCommands['Test-Path'] "$PesterRoot\Dependencies") { + # sub-modules + & $script:SafeCommands['Get-ChildItem'] "$PesterRoot\Dependencies\*\*.psm1" | + & $script:SafeCommands['ForEach-Object'] { & $script:SafeCommands['Import-Module'] $_.FullName -Force -DisableNameChecking } +} + +Add-Type -TypeDefinition @" +using System; + +namespace Pester +{ + [Flags] + public enum OutputTypes + { + None = 0, + Default = 1, + Passed = 2, + Failed = 4, + Pending = 8, + Skipped = 16, + Inconclusive = 32, + Describe = 64, + Context = 128, + Summary = 256, + Header = 512, + All = Default | Passed | Failed | Pending | Skipped | Inconclusive | Describe | Context | Summary | Header, + Fails = Default | Failed | Pending | Skipped | Inconclusive | Describe | Context | Summary | Header + } +} +"@ + +function Has-Flag { + param + ( + [Parameter(Mandatory = $true)] + [Pester.OutputTypes] + $Setting, + [Parameter(Mandatory = $true, ValueFromPipeline = $true)] + [Pester.OutputTypes] + $Value + ) + + 0 -ne ($Setting -band $Value) +} + +function Invoke-Pester { + <# + .SYNOPSIS + Runs Pester tests + + .DESCRIPTION + The Invoke-Pester function runs Pester tests, including *.Tests.ps1 files and + Pester tests in PowerShell scripts. + + You can run scripts that include Pester tests just as you would any other + Windows PowerShell script, including typing the full path at the command line + and running in a script editing program. Typically, you use Invoke-Pester to run + all Pester tests in a directory, or to use its many helpful parameters, + including parameters that generate custom objects or XML files. + + By default, Invoke-Pester runs all *.Tests.ps1 files in the current directory + and all subdirectories recursively. You can use its parameters to select tests + by file name, test name, or tag. + + To run Pester tests in scripts that take parameter values, use the Script + parameter with a hash table value. + + Also, by default, Pester tests write test results to the console host, much like + Write-Host does, but you can use the Show parameter set to None to suppress the host + messages, use the PassThru parameter to generate a custom object + (PSCustomObject) that contains the test results, use the OutputXml and + OutputFormat parameters to write the test results to an XML file, and use the + EnableExit parameter to return an exit code that contains the number of failed + tests. + + You can also use the Strict parameter to fail all pending and skipped tests. + This feature is ideal for build systems and other processes that require success + on every test. + + To help with test design, Invoke-Pester includes a CodeCoverage parameter that + lists commands, classes, functions, and lines of code that did not run during test + execution and returns the code that ran as a percentage of all tested code. + + Invoke-Pester, and the Pester module that exports it, are products of an + open-source project hosted on GitHub. To view, comment, or contribute to the + repository, see https://github.com/Pester. + + .PARAMETER Script + Specifies the test files that Pester runs. You can also use the Script parameter + to pass parameter names and values to a script that contains Pester tests. The + value of the Script parameter can be a string, a hash table, or a collection + of hash tables and strings. Wildcard characters are supported. + + The Script parameter is optional. If you omit it, Invoke-Pester runs all + *.Tests.ps1 files in the local directory and its subdirectories recursively. + + To run tests in other files, such as .ps1 files, enter the path and file name of + the file. (The file name is required. Name patterns that end in "*.ps1" run only + *.Tests.ps1 files.) + + To run a Pester test with parameter names and/or values, use a hash table as the + value of the script parameter. The keys in the hash table are: + + -- Path [string] (required): Specifies a test to run. The value is a path\file + name or name pattern. Wildcards are permitted. All hash tables in a Script + parameter value must have a Path key. + + -- Parameters [hashtable]: Runs the script with the specified parameters. The + value is a nested hash table with parameter name and value pairs, such as + @{UserName = 'User01'; Id = '28'}. + + -- Arguments [array]: An array or comma-separated list of parameter values + without names, such as 'User01', 28. Use this key to pass values to positional + parameters. + + + .PARAMETER TestName + Runs only tests in Describe blocks that have the specified name or name pattern. + Wildcard characters are supported. + + If you specify multiple TestName values, Invoke-Pester runs tests that have any + of the values in the Describe name (it ORs the TestName values). + + .PARAMETER EnableExit + Will cause Invoke-Pester to exit with a exit code equal to the number of failed + tests once all tests have been run. Use this to "fail" a build when any tests fail. + + .PARAMETER OutputFile + The path where Invoke-Pester will save formatted test results log file. + + The path must include the location and name of the folder and file name with + the xml extension. + + If this path is not provided, no log will be generated. + + .PARAMETER OutputFormat + The format of output. Two formats of output are supported: NUnitXml and + JUnitXml. + + .PARAMETER Tag + Runs only tests in Describe blocks with the specified Tag parameter values. + Wildcard characters are supported. Tag values that include spaces or whitespace + will be split into multiple tags on the whitespace. + + When you specify multiple Tag values, Invoke-Pester runs tests that have any + of the listed tags (it ORs the tags). However, when you specify TestName + and Tag values, Invoke-Pester runs only describe blocks that have one of the + specified TestName values and one of the specified Tag values. + + If you use both Tag and ExcludeTag, ExcludeTag takes precedence. + + .PARAMETER ExcludeTag + Omits tests in Describe blocks with the specified Tag parameter values. Wildcard + characters are supported. Tag values that include spaces or whitespace + will be split into multiple tags on the whitespace. + + When you specify multiple ExcludeTag values, Invoke-Pester omits tests that have + any of the listed tags (it ORs the tags). However, when you specify TestName + and ExcludeTag values, Invoke-Pester omits only describe blocks that have one + of the specified TestName values and one of the specified Tag values. + + If you use both Tag and ExcludeTag, ExcludeTag takes precedence + + .PARAMETER PassThru + Returns a custom object (PSCustomObject) that contains the test results. + + By default, Invoke-Pester writes to the host program, not to the output stream (stdout). + If you try to save the result in a variable, the variable is empty unless you + use the PassThru parameter. + + To suppress the host output, use the Show parameter set to None. + + .PARAMETER CodeCoverage + Adds a code coverage report to the Pester tests. Takes strings or hash table values. + + A code coverage report lists the lines of code that did and did not run during + a Pester test. This report does not tell whether code was tested; only whether + the code ran during the test. + + By default, the code coverage report is written to the host program + (like Write-Host). When you use the PassThru parameter, the custom object + that Invoke-Pester returns has an additional CodeCoverage property that contains + a custom object with detailed results of the code coverage test, including lines + hit, lines missed, and helpful statistics. + + However, NUnitXml and JUnitXml output (OutputXML, OutputFormat) do not include + any code coverage information, because it's not supported by the schema. + + Enter the path to the files of code under test (not the test file). + Wildcard characters are supported. If you omit the path, the default is local + directory, not the directory specified by the Script parameter. Pester test files + are by default excluded from code coverage when a directory is provided. When you + provide a test file directly using string, code coverage will be measured. To include + tests in code coverage of a directory, use the dictionary syntax and provide + IncludeTests = $true option, as shown below. + + To run a code coverage test only on selected classes, functions or lines in a script, + enter a hash table value with the following keys: + + -- Path (P)(mandatory) : Enter one path to the files. Wildcard characters + are supported, but only one string is permitted. + -- IncludeTests : Includes code coverage for Pester test files (*.tests.ps1). + Default is false. + + One of the following: Class/Function or StartLine/EndLine + + -- Class (C) : Enter the class name. Wildcard characters are + supported, but only one string is permitted. Default is *. + -- Function (F) : Enter the function name. Wildcard characters are + supported, but only one string is permitted. Default is *. + + -or- + + -- StartLine (S): Performs code coverage analysis beginning with the specified + line. Default is line 1. + -- EndLine (E): Performs code coverage analysis ending with the specified line. + Default is the last line of the script. + + .PARAMETER CodeCoverageOutputFile + The path where Invoke-Pester will save formatted code coverage results file. + + The path must include the location and name of the folder and file name with + a required extension (usually the xml). + + If this path is not provided, no file will be generated. + + .PARAMETER CodeCoverageOutputFileEncoding + The encoding in which Invoke-Pester will save the code coverage results file + as. Defaults to 'utf8'. + + Supported encodings in the respective PowerShell version are the same as + those supported by the cmdlet Out-File in that PowerShell version. + + .PARAMETER CodeCoverageOutputFileFormat + The name of a code coverage report file format. + + Default value is: JaCoCo. + + Currently supported formats are: + - JaCoCo - this XML file format is compatible with the VSTS/TFS + + .PARAMETER Strict + Makes Pending and Skipped tests to Failed tests. Useful for continuous + integration where you need to make sure all tests passed. + + .PARAMETER Quiet + The parameter Quiet is deprecated since Pester v. 4.0 and will be deleted + in the next major version of Pester. Please use the parameter Show + with value 'None' instead. + + The parameter Quiet suppresses the output that Pester writes to the host program, + including the result summary and CodeCoverage output. + + This parameter does not affect the PassThru custom object or the XML output that + is written when you use the Output parameters. + + .PARAMETER Show + Customizes the output Pester writes to the screen. Available options are None, Default, + Passed, Failed, Pending, Skipped, Inconclusive, Describe, Context, Summary, Header, All, Fails. + + The options can be combined to define presets. + Common use cases are: + + None - to write no output to the screen. + All - to write all available information (this is default option). + Fails - to write everything except Passed (but including Describes etc.). + + A common setting is also Failed, Summary, to write only failed tests and test summary. + + This parameter does not affect the PassThru custom object or the XML output that + is written when you use the Output parameters. + + .PARAMETER PesterOption + Sets advanced options for the test execution. Enter a PesterOption object, + such as one that you create by using the New-PesterOption cmdlet, or a hash table + in which the keys are option names and the values are option values. + For more information on the options available, see the help for New-PesterOption. + + .Example + Invoke-Pester + + This command runs all *.Tests.ps1 files in the current directory and its subdirectories. + + .Example + Invoke-Pester -Script .\Util* + + This commands runs all *.Tests.ps1 files in subdirectories with names that begin + with 'Util' and their subdirectories. + + .Example + Invoke-Pester -Script D:\MyModule, @{ Path = '.\Tests\Utility\ModuleUnit.Tests.ps1'; Parameters = @{ Name = 'User01' }; Arguments = srvNano16 } + + This command runs all *.Tests.ps1 files in D:\MyModule and its subdirectories. + It also runs the tests in the ModuleUnit.Tests.ps1 file using the following + parameters: .\Tests\Utility\ModuleUnit.Tests.ps1 srvNano16 -Name User01 + + .Example + Invoke-Pester -Script @{Script = $scriptText} + + This command runs all tests passed as string in $scriptText variable with no aditional parameters and arguments. This notation can be combined with + Invoke-Pester -Script D:\MyModule, @{ Path = '.\Tests\Utility\ModuleUnit.Tests.ps1'; Parameters = @{ Name = 'User01' }; Arguments = srvNano16 } + if needed. This command can be used when tests and scripts are stored not on the FileSystem, but somewhere else, and it is impossible to provide a path to it. + + .Example + Invoke-Pester -TestName "Add Numbers" + + This command runs only the tests in the Describe block named "Add Numbers". + + .EXAMPLE + ```ps + $results = Invoke-Pester -Script D:\MyModule -PassThru -Show None + $failed = $results.TestResult | where Result -eq 'Failed' + + $failed.Name + cannot find help for parameter: Force : in Compress-Archive + help for Force parameter in Compress-Archive has wrong Mandatory value + help for Compress-Archive has wrong parameter type for Force + help for Update parameter in Compress-Archive has wrong Mandatory value + help for DestinationPath parameter in Expand-Archive has wrong Mandatory value + + $failed[0] + Describe : Test help for Compress-Archive in Microsoft.PowerShell.Archive (1.0.0.0) + Context : Test parameter help for Compress-Archive + Name : cannot find help for parameter: Force : in Compress-Archive + Result : Failed + Passed : False + Time : 00:00:00.0193083 + FailureMessage : Expected: value to not be empty + StackTrace : at line: 279 in C:\GitHub\PesterTdd\Module.Help.Tests.ps1 + 279: $parameterHelp.Description.Text | Should Not BeNullOrEmpty + ErrorRecord : Expected: value to not be empty + ParameterizedSuiteName : + Parameters : {} + ``` + + This examples uses the PassThru parameter to return a custom object with the + Pester test results. By default, Invoke-Pester writes to the host program, but not + to the output stream. It also uses the Show parameter set to None to suppress the host output. + + The first command runs Invoke-Pester with the PassThru and Show parameters and + saves the PassThru output in the $results variable. + + The second command gets only failing results and saves them in the $failed variable. + + The third command gets the names of the failing results. The result name is the + name of the It block that contains the test. + + The fourth command uses an array index to get the first failing result. The + property values describe the test, the expected result, the actual result, and + useful values, including a stack trace. + + .Example + Invoke-Pester -EnableExit -OutputFile ".\artifacts\TestResults.xml" -OutputFormat NUnitXml + + This command runs all tests in the current directory and its subdirectories. It + writes the results to the TestResults.xml file using the NUnitXml schema. The + test returns an exit code equal to the number of test failures. + + .EXAMPLE + Invoke-Pester -CodeCoverage 'ScriptUnderTest.ps1' + + Runs all *.Tests.ps1 scripts in the current directory, and generates a coverage + report for all commands in the "ScriptUnderTest.ps1" file. + + .EXAMPLE + Invoke-Pester -CodeCoverage @{ Path = 'ScriptUnderTest.ps1'; Function = 'FunctionUnderTest' } + + Runs all *.Tests.ps1 scripts in the current directory, and generates a coverage + report for all commands in the "FunctionUnderTest" function in the "ScriptUnderTest.ps1" file. + + .EXAMPLE + Invoke-Pester -CodeCoverage 'ScriptUnderTest.ps1' -CodeCoverageOutputFile '.\artifacts\TestOutput.xml' + + Runs all *.Tests.ps1 scripts in the current directory, and generates a coverage + report for all commands in the "ScriptUnderTest.ps1" file, and writes the coverage report to TestOutput.xml + file using the JaCoCo XML Report DTD. + + .EXAMPLE + Invoke-Pester -CodeCoverage @{ Path = 'ScriptUnderTest.ps1'; StartLine = 10; EndLine = 20 } + + Runs all *.Tests.ps1 scripts in the current directory, and generates a coverage + report for all commands on lines 10 through 20 in the "ScriptUnderTest.ps1" file. + + .EXAMPLE + Invoke-Pester -Script C:\Tests -Tag UnitTest, Newest -ExcludeTag Bug + + This command runs *.Tests.ps1 files in C:\Tests and its subdirectories. In those + files, it runs only tests that have UnitTest or Newest tags, unless the test + also has a Bug tag. + + .LINK + https://pester.dev/docs/commands/Describe + + .LINK + https://pester.dev/docs/commands/New-PesterOption + #> + [CmdletBinding(DefaultParameterSetName = 'Default')] + param( + [Parameter(Position = 0, Mandatory = 0)] + [Alias('Path', 'relative_path')] + [object[]]$Script = '.', + + [Parameter(Position = 1, Mandatory = 0)] + [Alias("Name")] + [string[]]$TestName, + + [Parameter(Position = 2, Mandatory = 0)] + [switch]$EnableExit, + + [Parameter(Position = 4, Mandatory = 0)] + [Alias('Tags')] + [string[]]$Tag, + + [string[]]$ExcludeTag, + + [switch]$PassThru, + + [object[]] $CodeCoverage = @(), + + [string] $CodeCoverageOutputFile, + + [Parameter()] + [ValidateSet('ascii', 'bigendianunicode', 'oem', 'unicode', 'utf7', 'utf8', 'utf8BOM', 'utf8NoBOM', 'utf32')] + [string] $CodeCoverageOutputFileEncoding = 'utf8', + + [ValidateSet('JaCoCo')] + [String]$CodeCoverageOutputFileFormat = "JaCoCo", + + [Switch]$Strict, + + [Parameter(Mandatory = $true, ParameterSetName = 'NewOutputSet')] + [string] $OutputFile, + + [Parameter(ParameterSetName = 'NewOutputSet')] + [ValidateSet('NUnitXml', 'JUnitXml')] + [string] $OutputFormat = 'NUnitXml', + + [Switch]$Quiet, + + [object]$PesterOption, + + [Pester.OutputTypes]$Show = 'All' + ) + begin { + # Ensure when running Pester that we're using RSpec strings + & $script:SafeCommands['Import-LocalizedData'] -BindingVariable Script:ReportStrings -BaseDirectory $PesterRoot -FileName RSpec.psd1 -ErrorAction SilentlyContinue + + # Fallback to en-US culture strings + If ([String]::IsNullOrEmpty($ReportStrings)) { + + & $script:SafeCommands['Import-LocalizedData'] -BaseDirectory $PesterRoot -BindingVariable Script:ReportStrings -UICulture 'en-US' -FileName RSpec.psd1 -ErrorAction Stop + + } + } + + end { + if ($PSBoundParameters.ContainsKey('Quiet')) { + & $script:SafeCommands['Write-Warning'] 'The -Quiet parameter has been deprecated; please use the new -Show parameter instead. To get no output use -Show None.' + & $script:SafeCommands['Start-Sleep'] -Seconds 2 + + if (!$PSBoundParameters.ContainsKey('Show')) { + $Show = [Pester.OutputTypes]::None + } + } + + $script:mockTable = @{ } + Remove-MockFunctionsAndAliases + $sessionState = Set-SessionStateHint -PassThru -Hint "Caller - Captured in Invoke-Pester" -SessionState $PSCmdlet.SessionState + $pester = New-PesterState -TestNameFilter $TestName -TagFilter $Tag -ExcludeTagFilter $ExcludeTag -SessionState $SessionState -Strict:$Strict -Show:$Show -PesterOption $PesterOption -RunningViaInvokePester + + try { + Enter-CoverageAnalysis -CodeCoverage $CodeCoverage -PesterState $pester + Write-PesterStart $pester $Script + + $invokeTestScript = { + param ( + [Parameter(Position = 0)] + [string] $Path, + [string] $Script, + $Set_ScriptBlockHint, + [object[]] $Arguments = @(), + [System.Collections.IDictionary] $Parameters = @{ } + ) + + if (-not [string]::IsNullOrEmpty($Path)) { + & $Path @Parameters @Arguments + } + elseif (-not [string]::IsNullOrEmpty($Script)) { + $scriptBlock = [scriptblock]::Create($Script) + & $Set_ScriptBlockHint -Hint "Unbound ScriptBlock from Invoke-Pester" -ScriptBlock $scriptBlock + Invoke-Command -ScriptBlock ($scriptBlock) + } + } + + Set-ScriptBlockScope -ScriptBlock $invokeTestScript -SessionState $sessionState + $testScripts = @(ResolveTestScripts $Script) + + + foreach ($testScript in $testScripts) { + #Get test description for better output + if (-not [string]::IsNullOrEmpty($testScript.Path)) { + $testDescription = $testScript.Path + } + elseif (-not [string]::IsNullOrEmpty($testScript.Script)) { + $testDescription = $testScript.Script + } + + try { + $pester.EnterTestGroup($testDescription, 'Script') + Write-Describe $testDescription -CommandUsed Script + do { + $testOutput = & $invokeTestScript -Path $testScript.Path -Script $testScript.Script -Arguments $testScript.Arguments -Parameters $testScript.Parameters -Set_ScriptBlockHint $script:SafeCommands['Set-ScriptBlockHint'] + } until ($true) + } + catch { + $firstStackTraceLine = $null + if (($_ | & $SafeCommands['Get-Member'] -Name ScriptStackTrace) -and $null -ne $_.ScriptStackTrace) { + $firstStackTraceLine = $_.ScriptStackTrace -split '\r?\n' | & $script:SafeCommands['Select-Object'] -First 1 + } + $pester.AddTestResult("Error occurred in test script '$($testDescription)'", "Failed", $null, $_.Exception.Message, $firstStackTraceLine, $null, $null, $_) + + # This is a hack to ensure that XML output is valid for now. The test-suite names come from the Describe attribute of the TestResult + # objects, and a blank name is invalid NUnit XML. This will go away when we promote test scripts to have their own test-suite nodes, + # planned for v4.0 + $pester.TestResult[-1].Describe = "Error in $($testDescription)" + + $pester.TestResult[-1] | Write-PesterResult + } + finally { + Exit-MockScope + $pester.LeaveTestGroup($testDescription, 'Script') + } + } + + $pester | Write-PesterReport + $coverageReport = Get-CoverageReport -PesterState $pester + Write-CoverageReport -CoverageReport $coverageReport + if ((& $script:SafeCommands['Get-Variable'] -Name CodeCoverageOutputFile -ValueOnly -ErrorAction $script:IgnoreErrorPreference) ` + -and (& $script:SafeCommands['Get-Variable'] -Name CodeCoverageOutputFileFormat -ValueOnly -ErrorAction $script:IgnoreErrorPreference) -eq 'JaCoCo') { + $jaCoCoReport = Get-JaCoCoReportXml -PesterState $pester -CoverageReport $coverageReport + $jaCoCoReport | & $SafeCommands['Out-File'] $CodeCoverageOutputFile -Encoding $CodeCoverageOutputFileEncoding + } + Exit-CoverageAnalysis -PesterState $pester + } + finally { + Exit-MockScope + } + + Set-PesterStatistics + + if (& $script:SafeCommands['Get-Variable'] -Name OutputFile -ValueOnly -ErrorAction $script:IgnoreErrorPreference) { + Export-PesterResults -PesterState $pester -Path $OutputFile -Format $OutputFormat + } + + if ($PassThru) { + # Remove all runtime properties like current* and Scope + $properties = @( + "TagFilter", "ExcludeTagFilter", "TestNameFilter", "ScriptBlockFilter", "TotalCount", "PassedCount", "FailedCount", "SkippedCount", "PendingCount", 'InconclusiveCount', "Time", "TestResult" + + if ($CodeCoverage) { + @{ Name = 'CodeCoverage'; Expression = { $coverageReport } } + } + ) + + $pester | & $script:SafeCommands['Select-Object'] -Property $properties + } + + if ($EnableExit) { + Exit-WithCode -FailedCount $pester.FailedCount + } + } +} + +function New-PesterOption { + <# + .SYNOPSIS + Creates an object that contains advanced options for Invoke-Pester + .DESCRIPTION + By using New-PesterOption you can set options what allow easier integration with external applications or + modifies output generated by Invoke-Pester. + The result of New-PesterOption need to be assigned to the parameter 'PesterOption' of the Invoke-Pester function. + .PARAMETER IncludeVSCodeMarker + When this switch is set, an extra line of output will be written to the console for test failures, making it easier + for VSCode's parser to provide highlighting / tooltips on the line where the error occurred. + .PARAMETER TestSuiteName + When generating NUnit XML output, this controls the name assigned to the root "test-suite" element. Defaults to "Pester". + .PARAMETER ScriptBlockFilter + Filters scriptblock based on the path and line number. This is intended for integration with external tools so we don't rely on names (strings) that can have expandable variables in them. + .PARAMETER Experimental + Enables experimental features of Pester to be enabled. + .PARAMETER ShowScopeHints + EXPERIMENTAL: Enables debugging output for debugging tranisition among scopes. (Experimental flag needs to be used to enable this.) + + .INPUTS + None + You cannot pipe input to this command. + .OUTPUTS + System.Management.Automation.PSObject + .EXAMPLE + ```ps + $Options = New-PesterOption -TestSuiteName "Tests - Set A" + + Invoke-Pester -PesterOption $Options -Outputfile ".\Results-Set-A.xml" -OutputFormat NUnitXML + ``` + + The result of commands will be execution of tests and saving results of them in a NUnitMXL file where the root "test-suite" + will be named "Tests - Set A". + + .LINK + https://pester.dev/docs/commands/Invoke-Pester + #> + + [CmdletBinding()] + param ( + [switch] $IncludeVSCodeMarker, + + [ValidateNotNullOrEmpty()] + [string] $TestSuiteName = 'Pester', + + [switch] $Experimental, + + [switch] $ShowScopeHints, + + [hashtable[]] $ScriptBlockFilter + ) + + # in PowerShell 2 Add-Member can attach properties only to + # PSObjects, I could work around this by capturing all instances + # in checking them during runtime, but that would bring a lot of + # object management problems - so let's just not allow this in PowerShell 2 + if ($Experimental -and $ShowScopeHints) { + if ($PSVersionTable.PSVersion.Major -lt 3) { + throw "Scope hints cannot be used on PowerShell 2 due to limitations of Add-Member." + } + + $script:DisableScopeHints = $false + } + else { + $script:DisableScopeHints = $true + } + + return & $script:SafeCommands['New-Object'] psobject -Property @{ + IncludeVSCodeMarker = [bool] $IncludeVSCodeMarker + TestSuiteName = $TestSuiteName + ShowScopeHints = $ShowScopeHints + Experimental = $Experimental + ScriptBlockFilter = $ScriptBlockFilter + } +} + +function ResolveTestScripts { + param ([object[]] $Path) + + $resolvedScriptInfo = @( + foreach ($object in $Path) { + if ($object -is [System.Collections.IDictionary]) { + $unresolvedPath = Get-DictionaryValueFromFirstKeyFound -Dictionary $object -Key 'Path', 'p' + $script = Get-DictionaryValueFromFirstKeyFound -Dictionary $object -Key 'Script' + $arguments = @(Get-DictionaryValueFromFirstKeyFound -Dictionary $object -Key 'Arguments', 'args', 'a') + $parameters = Get-DictionaryValueFromFirstKeyFound -Dictionary $object -Key 'Parameters', 'params' + + if ($null -eq $Parameters) { + $Parameters = @{ } + } + + if ($unresolvedPath -isnot [string] -or $unresolvedPath -notmatch '\S' -and ($script -isnot [string] -or $script -notmatch '\S')) { + throw 'When passing hashtables to the -Path parameter, the Path key is mandatory, and must contain a single string.' + } + + if ($null -ne $parameters -and $parameters -isnot [System.Collections.IDictionary]) { + throw 'When passing hashtables to the -Path parameter, the Parameters key (if present) must be assigned an IDictionary object.' + } + } + else { + $unresolvedPath = [string] $object + $script = [string] $object + $arguments = @() + $parameters = @{ } + } + + if (-not [string]::IsNullOrEmpty($unresolvedPath)) { + if ($unresolvedPath -notmatch '[\*\?\[\]]' -and + (& $script:SafeCommands['Test-Path'] -LiteralPath $unresolvedPath -PathType Leaf) -and + (& $script:SafeCommands['Get-Item'] -LiteralPath $unresolvedPath) -is [System.IO.FileInfo]) { + $extension = [System.IO.Path]::GetExtension($unresolvedPath) + if ($extension -ne '.ps1') { + & $script:SafeCommands['Write-Error'] "Script path '$unresolvedPath' is not a ps1 file." + } + else { + & $script:SafeCommands['New-Object'] psobject -Property @{ + Path = $unresolvedPath + Script = $null + Arguments = $arguments + Parameters = $parameters + } + } + } + else { + # World's longest pipeline? + + & $script:SafeCommands['Resolve-Path'] -Path $unresolvedPath | + & $script:SafeCommands['Where-Object'] { $_.Provider.Name -eq 'FileSystem' } | + & $script:SafeCommands['Select-Object'] -ExpandProperty ProviderPath | + & $script:SafeCommands['Get-ChildItem'] -Include *.Tests.ps1 -Recurse | + & $script:SafeCommands['Where-Object'] { -not $_.PSIsContainer } | + & $script:SafeCommands['Select-Object'] -ExpandProperty FullName -Unique | + & $script:SafeCommands['ForEach-Object'] { + & $script:SafeCommands['New-Object'] psobject -Property @{ + Path = $_ + Script = $null + Arguments = $arguments + Parameters = $parameters + } + } + } + } + elseif (-not [string]::IsNullOrEmpty($script)) { + & $script:SafeCommands['New-Object'] psobject -Property @{ + Path = $null + Script = $script + Arguments = $arguments + Parameters = $parameters + } + } + } + ) + + # Here, we have the option of trying to weed out duplicate file paths that also contain identical + # Parameters / Arguments. However, we already make sure that each object in $Path didn't produce + # any duplicate file paths, and if the caller happens to pass in a set of parameters that produce + # dupes, maybe that's not our problem. For now, just return what we found. + + $resolvedScriptInfo +} + +function Get-DictionaryValueFromFirstKeyFound { + param ([System.Collections.IDictionary] $Dictionary, [object[]] $Key) + + foreach ($keyToTry in $Key) { + if ($Dictionary.Contains($keyToTry)) { + return $Dictionary[$keyToTry] + } + } +} + +function Set-ScriptBlockScope { + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [scriptblock] + $ScriptBlock, + + [Parameter(Mandatory = $true, ParameterSetName = 'FromSessionState')] + [System.Management.Automation.SessionState] + $SessionState, + + [Parameter(Mandatory = $true, ParameterSetName = 'FromSessionStateInternal')] + [AllowNull()] + $SessionStateInternal + ) + + $flags = [System.Reflection.BindingFlags]'Instance,NonPublic' + + if ($PSCmdlet.ParameterSetName -eq 'FromSessionState') { + $SessionStateInternal = $SessionState.GetType().GetProperty('Internal', $flags).GetValue($SessionState, $null) + } + + $property = [scriptblock].GetProperty('SessionStateInternal', $flags) + $scriptBlockSessionState = $property.GetValue($ScriptBlock, $null) + + if (-not $script:DisableScopeHints) { + # hint can be attached on the internal state (preferable) when the state is there. + # if we are given unbound scriptblock with null internal state then we hope that + # the source cmdlet set the hint directly on the ScriptBlock, + # otherwise the origin is unknown and the cmdlet that allowed this scriptblock in + # should be found and add hint + + $hint = $scriptBlockSessionState.Hint + if ($null -eq $hint) { + if ($null -ne $ScriptBlock.Hint) { + $hint = $ScriptBlock.Hint + } + else { + $hint = 'Unknown unbound ScriptBlock' + } + } + Write-Hint "Setting ScriptBlock state from source state '$hint' to '$($SessionStateInternal.Hint)'" + } + + $property.SetValue($ScriptBlock, $SessionStateInternal, $null) + + if (-not $script:DisableScopeHints) { + Set-ScriptBlockHint -ScriptBlock $ScriptBlock + } +} + +function Get-ScriptBlockScope { + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [scriptblock] + $ScriptBlock + ) + + + $flags = [System.Reflection.BindingFlags]'Instance,NonPublic' + $sessionStateInternal = [scriptblock].GetProperty('SessionStateInternal', $flags).GetValue($ScriptBlock, $null) + if (-not $script:DisableScopeHints) { + Write-Hint "Getting scope from ScriptBlock '$($sessionStateInternal.Hint)'" + } + $sessionStateInternal +} + +function SafeGetCommand { + <# + .SYNOPSIS + This command is used by Pester's Mocking framework. You do not need to call it directly. + #> + + return $script:SafeCommands['Get-Command'] +} + +function Set-PesterStatistics($Node) { + if ($null -eq $Node) { + $Node = $pester.TestActions + } + + foreach ($action in $Node.Actions) { + if ($action.Type -eq 'TestGroup') { + Set-PesterStatistics -Node $action + + $Node.TotalCount += $action.TotalCount + $Node.PassedCount += $action.PassedCount + $Node.FailedCount += $action.FailedCount + $Node.SkippedCount += $action.SkippedCount + $Node.PendingCount += $action.PendingCount + $Node.InconclusiveCount += $action.InconclusiveCount + } + elseif ($action.Type -eq 'TestCase') { + $node.TotalCount++ + + switch ($action.Result) { + Passed { + $Node.PassedCount++; break; + } + Failed { + $Node.FailedCount++; break; + } + Skipped { + $Node.SkippedCount++; break; + } + Pending { + $Node.PendingCount++; break; + } + Inconclusive { + $Node.InconclusiveCount++; break; + } + } + } + } +} + +function Contain-AnyStringLike ($Filter, $Collection) { + foreach ($item in $Collection) { + foreach ($value in $Filter) { + if ($item -like $value) { + return $true + } + } + } + return $false +} + +$snippetsDirectoryPath = "$PSScriptRoot\Snippets" +if ((& $script:SafeCommands['Test-Path'] -Path Variable:\psise) -and + ($null -ne $psISE) -and + ($PSVersionTable.PSVersion.Major -ge 3) -and + (& $script:SafeCommands['Test-Path'] $snippetsDirectoryPath)) { + Import-IseSnippet -Path $snippetsDirectoryPath +} + +function Assert-VerifiableMocks { + <# + .SYNOPSIS + The function is for backward compatibility only. Please update your code and use 'Assert-VerifiableMock' instead. + + .DESCRIPTION + The function was reintroduced in the version 4.0.8 of Pester to avoid loading older version of Pester when Assert-VerifiableMocks is called. + + The function will be removed finally in the next major version of Pester. + + .LINK + https://pester.dev/docs/migrations/v3-to-v4 + + .LINK + https://github.com/pester/Pester/issues/880 + + #> + + [CmdletBinding()] + param() + + Throw "This command has been renamed to 'Assert-VerifiableMock' (without the 's' at the end), please update your code. For more information see: https://pester.dev/docs/migrations/v3-to-v4" + +} + +$script:SafeCommands['Set-ScriptBlockHint'] = & $script:SafeCommands['Get-Command'] -Name Set-ScriptBlockHint -ErrorAction Stop + +Set-SessionStateHint -Hint Pester -SessionState $ExecutionContext.SessionState +# in the future rename the function to Add-ShouldOperator +Set-Alias -Name Add-ShouldOperator -Value Add-AssertionOperator +$script:ConflictingParameterNames = Initialize-ConflictingParameterNames + +& $script:SafeCommands['Export-ModuleMember'] Describe, Context, It, In, Mock, Assert-VerifiableMock, Assert-VerifiableMocks, Assert-MockCalled, Set-TestInconclusive, Set-ItResult +& $script:SafeCommands['Export-ModuleMember'] New-Fixture, Get-TestDriveItem, Should, Invoke-Pester, Setup, InModuleScope, Invoke-Mock +& $script:SafeCommands['Export-ModuleMember'] BeforeEach, AfterEach, BeforeAll, AfterAll +& $script:SafeCommands['Export-ModuleMember'] Get-MockDynamicParameter, Set-DynamicParameterVariable +& $script:SafeCommands['Export-ModuleMember'] SafeGetCommand, New-PesterOption +& $script:SafeCommands['Export-ModuleMember'] Invoke-Gherkin, Find-GherkinStep, BeforeEachFeature, BeforeEachScenario, AfterEachFeature, AfterEachScenario, GherkinStep -Alias Given, When, Then, And, But +& $script:SafeCommands['Export-ModuleMember'] New-MockObject, Add-AssertionOperator, Get-ShouldOperator -Alias Add-ShouldOperator + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUPAob5dF8YUg7zFGpAK4g/nDC +# 2nKggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW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bA3W/qYTSl3s+/cZEA72mllrkWW7FgfN5acuYhDY +# +n0vmZoc7N2TRw== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/Context.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/Context.snippets.ps1xml new file mode 100644 index 000000000000..f314b234792f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/Context.snippets.ps1xml @@ -0,0 +1,178 @@ + + + +
+ Context + Add empty Pester Context block + ctx + ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/Describe.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/Describe.snippets.ps1xml new file mode 100644 index 000000000000..c07a1bdbc4c7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/Describe.snippets.ps1xml @@ -0,0 +1,178 @@ + + + +
+ Describe + Add empty Pester Describe block + dsc + ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/It.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/It.snippets.ps1xml new file mode 100644 index 000000000000..94f9d7e96b20 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/It.snippets.ps1xml @@ -0,0 +1,178 @@ + + + +
+ It + Add empty Pester It block + it + nohwnd + PowerShell + + Expansion + +
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBe.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBe.snippets.ps1xml new file mode 100644 index 000000000000..7898174512bb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBe.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Be + Add Pester Should Be assertion + sb + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBeGreaterThan.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBeGreaterThan.snippets.ps1xml new file mode 100644 index 000000000000..11d593f0fc38 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBeGreaterThan.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Be Greater Than + Add Pester Should BeGreaterThan assertion + sbgt + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBeLessThan.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBeLessThan.snippets.ps1xml new file mode 100644 index 000000000000..269ee3a8ef03 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBeLessThan.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Be Less Than + Add Pester Should BeLessThan assertion + sblt + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBeNullOrEmpty.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBeNullOrEmpty.snippets.ps1xml new file mode 100644 index 000000000000..d28765610956 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldBeNullOrEmpty.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Be NullOrEmpty + Add Pester Should BeNullOrEmpty assertion + sbn + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldExist.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldExist.snippets.ps1xml new file mode 100644 index 000000000000..0ec3a72be455 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldExist.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Exist + Add Pester Should Exist assertion + se + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldFileContentMatch.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldFileContentMatch.snippets.ps1xml new file mode 100644 index 000000000000..e9b881e31106 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldFileContentMatch.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Contain + Add Pester Should FileContentMatch assertion + sc + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldMatch.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldMatch.snippets.ps1xml new file mode 100644 index 000000000000..e0042cf0d0fc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldMatch.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Match + Add Pester Should Match assertion + sm + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotBe.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotBe.snippets.ps1xml new file mode 100644 index 000000000000..f0477b4e72fd --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotBe.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Not Be + Add Pester Should Be assertion + snb + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotBeNullOrEmpty.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotBeNullOrEmpty.snippets.ps1xml new file mode 100644 index 000000000000..a3f782872c5c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotBeNullOrEmpty.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Not BeNullOrEmpty + Add Pester Should Not BeNullOrEmpty assertion + snbn + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotExist.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotExist.snippets.ps1xml new file mode 100644 index 000000000000..921cc1690e0f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotExist.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Not Exist + Add Pester Should Not Exist assertion + sne + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotFileContentMatch.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotFileContentMatch.snippets.ps1xml new file mode 100644 index 000000000000..a0c3e2b31487 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotFileContentMatch.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Not Contain + Add Pester Should Not Contain assertion + snc + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotMatch.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotMatch.snippets.ps1xml new file mode 100644 index 000000000000..f33e132d3f71 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotMatch.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Not Match + Add Pester Should Not Match assertion + snm + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotThrow.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotThrow.snippets.ps1xml new file mode 100644 index 000000000000..f6666a24a8bb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldNotThrow.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Not Throw + Add Pester Should Not Throw assertion + snt + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldThrow.snippets.ps1xml b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldThrow.snippets.ps1xml new file mode 100644 index 000000000000..ac88e77205c9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/Snippets/ShouldThrow.snippets.ps1xml @@ -0,0 +1,177 @@ + + + +
+ Should Throw + Add Pester Should Throw assertion + st + Pipeline,ScriptBlock,Editor,Console + nohwnd + + Expansion + +
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/Gherkin.psd1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/Gherkin.psd1 new file mode 100644 index 000000000000..a771a80ac735 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/Gherkin.psd1 @@ -0,0 +1,185 @@ +@{ + HeaderMessage = 'Pester v{0}' + StartMessage = "Testing all features in '{0}'" + FilterMessage = " for scenarios matching '{0}'" + TagMessage = " with tags: '{0}'" + MessageOfs = "', '" + + CoverageTitle = "Code coverage report:" + CoverageMessage = "Covered {2:P2} of {3:N0} analyzed {0} in {4:N0} {1}." + MissedSingular = 'Missed command:' + MissedPlural = 'Missed commands:' + CommandSingular = 'Command' + CommandPlural = 'Commands' + FileSingular = 'File' + FilePlural = 'Files' + + Describe = "Feature: {0}" + Context = "Scenario: {0}" + Margin = " " + Timing = "Testing completed in {0}" + + # If this is set to an empty string, the count won't be printed + ContextsPassed = "Scenarios Passed: {0} " + ContextsFailed = "Failed: {0}" + TestsPassed = "Steps Passed: {0} " + TestsFailed = "Failed: {0} " + TestsSkipped = 'Skipped: {0} ' + TestsPending = 'Pending: {0} ' + TestsInconclusive = 'Inconclusive: {0} ' +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUIOrUH1XOuP/n9zVwIAmQ5HDN +# PNiggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD +# VQQLExB3d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFz +# c3VyZWQgSUQgQ29kZSBTaWduaW5nIENBMB4XDTIwMDEzMTAwMDAwMFo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+WG +# rSWGxlmu5pAi9A== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/RSpec.psd1 b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/RSpec.psd1 new file mode 100644 index 000000000000..ab9fc54d58d7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/RSpec.psd1 @@ -0,0 +1,187 @@ +@{ + HeaderMessage = 'Pester v{0}' + StartMessage = "Executing all tests in '{0}'" + FilterMessage = ' matching test name {0}' + TagMessage = ' with Tags {0}' + MessageOfs = "', '" + + CoverageTitle = 'Code coverage report:' + CoverageMessage = 'Covered {2:P2} of {3:N0} analyzed {0} in {4:N0} {1}.' + MissedSingular = 'Missed command:' + MissedPlural = 'Missed commands:' + CommandSingular = 'Command' + CommandPlural = 'Commands' + FileSingular = 'File' + FilePlural = 'Files' + + Describe = 'Describing {0}' + Script = 'Executing script {0}' + Context = 'Context {0}' + Margin = ' ' + Timing = 'Tests completed in {0}' + + # If this is set to an empty string, the count won't be printed + ContextsPassed = '' + ContextsFailed = '' + + TestsPassed = 'Tests Passed: {0}, ' + TestsFailed = 'Failed: {0}, ' + TestsSkipped = 'Skipped: {0}, ' + TestsPending = 'Pending: {0}, ' + TestsInconclusive = 'Inconclusive: {0} ' +} + +# SIG # Begin signature block +# MIIcVgYJKoZIhvcNAQcCoIIcRzCCHEMCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB +# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR +# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUunvUKhGWb1QMOlJ6KDc+xrIR +# dqyggheFMIIFDjCCA/agAwIBAgIQCIQ1OU/QbU6rESO7M78utDANBgkqhkiG9w0B +# AQsFADByMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRk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VrGDWFPsr9a73ofdPknUhGq7mN +# Qu+71GMYa2dePQRHmhbrfWbT4dzw061JMT66c4Jg7U3qfNpXHaRsHlyDIFNrCFWa +# VRyYZ882R9AkGxKSndC713vOcAIa+3zxeaN8PMbvgn/O6a9e8fNbJV2rMlQtKLWA +# GkdulZ+iwF6Ung== +# SIG # End signature block diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_BeforeEach_AfterEach.help.txt b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_BeforeEach_AfterEach.help.txt new file mode 100644 index 000000000000..f31ba1b80013 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_BeforeEach_AfterEach.help.txt @@ -0,0 +1,88 @@ +TOPIC + about_BeforeEach_AfterEach + +SHORT DESCRIPTION + Describes the BeforeEach and AfterEach commands, which run a set of commands that you specify + before or after every It block. + +LONG DESCRIPTION + The the BeforeEach and AfterEach commands in the Pester module let you define setup and teardown + tasks that are performed at the beginning and end of every It block. This can eliminate duplication of code + in test scripts, ensure that each test is performed on a pristine state regardless of their + order, and perform any necessary clean-up tasks after each test. + + BeforeEach and AfterEach blocks may be defined inside of any Describe or Context. If they + are present in both a Context and its parent Describe, BeforeEach blocks in the Describe scope + are executed first, followed by BeforeEach blocks in the Context scope. AfterEach blocks are + the reverse of this, with the Context AfterEach blocks executing before Describe. + + The script blocks assigned to BeforeEach and AfterEach are dot-sourced in the Context or Describe + which contains the current It statement, so you don't have to worry about the scope of variable + assignments. Any variables that are assigned values within a BeforeEach block can be used inside + the body of the It block. + + BeforeAll and AfterAll are used the same way as BeforeEach and AfterEach, except that they are + executed at the beginning and end of their containing Describe or Context block. This is + essentially syntactic sugar for the following arrangement of code: + + Describe 'Something' { + try + { + + + + } + finally + { + + } + } + + + SYNTAX AND PLACEMENT + Unlike most of the commands in a Pester script, BeforeEach, AfterEach, BeforeAll and AfterAll blocks + apply to the entire Describe or Context scope in which they are defined, regardless of the order of + commands inside the Describe or Context. In other words, even if an It block appears before BeforeEach + or AfterEach in the tests file, the BeforeEach and AfterEach will still be executed. Likewise, BeforeAll + code will be executed at the beginning of a Context or Describe block regardless of where it is found, + and AfterAll code will execute at the end of the Context or Describe. + + + EXAMPLES + Describe 'Testing BeforeEach and AfterEach' { + $afterEachVariable = 'AfterEach has not been executed yet' + + It 'Demonstrates that BeforeEach may be defined after the It command' { + $beforeEachVariable | Should -Be 'Set in a describe-scoped BeforeEach' + $afterEachVariable | Should -Be 'AfterEach has not been executed yet' + $beforeAllVariable | Should -Be 'BeforeAll has been executed' + } + + It 'Demonstrates that AfterEach has executed after the end of the first test' { + $afterEachVariable | Should -Be 'AfterEach has been executed' + } + + BeforeEach { + $beforeEachVariable = 'Set in a describe-scoped BeforeEach' + } + + AfterEach { + $afterEachVariable = 'AfterEach has been executed' + } + + BeforeAll { + $beforeAllVariable = 'BeforeAll has been executed' + } + } + +SEE ALSO + about_Pester + about_Should + about_Mocking + about_TestDrive + about_about_Try_Catch_Finally + Describe + Context + Should + It + Invoke-Pester diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_Mocking.help.txt b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_Mocking.help.txt new file mode 100644 index 000000000000..d10aa65a1cbc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_Mocking.help.txt @@ -0,0 +1,207 @@ +TOPIC + about_Mocking + +SHORT DESCRIPTION + Pester provides a set of Mocking functions making it easy to fake dependencies + and also to verify behavior. Using these mocking functions can allow you to + "shim" a data layer or mock other complex functions that already have their + own tests. + +LONG DESCRIPTION + With the set of Mocking functions that Pester exposes, one can: + + - Mock the behavior of ANY PowerShell command. + - Verify that specific commands were (or were not) called. + - Verify the number of times a command was called with a set of specified + parameters. + + MOCKING FUNCTIONS + For detailed information about the functions in the Pester module, use Get-Help. + + Mock + Mocks the behavior of an existing command with an alternate + implementation. + + Assert-VerifiableMock + Checks if any Verifiable Mock has not been invoked. If so, this will + throw an exception. + + Assert-MockCalled + Checks if a Mocked command has been called a certain number of times + and throws an exception if it has not. + + EXAMPLE + function Build ($version) { + Write-Host "a build was run for version: $version" + } + + function BuildIfChanged { + $thisVersion = Get-Version + $nextVersion = Get-NextVersion + if ($thisVersion -ne $nextVersion) { Build $nextVersion } + return $nextVersion + } + + $here = Split-Path -Parent $MyInvocation.MyCommand.Path + $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".") + . "$here\$sut" + + Describe "BuildIfChanged" { + Context "When there are Changes" { + Mock Get-Version {return 1.1} + Mock Get-NextVersion {return 1.2} + Mock Build {} -Verifiable -ParameterFilter {$version -eq 1.2} + + $result = BuildIfChanged + + It "Builds the next version" { + Assert-VerifiableMock + } + It "returns the next version number" { + $result | Should -Be 1.2 + } + } + Context "When there are no Changes" { + Mock Get-Version { return 1.1 } + Mock Get-NextVersion { return 1.1 } + Mock Build {} + + $result = BuildIfChanged + + It "Should not build the next version" { + Assert-MockCalled Build -Times 0 -ParameterFilter {$version -eq 1.1} + } + } + } + + + MOCKING CALLS TO COMMANDS MADE FROM INSIDE SCRIPT MODULES + + Let's say you have code like this inside a script module (.psm1 file): + + function BuildIfChanged { + $thisVersion = Get-Version + $nextVersion = Get-NextVersion + if ($thisVersion -ne $nextVersion) { Build $nextVersion } + return $nextVersion + } + + function Build ($version) { + Write-Host "a build was run for version: $version" + } + + # Actual definitions of Get-Version and Get-NextVersion are not shown here, + # since we'll just be mocking them anyway. However, the commands do need to + # exist in order to be mocked, so we'll stick dummy functions here + + function Get-Version { return 0 } + function Get-NextVersion { return 0 } + + Export-ModuleMember -Function BuildIfChanged + + Beginning in Pester 3.0, there are two ways to write a unit test for a module that + mocks the calls to Get-Version and Get-NextVersion from the module's BuildIfChanged + command. The first is to inject mocks into a module: + + In these examples, the PSM1 file, MyModule.psm1 is installed in $env:PSModulePath on + the local computer. + + Import-Module MyModule + + Describe "BuildIfChanged" { + Context "When there are Changes" { + Mock -ModuleName MyModule Get-Version { return 1.1 } + Mock -ModuleName MyModule Get-NextVersion { return 1.2 } + + # To demonstrate that you can mock calls to commands other than functions + # defined in the same module, we'll mock a call to Write-Host. + + Mock -ModuleName MyModule Write-Host {} -Verifiable -ParameterFilter { + $Object -eq 'a build was run for version: 1.2' + } + + $result = BuildIfChanged + + It "Builds the next version and calls Write-Host" { + Assert-VerifiableMock + } + + It "returns the next version number" { + $result | Should -Be 1.2 + } + } + + Context "When there are no Changes" { + Mock -ModuleName MyModule Get-Version { return 1.1 } + Mock -ModuleName MyModule Get-NextVersion { return 1.1 } + Mock -ModuleName MyModule Build { } + + $result = BuildIfChanged + + It "Should not build the next version" { + Assert-MockCalled Build -ModuleName MyModule -Times 0 -ParameterFilter { + $version -eq 1.1 + } + } + } + } + + + In this sample test script, all calls to Mock and Assert-MockCalled have the + -ModuleName MyModule parameter added. This tells Pester to inject the mock into the module scope, + which causes any calls to those commands from inside the module to execute the mock instead. + + When you write your test script this way, you can mock commands that are called by the module's + internal functions. However, your test script is still limited to accessing the public, exported + members of the module. For example, you could not call the Build function directly. + + The InModuleScope command causes entire sections of your test script to execute inside the targeted + script module. This gives you access to unexported members of the module. For example: + + Import-Module MyModule + + Describe "Unit testing the module's internal Build function:" { + InModuleScope MyModule { + $testVersion = 5.0 + Mock Write-Host { } + + Build $testVersion + + It 'Outputs the correct message' { + Assert-MockCalled Write-Host -ParameterFilter { + $Object -eq "a build was run for version: $testVersion" + } + } + } + } + + When using InModuleScope, you no longer need to specify a ModuleName parameter when calling + Mock or Assert-MockCalled for commands in the module. You can also directly call the Build + function that the module does not export. + +SEE ALSO + Mock + Assert-VerifiableMock + Assert-MockCalled + InModuleScope + Describe + Context + It + + The following articles are useful for further understanding of Pester Mocks. + Pester Mock and Test Drive, by Jakub Jareš: + http://www.powershellmagazine.com/2014/09/30/pester-mock-and-testdrive/ + Pester and Mocking, by Mickey Gousset: + http://www.systemcentercentral.com/day-53-pester-mocking/ + Mocking Missing Cmdlets with Pester, by Iain Brighton: + http://virtualengine.co.uk/2015/mocking-missing-cmdlets-with-pester/ + Testing Mocked Output with Pester, by Steven Murawski: + http://stevenmurawski.com/powershell/2014/02/testing-returned-objects-with-pester/ + + The following articles are useful for deeper understanding of Mocking in general. + Answer to the Question "What is the Purpose of Mock Objects" by Bert F: + http://stackoverflow.com/a/3623574/5514075 + Mocks Aren't Stubs, by Martin Fowler: + http://martinfowler.com/articles/mocksArentStubs.html + The Art of Mocking, by Gil Zilberfeld: + http://www.methodsandtools.com/archive/archive.php?id=122 diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_Pester.help.txt b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_Pester.help.txt new file mode 100644 index 000000000000..cbe9a4354973 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_Pester.help.txt @@ -0,0 +1,297 @@ +TOPIC + about_Pester + +SHORT DESCRIPTION + Pester is a test framework for Windows PowerShell. Use the Pester language + and its commands to write and run tests that verify that your scripts and + modules work as designed. + + Pester 3.4.0 supports Windows PowerShell 2.0 and greater. + +LONG DESCRIPTION + Pester introduces a professional test framework for Windows PowerShell + commands. You can use Pester to test commands of any supported type, + including scripts, cmdlets, functions, CIM commands, workflows, and DSC + resources, and test these commands in modules of all types. + + Each Pester test compares actual to expected output using a collection of + comparison operators that mirror the familiar operators in Windows + PowerShell. In this way, Pester supports "dynamic testing", that is, it + tests the code while it's running, instead of just evaluating code syntax + ("static testing"). + + Once your Pester tests are written are verified to work correctly, you can + run them automatically or on demand to verify that the output didn't change + and that any code changes did not introduce errors. You can also add your + tests to the build scripts of a continuous integration system, and add new + tests at any time. + + + WHAT CAN PESTER TEST? + Pester is designed to support "test-driven development" (TDD), in which you + write and run tests before writing your code, thereby using the test as a + code specification. + + It also supports "behavior-driven development" (BDD), in which the tests + verify the behavior and output of the code, and the user experience, + independent of its implementation. This lets you change the implementation + and use the test to verify that the behavior is unchanged. + + You can use Pester to write "unit tests" that test individual functions in + isolation and "integration tests" that verify that functions can be used + together to generate expected results. + + Pester creates and manages a temporary drive (PSDrive named TestDrive:) that + you can use to simulate a file system. For more information, see + about_TestDrive. + + Pester also has "mocking" commands that replace the actual output of + commands with output that you specify. Mocking lets you test your commands + with varied input without creating and maintaining fake entries in a file + or database, or commenting-out and inserting code just for testing. For more + information, see about_Mocking. + + + THE PESTER LANGUAGE + To make it easier to write tests, Pester uses a language especially designed + for testing. This "domain-specific language" (DSL) hides the standard + verb-noun syntax of PowerShell commands. + + To make the language more fluent, the command parameters are positional, so + you don't typically use parameter names. + + For example, this "gets all widgets" test uses the Pester language, + including its "It", "Should", and "Be" commands. The test verifies that the + actual output of the Get-Widget cmdlet is the same as the expected value in + the $allWidgets variables. + + It "gets all widgets" { + Get-Widget | Should -Be $allWidgets + } + + + To learn the Pester language, start by reading the following About and + cmdlet help topics: + + -- Describe: Creates a required test container. + -- Context: Creates an optional scoped test sub-container. + -- It: Creates a test. + -- about_Should Compares actual to expected values. This topic also + lists all valid values of Be, which specify the + comparison operator used in the test. + + + + HOW TO CREATE TEST FILES + To start using Pester, create a script and a test file that tests the + script. If you already have a script, you can create a test file for it. + + Pester test files are Windows PowerShell scripts with a .Tests.ps1 file name + extension. The distinctive file name extension enables Pester to identify + tests and distinguish them from other scripts. + + Typically, the test file and file it tests have the same base file name, + such as: + + New-Log.ps1 + New-Log.Tests.ps1 + + For a quick start, use the New-Fixture cmdlet in the Pester module. It + creates a script with an empty function and a matching test file with a + valid test. + + For example, this command creates a New-Log.ps1 script and a + New-Log.Tests.ps1 test script in the C:\Scripts\LogScripts directory. + + New-Fixture -Path C:\Scripts\LogScripts -Name New-Log + + Directory: C:\Scripts\LogScripts + + + Mode LastWriteTime Length Name + ---- ------------- ------ ---- + -a---- 4/18/2016 9:51 AM 30 New-Log.ps1 + -a---- 4/18/2016 9:51 AM 262 New-Log.Tests.ps1 + + + The similar names do not automatically associate the test file and script + file. The test file must include code to import ("dot-source") the + functions, aliases, and variables in the script being tested into the scope + of the test script. + + For example: + . .\New-Log.ps1 + -or- + . C:\Scripts\LogScripts\New-Log.ps1 + + + Many Pester test files, including the files that New-Fixture creates, begin with these + statements. + + $here = Split-Path -Parent $MyInvocation.MyCommand.Path + $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' + . "$here\$sut" + + This code finds the current path of the test file at run time and saves it + in the $here variable. Then, it finds the script based on the path in $here. + This code assumes that the script has the same base name and is located in + the same directory as the test file. + + You can use any code in the test file that finds the script, but be sure + that the test file has the required *.Tests.ps1 file name extension. + + + + HOW TO RUN PESTER TESTS + Pester tests are Windows PowerShell scripts (.ps1 files), so you can run + them at the command line, or in any editor. + + Pester also has an Invoke-Pester cmdlet with useful parameters. By default, + Invoke-Pester runs all the tests in a directory and all of its subdirectories + recursively, but you can run selected tests by specifying a script name or + name pattern, a test name, or a test tag. + + Invoke-Pester parameters also let you save the test output in NUnitXml or + LegacyNUnitXml formats that are commonly used by reporting tools. + + For example, the following command runs all tests in the current directory + and all subdirectories recursively. It writes output to the host, but does + not generate any objects. + + Invoke-Pester + + In contrast, this command runs only the tests in the New-Log.Tests.ps1 file + that have the 'EventVwr' tag. It writes the test results as custom objects + and saves them in NUnitXml format in the NewLogTests.xml file. It also runs + an optional code coverage test to verify that all lines in the script ran + at least once during the tests. + + Invoke-Pester -Script C:\Tests\New-Log.Tests.ps1 ` + -Tag EventVwr -OutputFile .\NewLogTests.xml -OutputFormat NUnitXml ` + -CodeCoverage + + + To run the New-Log.Tests.ps1 file that New-Fixture created, change to its + local directory or a parent directory, and run Invoke-Pester. You can also + use the Script parameter of Invoke-Pester to run only the New-Log.Tests.ps1 + test. + + PS C:\Scripts> Invoke-Pester -Script .\New-Log.Tests.ps1 + + For more information about Invoke-Pester, type: Get-Help Invoke-Pester + + + EXAMPLE + For your first Pester test, use the New-Fixture cmdlet to create a script + file and matching test file. + + For example: + + New-Fixture -Path C:\TestPester -Name Get-Hello + + Directory: C:\TestPester + + + Mode LastWriteTime Length Name + ---- ------------- ------ ---- + -a---- 4/18/2016 9:51 AM 30 Get-Hello.ps1 + -a---- 4/18/2016 9:51 AM 262 Get-Hello.Tests.ps1 + + + The Get-Hello.ps1 script contains an empty Get-Hello.ps1 function. + + function Get-Hello {} + + The Get-Hello.Tests.ps1 file contains an empty Pester test that is named + for the Get-Hello function. + + Describe "Get-Hello" { + It "does something useful" { + $true | Should -Be $false + } + } + + To run the test, use Invoke-Pester. For example, + + Invoke-Pester C:\TestPester + + When you run the test, it fails by design, because Should compares $True to + $False using the equal operator ("Be") and $True doesn't equal $False. + + + To start testing the Get-Hello function, change $True to Get-Hello and + $False to "Hello". Now, the test compares the output of Get-Hello output to + 'hello'. + + It should still fail, because Get-Hello doesn't return anything. + + Describe "New-Log" { + It "does something useful" { + Get-Hello | Should -Be 'Hello' + } + } + + + To make the test pass, change the Get-Hello function so it returns 'hello'. + Then, in steps, change $False to more interesting values, then change the + Get-Hello function output to make the test pass. + + You can also experiment with other comparison operators, such as the BeLike + (supports wildcards) and BeExactly (case sensitive), and BeLikeExactly + operators. For more, information about comparison operators in Pester, see + about_Should. + + + PESTER TEST OUTPUT + When you run a test, Pester use a variation of Write-Host to write + color-coded text to the console. You'll quickly learn to recognize the + purple test names and green (passing) and red (failing) test results with + the elapsed time of the test. + + Describing Get-Profile + [+] Gets all profiles 156ms + [+] Gets only profiles 24ms + + The output ends with a summary of the test results. + + Tests completed in 3.47s + Passed: 20 Failed: 1 Skipped: 0 Pending: 0 Inconclusive: 0 + + However, because Pester uses Write-Host, it does not write to the output + stream (stdout), so there are no output objects to save in a variable or + redirect to a file. + + To direct Pester to create custom objects, use its PassThru parameter. The + result is a single PSCustomObject with a TestResult property that one + TestResult custom object for each test in the test file. + + To save the custom objects to a file, use the OutputFile and OutputFormat + parameters of Invoke-Pester, which save the output in NUnitXml and + LegacyNUnitXml formats that are easy to parse and commonly used by reporting + tools. + + + + REAL-WORLD EXAMPLES + For help in writing Pester tests, examine the extensive collection of tests + that Pester uses to verify its Windows PowerShell code. + + To find the Pester tests in the Pester module directory, type: + + dir \*Tests.ps1 -Recurse + + -or- + + dir (Get-Module Pester -ListAvailable).ModuleBase -Include *Tests.ps1 -Recurse + + +SEE ALSO + Pester wiki: https://github.com/pester/pester/wiki + Describe + Context + It + New-Fixture + Invoke-Pester + about_Mocking + about_Should + about_TestDrive diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_Should.help.txt b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_Should.help.txt new file mode 100644 index 000000000000..3e03df2ffbd9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_Should.help.txt @@ -0,0 +1,251 @@ +TOPIC + about_Should + +SHORT DESCRIPTION + Provides assertion convenience methods for comparing objects and throwing + test failures when test expectations fail. + +LONG DESCRIPTION + Should is an Extension of System.Object and can be used as a native type + inside Describe blocks. The various Should member methods can be invoked + directly from an object being compared. It is typically used in individual + It blocks to verify the results of an expectation. The Should method is + typically called from the "actual" object being compared and takes the + expected" object as a parameter. Should includes several members that + perform various comparisons of objects and will throw a PesterFailure when + the objects do not evaluate to be comparable. + +SHOULD MEMBERS + GENERAL + Be + Compares one object with another for equality and throws if the two + objects are not the same. + + $actual="Actual value" + $actual | Should -Be "actual value" # Test will pass + $actual | Should -Be "not actual value" # Test will fail + + Also compares an entire array for equality and throws if the array is not the same. + + $array = @(1, 2, 3, 4, 'I am a string', (New-Object psobject -Property @{ IAm = 'An Object' })) + $array | Should -Be $array # Test will pass + + $string = 'I am a string' + $array = @(1, 2, 3, 4, $string) + $arrayWithCaps = @(1, 2, 3, 4, $string.ToUpper()) + $array | Should -Be $arrayWithCaps # Test will pass + + Comparisons will fail if the arrays have the same values, but not the same order. + + [int32[]]$array = (1..10) + $arrayoutoforder = (1,10,2,3,4,5,6,7,8,9) + $array | Should -Be $arrayOutOfOrder # Test will fail + + BeExactly + Compares one object with another for equality and throws if the two objects are not the same. This comparison is case sensitive. + + $actual="Actual value" + $actual | Should -BeExactly "Actual value" # Test will pass + $actual | Should -BeExactly "actual value" # Test will fail + + BeNullOrEmpty + Checks values for null or empty (strings). The static [String]::IsNullOrEmpty() method is used to do the comparison. + + $null | Should -BeNullOrEmpty # Test will pass + $null | Should -Not -BeNullOrEmpty # Test will fail + @() | Should -BeNullOrEmpty # Test will pass + "" | Should -BeNullOrEmpty # Test will pass + BeTrue + Asserts that the value is true, or truthy. + + $true | Should -BeTrue + 1 | Should -BeTrue + 1,2,3 | Should -BeTrue + + BeFalse + Asserts that the value is false of falsy. + + $false | Should -BeFalse + 0 | Should -BeFalse + $null | Should -BeFalse + + BeOfType, HaveType + Asserts that the actual value should be an object of a specified type (or a subclass of the specified type) using PowerShell's -is operator: + + $actual = Get-Item $env:SystemRoot + $actual | Should -BeOfType System.IO.DirectoryInfo # Test will pass; object is a DirectoryInfo + $actual | Should -BeOfType System.IO.FileSystemInfo # Test will pass; DirectoryInfo base class is FileSystemInfo + $actual | Should -HaveType System.IO.FileSystemInfo # Test will pass; DirectoryInfo base class is FileSystemInfo + + $actual | Should -BeOfType System.IO.FileInfo # Test will fail; FileInfo is not a base class of DirectoryInfo + + + TEXT + BeLike + Asserts that the actual value matches a wildcard pattern using PowerShell's -like operator. This comparison is not case-sensitive. + + $actual="Actual value" + $actual | Should -BeLike "actual *" # Test will pass + $actual | Should -BeLike "not actual *" # Test will fail + + BeLikeExactly + + Asserts that the actual value matches a wildcard pattern using PowerShell's -like operator. This comparison is case-sensitive. + + $actual="Actual value" + $actual | Should -BeLikeExactly "Actual *" # Test will pass + $actual | Should -BeLikeExactly "actual *" # Test will fail + + Match + Uses a regular expression to compare two objects. This comparison is not case sensitive. + + "I am a value" | Should -Match "I Am" # Test will pass + "I am a value" | Should -Match "I am a bad person" # Test will fail + + Tip: Use [regex]::Escape("pattern") to match the exact text. + + "Greg" | Should -Match ".reg" # Test will pass + "Greg" | Should -Match ([regex]::Escape(".reg")) # Test will fail + + MatchExactly + Uses a regular expression to compare two objects. This comparison is case sensitive. + + "I am a value" | Should -MatchExactly "I am" # Test will pass + "I am a value" | Should -MatchExactly "I Am" # Test will fail + + COMPARISON + BeGreaterThan + Asserts that a number (or other comparable value) is greater than an expected value. Uses PowerShell's -gt operator to compare the two values. + + 2 | Should -BeGreaterThan 0 + + BeGreaterOrEqual + Asserts that a number (or other comparable value) is greater than or equal to an expected value. Uses PowerShell's -ge operator to compare the two values. + + 2 | Should -BeGreaterOrEqual 0 + 2 | Should -BeGreaterOrEqual 2 + + BeLessThan + Asserts that a number (or other comparable value) is lower than an expected value. Uses PowerShell's -lt operator to compare the two values. + + 1 | Should -BeLessThan 10 + + BeLessOrEqual + Asserts that a number (or other comparable value) is lower than, or equal to an expected value. Uses PowerShell's -le operator to compare the two values. + + 1 | Should -BeLessOrEqual 10 + 10 | Should -BeLessOrEqual 10 + + COLLECTION + BeIn + Asserts that a collection of values contain a specific value. Uses PowerShell's -contains operator to confirm. + + 1 | Should -BeIn @(1,2,3,'a','b','c') + + Contain + Asserts that collection contains a specific value. Uses PowerShell's -contains operator to confirm. + + 1,2,3 | Should -Contain 1 + + HaveCount + Asserts that a collection has the expected amount of items. + + 1,2,3 | Should -HaveCount 3 + + FILE + Exist + Does not perform any comparison but checks if the object calling Exist + is present in a PS Provider. The object must have valid path syntax. It + essentially must pass a Test-Path call. + + $actual=(Dir . )[0].FullName + Remove-Item $actual + $actual | Should -Exist # Test will fail + + FileContentMatch + Checks to see if a file contains the specified text. This search is not case sensitive and uses regular expressions. + + Set-Content -Path TestDrive:\file.txt -Value 'I am a file.' + 'TestDrive:\file.txt' | Should -FileContentMatch 'I Am' # Test will pass + 'TestDrive:\file.txt' | Should -FileContentMatch '^I.*file\.$' # Test will pass + + 'TestDrive:\file.txt' | Should -FileContentMatch 'I Am Not' # Test will fail + + Tip: Use [regex]::Escape("pattern") to match the exact text. + + Set-Content -Path TestDrive:\file.txt -Value 'I am a file.' + 'TestDrive:\file.txt' | Should -FileContentMatch 'I.am.a.file' # Test will pass + 'TestDrive:\file.txt' | Should -FileContentMatch ([regex]::Escape('I.am.a.file')) # Test will fail + + FileContentMatchExactly + Checks to see if a file contains the specified text. This search is case sensitive and uses regular expressions to match the text. + + Set-Content -Path TestDrive:\file.txt -Value 'I am a file.' + 'TestDrive:\file.txt' | Should -FileContentMatch 'I am' # Test will pass + 'TestDrive:\file.txt' | Should -FileContentMatch 'I Am' # Test will fail + + FileContentMatchMultiline + As opposed to FileContentMatch and FileContentMatchExactly operators, FileContentMatchMultiline presents content of the file + being tested as one string object, so that the expression you are comparing it to can consist of several lines. + + $Content = "I am the first line.`nI am the second line." + Set-Content -Path TestDrive:\file.txt -Value $Content -NoNewline + 'TestDrive:\file.txt' | Should -FileContentMatchMultiline 'first line\.\r?\nI am' # Test will pass + 'TestDrive:\file.txt' | Should -FileContentMatchMultiline '^I am the first.*\n.*second line\.$' # Test will pass. + + When using FileContentMatchMultiline operator, '^' and '$' represent the beginning and end of the whole file, + instead of the beginning and end of a line. + + $Content = "I am the first line.`nI am the second line." + Set-Content -Path TestDrive:\file.txt -Value $Content -NoNewline + 'TestDrive:\file.txt' | Should -FileContentMatchMultiline '^I am the first line\.$' # Test will fail. + + + EXCEPTIONS + Throw + Checks if an exception was thrown. Enclose input in a script block. + + { foo } | Should -Throw # Test will pass + { $foo = 1 } | Should -Throw # Test will fail + { foo } | Should -Not -Throw # Test will fail + { $foo = 1 } | Should -Not -Throw # Test will pass + + Warning: The input object must be a ScriptBlock, otherwise it is processed outside of the assertion. + + Get-Process -Name "process" -ErrorAction Stop | Should -Throw # Should pass, but the exception thrown by Get-Process causes the test to fail. + + NEGATIVE ASSERTIONS + Any of the Should operators described above can be negated by using the word "Not" before the operator. For example: + + 'one' | Should -Not -Be 'Two' + { Get-Item $env:SystemRoot } | Should -Not -Throw + + USING SHOULD IN A TEST + + function Add-Numbers($a, $b) { + return $a + $b + } + + Describe "Add-Numbers" { + + It "adds positive numbers" { + $sum = Add-Numbers 2 3 + $sum | Should -Be 3 + } + } + + This test will fail since 3 will not be equal to the sum of 2 and 3. + + BECAUSE + Every built in assertion allows you to specify -Because parameter, to give more meaning to your tests. + + function Get-Group { $null } + $groups = 1..10 | Get-Group -Size 3 + $groups | Should -HaveCount 4 -Because "because 10 items are split into three groups with 3 members and one extra group with 1 member" + + Which fails with: "Expected a collection with size {4}, because 10 items are split into three groups with 3 members and one extra group with 1 member, but got collection with size {1} []. + +SEE ALSO + Describe + Context + It diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_TestDrive.help.txt b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_TestDrive.help.txt new file mode 100644 index 000000000000..60b5ffe78192 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/en-US/about_TestDrive.help.txt @@ -0,0 +1,40 @@ +TOPIC + about_TestDrive + +SHORT DESCRIPTION + A PSDrive for file activity limited to the scope of a singe Describe or + Context block. + +LONG DESCRIPTION + A test may need to work with file operations and validate certain types of + file activities. It is usually desirable not to perform file activity tests + that will produce side effects outside of an individual test. Pester + creates a PSDrive inside the user's temporary drive that is accessible via a + names PSDrive TestDrive:. Pester will remove this drive after the test + completes. You may use this drive to isolate the file operations of your + test to a temporary store. + +EXAMPLE + function Add-Footer($path, $footer) { + Add-Content $path -Value $footer + } + + Describe "Add-Footer" { + $testPath="TestDrive:\test.txt" + Set-Content $testPath -value "my test text." + Add-Footer $testPath "-Footer" + $result = Get-Content $testPath + + It "adds a footer" { + (-join $result).Should.Be("my test text.-Footer") + } + } + + When this test completes, the contents of the TestDrive PSDrive will + be removed. + +SEE ALSO + Context + Describe + It + about_Should diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/junit_schema_4.xsd b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/junit_schema_4.xsd new file mode 100644 index 000000000000..57906005025f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/junit_schema_4.xsd @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/core/Gherkin.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/core/Gherkin.dll new file mode 100644 index 000000000000..ce587d594fe4 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/core/Gherkin.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/gherkin-languages.json b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/gherkin-languages.json new file mode 100644 index 000000000000..b8d92a24bc64 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/gherkin-languages.json @@ -0,0 +1,3623 @@ +{ + "af": { + "and": [ + "* ", + "En " + ], + "background": [ + "Agtergrond" + ], + "but": [ + "* ", + "Maar " + ], + "examples": [ + "Voorbeelde" + ], + "feature": [ + "Funksie", + "Besigheid Behoefte", + "Vermoë" + ], + "given": [ + "* ", + "Gegewe " + ], + "name": "Afrikaans", + "native": "Afrikaans", + "rule": [ + "Rule" + ], + "scenario": [ + "Voorbeeld", + "Situasie" + ], + "scenarioOutline": [ + "Situasie Uiteensetting" + ], + "then": [ + "* ", + "Dan " + ], + "when": [ + "* ", + "Wanneer " + ] + }, + "am": { + "and": [ + "* ", + "Եվ " + ], + "background": [ + "Կոնտեքստ" + ], + "but": [ + "* ", + "Բայց " + ], + "examples": [ + "Օրինակներ" + ], + "feature": [ + "Ֆունկցիոնալություն", + "Հատկություն" + ], + "given": [ + "* ", + "Դիցուք " + ], + "name": "Armenian", + "native": "հայերեն", + "rule": [ + "Rule" + ], + "scenario": [ + "Օրինակ", + "Սցենար" + ], + "scenarioOutline": [ + "Սցենարի կառուցվացքը" + ], + "then": [ + "* ", + "Ապա " + ], + "when": [ + "* ", + "Եթե ", + "Երբ " + ] + }, + "an": { + "and": [ + "* ", + "Y ", + "E " + ], + "background": [ + "Antecedents" + ], + "but": [ + "* ", + "Pero " + ], + "examples": [ + "Eixemplos" + ], + "feature": [ + "Caracteristica" + ], + "given": [ + "* ", + "Dau ", + "Dada ", + "Daus ", + "Dadas " + ], + "name": "Aragonese", + "native": "Aragonés", + "rule": [ + "Rule" + ], + "scenario": [ + "Eixemplo", + "Caso" + ], + "scenarioOutline": [ + "Esquema del caso" + ], + "then": [ + "* ", + "Alavez ", + "Allora ", + "Antonces " + ], + "when": [ + "* ", + "Cuan " + ] + }, + "ar": { + "and": [ + "* ", + "و " + ], + "background": [ + "الخلفية" + ], + "but": [ + "* ", + "لكن " + ], + "examples": [ + "امثلة" + ], + "feature": [ + "خاصية" + ], + "given": [ + "* ", + "بفرض " + ], + "name": "Arabic", + "native": "العربية", + "rule": [ + "Rule" + ], + "scenario": [ + "مثال", + "سيناريو" + ], + "scenarioOutline": [ + "سيناريو مخطط" + ], + "then": [ + "* ", + "اذاً ", + "ثم " + ], + "when": [ + "* ", + "متى ", + "عندما " + ] + }, + "ast": { + "and": [ + "* ", + "Y ", + "Ya " + ], + "background": [ + "Antecedentes" + ], + "but": [ + "* ", + "Peru " + ], + "examples": [ + "Exemplos" + ], + "feature": [ + "Carauterística" + ], + "given": [ + "* ", + "Dáu ", + "Dada ", + "Daos ", + "Daes " + ], + "name": "Asturian", + "native": "asturianu", + "rule": [ + "Rule" + ], + "scenario": [ + "Exemplo", + "Casu" + ], + "scenarioOutline": [ + "Esbozu del casu" + ], + "then": [ + "* ", + "Entós " + ], + "when": [ + "* ", + "Cuando " + ] + }, + "az": { + "and": [ + "* ", + "Və ", + "Həm " + ], + "background": [ + "Keçmiş", + "Kontekst" + ], + "but": [ + "* ", + "Amma ", + "Ancaq " + ], + "examples": [ + "Nümunələr" + ], + "feature": [ + "Özəllik" + ], + "given": [ + "* ", + "Tutaq ki ", + "Verilir " + ], + "name": "Azerbaijani", + "native": "Azərbaycanca", + "rule": [ + "Rule" + ], + "scenario": [ + "Nümunə", + "Ssenari" + ], + "scenarioOutline": [ + "Ssenarinin strukturu" + ], + "then": [ + "* ", + "O halda " + ], + "when": [ + "* ", + "Əgər ", + "Nə vaxt ki " + ] + }, + "bg": { + "and": [ + "* ", + "И " + ], + "background": [ + "Предистория" + ], + "but": [ + "* ", + "Но " + ], + "examples": [ + "Примери" + ], + "feature": [ + "Функционалност" + ], + "given": [ + "* ", + "Дадено " + ], + "name": "Bulgarian", + "native": "български", + "rule": [ + "Rule" + ], + "scenario": [ + "Пример", + "Сценарий" + ], + "scenarioOutline": [ + "Рамка на сценарий" + ], + "then": [ + "* ", + "То " + ], + "when": [ + "* ", + "Когато " + ] + }, + "bm": { + "and": [ + "* ", + "Dan " + ], + "background": [ + "Latar Belakang" + ], + "but": [ + "* ", + "Tetapi ", + "Tapi " + ], + "examples": [ + "Contoh" + ], + "feature": [ + "Fungsi" + ], + "given": [ + "* ", + "Diberi ", + "Bagi " + ], + "name": "Malay", + "native": "Bahasa Melayu", + "rule": [ + "Rule" + ], + "scenario": [ + "Senario", + "Situasi", + "Keadaan" + ], + "scenarioOutline": [ + "Kerangka Senario", + "Kerangka Situasi", + "Kerangka Keadaan", + "Garis Panduan Senario" + ], + "then": [ + "* ", + "Maka ", + "Kemudian " + ], + "when": [ + "* ", + "Apabila " + ] + }, + "bs": { + "and": [ + "* ", + "I ", + "A " + ], + "background": [ + "Pozadina" + ], + "but": [ + "* ", + "Ali " + ], + "examples": [ + "Primjeri" + ], + "feature": [ + "Karakteristika" + ], + "given": [ + "* ", + "Dato " + ], + "name": "Bosnian", + "native": "Bosanski", + "rule": [ + "Rule" + ], + "scenario": [ + "Primjer", + "Scenariju", + "Scenario" + ], + "scenarioOutline": [ + "Scenariju-obris", + "Scenario-outline" + ], + "then": [ + "* ", + "Zatim " + ], + "when": [ + "* ", + "Kada " + ] + }, + "ca": { + "and": [ + "* ", + "I " + ], + "background": [ + "Rerefons", + "Antecedents" + ], + "but": [ + "* ", + "Però " + ], + "examples": [ + "Exemples" + ], + "feature": [ + "Característica", + "Funcionalitat" + ], + "given": [ + "* ", + "Donat ", + "Donada ", + "Atès ", + "Atesa " + ], + "name": "Catalan", + "native": "català", + "rule": [ + "Rule" + ], + "scenario": [ + "Exemple", + "Escenari" + ], + "scenarioOutline": [ + "Esquema de l'escenari" + ], + "then": [ + "* ", + "Aleshores ", + "Cal " + ], + "when": [ + "* ", + "Quan " + ] + }, + "cs": { + "and": [ + "* ", + "A také ", + "A " + ], + "background": [ + "Pozadí", + "Kontext" + ], + "but": [ + "* ", + "Ale " + ], + "examples": [ + "Příklady" + ], + "feature": [ + "Požadavek" + ], + "given": [ + "* ", + "Pokud ", + "Za předpokladu " + ], + "name": "Czech", + "native": "Česky", + "rule": [ + "Rule" + ], + "scenario": [ + "Příklad", + "Scénář" + ], + "scenarioOutline": [ + "Náčrt Scénáře", + "Osnova scénáře" + ], + "then": [ + "* ", + "Pak " + ], + "when": [ + "* ", + "Když " + ] + }, + "cy-GB": { + "and": [ + "* ", + "A " + ], + "background": [ + "Cefndir" + ], + "but": [ + "* ", + "Ond " + ], + "examples": [ + "Enghreifftiau" + ], + "feature": [ + "Arwedd" + ], + "given": [ + "* ", + "Anrhegedig a " + ], + "name": "Welsh", + "native": "Cymraeg", + "rule": [ + "Rule" + ], + "scenario": [ + "Enghraifft", + "Scenario" + ], + "scenarioOutline": [ + "Scenario Amlinellol" + ], + "then": [ + "* ", + "Yna " + ], + "when": [ + "* ", + "Pryd " + ] + }, + "da": { + "and": [ + "* ", + "Og " + ], + "background": [ + "Baggrund" + ], + "but": [ + "* ", + "Men " + ], + "examples": [ + "Eksempler" + ], + "feature": [ + "Egenskab" + ], + "given": [ + "* ", + "Givet " + ], + "name": "Danish", + "native": "dansk", + "rule": [ + "Rule" + ], + "scenario": [ + "Eksempel", + "Scenarie" + ], + "scenarioOutline": [ + "Abstrakt Scenario" + ], + "then": [ + "* ", + "Så " + ], + "when": [ + "* ", + "Når " + ] + }, + "de": { + "and": [ + "* ", + "Und " + ], + "background": [ + "Grundlage", + "Hintergrund", + "Voraussetzungen", + "Vorbedingungen" + ], + "but": [ + "* ", + "Aber " + ], + "examples": [ + "Beispiele" + ], + "feature": [ + "Funktionalität", + "Funktion" + ], + "given": [ + "* ", + "Angenommen ", + "Gegeben sei ", + "Gegeben seien " + ], + "name": "German", + "native": "Deutsch", + "rule": [ + "Rule", + "Regel" + ], + "scenario": [ + "Beispiel", + "Szenario" + ], + "scenarioOutline": [ + "Szenariogrundriss", + "Szenarien" + ], + "then": [ + "* ", + "Dann " + ], + "when": [ + "* ", + "Wenn " + ] + }, + "el": { + "and": [ + "* ", + "Και " + ], + "background": [ + "Υπόβαθρο" + ], + "but": [ + "* ", + "Αλλά " + ], + "examples": [ + "Παραδείγματα", + "Σενάρια" + ], + "feature": [ + "Δυνατότητα", + "Λειτουργία" + ], + "given": [ + "* ", + "Δεδομένου " + ], + "name": "Greek", + "native": "Ελληνικά", + "rule": [ + "Rule" + ], + "scenario": [ + "Παράδειγμα", + "Σενάριο" + ], + "scenarioOutline": [ + "Περιγραφή Σεναρίου", + "Περίγραμμα Σεναρίου" + ], + "then": [ + "* ", + "Τότε " + ], + "when": [ + "* ", + "Όταν " + ] + }, + "em": { + "and": [ + "* ", + "😂" + ], + "background": [ + "💤" + ], + "but": [ + "* ", + "😔" + ], + "examples": [ + "📓" + ], + "feature": [ + "📚" + ], + "given": [ + "* ", + "😐" + ], + "name": "Emoji", + "native": "😀", + "rule": [ + "Rule" + ], + "scenario": [ + "🥒", + "📕" + ], + "scenarioOutline": [ + "📖" + ], + "then": [ + "* ", + "🙏" + ], + "when": [ + "* ", + "🎬" + ] + }, + "en": { + "and": [ + "* ", + "And " + ], + "background": [ + "Background" + ], + "but": [ + "* ", + "But " + ], + "examples": [ + "Examples", + "Scenarios" + ], + "feature": [ + "Feature", + "Business Need", + "Ability" + ], + "given": [ + "* ", + "Given " + ], + "name": "English", + "native": "English", + "rule": [ + "Rule" + ], + "scenario": [ + "Example", + "Scenario" + ], + "scenarioOutline": [ + "Scenario Outline", + "Scenario Template" + ], + "then": [ + "* ", + "Then " + ], + "when": [ + "* ", + "When " + ] + }, + "en-Scouse": { + "and": [ + "* ", + "An " + ], + "background": [ + "Dis is what went down" + ], + "but": [ + "* ", + "Buh " + ], + "examples": [ + "Examples" + ], + "feature": [ + "Feature" + ], + "given": [ + "* ", + "Givun ", + "Youse know when youse got " + ], + "name": "Scouse", + "native": "Scouse", + "rule": [ + "Rule" + ], + "scenario": [ + "The thing of it is" + ], + "scenarioOutline": [ + "Wharrimean is" + ], + "then": [ + "* ", + "Dun ", + "Den youse gotta " + ], + "when": [ + "* ", + "Wun ", + "Youse know like when " + ] + }, + "en-au": { + "and": [ + "* ", + "Too right " + ], + "background": [ + "First off" + ], + "but": [ + "* ", + "Yeah nah " + ], + "examples": [ + "You'll wanna" + ], + "feature": [ + "Pretty much" + ], + "given": [ + "* ", + "Y'know " + ], + "name": "Australian", + "native": "Australian", + "rule": [ + "Rule" + ], + "scenario": [ + "Awww, look mate" + ], + "scenarioOutline": [ + "Reckon it's like" + ], + "then": [ + "* ", + "But at the end of the day I reckon " + ], + "when": [ + "* ", + "It's just unbelievable " + ] + }, + "en-lol": { + "and": [ + "* ", + "AN " + ], + "background": [ + "B4" + ], + "but": [ + "* ", + "BUT " + ], + "examples": [ + "EXAMPLZ" + ], + "feature": [ + "OH HAI" + ], + "given": [ + "* ", + "I CAN HAZ " + ], + "name": "LOLCAT", + "native": "LOLCAT", + "rule": [ + "Rule" + ], + "scenario": [ + "MISHUN" + ], + "scenarioOutline": [ + "MISHUN SRSLY" + ], + "then": [ + "* ", + "DEN " + ], + "when": [ + "* ", + "WEN " + ] + }, + "en-old": { + "and": [ + "* ", + "Ond ", + "7 " + ], + "background": [ + "Aer", + "Ær" + ], + "but": [ + "* ", + "Ac " + ], + "examples": [ + "Se the", + "Se þe", + "Se ðe" + ], + "feature": [ + "Hwaet", + "Hwæt" + ], + "given": [ + "* ", + "Thurh ", + "Þurh ", + "Ðurh " + ], + "name": "Old English", + "native": "Englisc", + "rule": [ + "Rule" + ], + "scenario": [ + "Swa" + ], + "scenarioOutline": [ + "Swa hwaer swa", + "Swa hwær swa" + ], + "then": [ + "* ", + "Tha ", + "Þa ", + "Ða ", + "Tha the ", + "Þa þe ", + "Ða ðe " + ], + "when": [ + "* ", + "Tha ", + "Þa ", + "Ða " + ] + }, + "en-pirate": { + "and": [ + "* ", + "Aye " + ], + "background": [ + "Yo-ho-ho" + ], + "but": [ + "* ", + "Avast! " + ], + "examples": [ + "Dead men tell no tales" + ], + "feature": [ + "Ahoy matey!" + ], + "given": [ + "* ", + "Gangway! " + ], + "name": "Pirate", + "native": "Pirate", + "rule": [ + "Rule" + ], + "scenario": [ + "Heave to" + ], + "scenarioOutline": [ + "Shiver me timbers" + ], + "then": [ + "* ", + "Let go and haul " + ], + "when": [ + "* ", + "Blimey! " + ] + }, + "eo": { + "and": [ + "* ", + "Kaj " + ], + "background": [ + "Fono" + ], + "but": [ + "* ", + "Sed " + ], + "examples": [ + "Ekzemploj" + ], + "feature": [ + "Trajto" + ], + "given": [ + "* ", + "Donitaĵo ", + "Komence " + ], + "name": "Esperanto", + "native": "Esperanto", + "rule": [ + "Rule" + ], + "scenario": [ + "Ekzemplo", + "Scenaro", + "Kazo" + ], + "scenarioOutline": [ + "Konturo de la scenaro", + "Skizo", + "Kazo-skizo" + ], + "then": [ + "* ", + "Do " + ], + "when": [ + "* ", + "Se " + ] + }, + "es": { + "and": [ + "* ", + "Y ", + "E " + ], + "background": [ + "Antecedentes" + ], + "but": [ + "* ", + "Pero " + ], + "examples": [ + "Ejemplos" + ], + "feature": [ + "Característica" + ], + "given": [ + "* ", + "Dado ", + "Dada ", + "Dados ", + "Dadas " + ], + "name": "Spanish", + "native": "español", + "rule": [ + "Regla" + ], + "scenario": [ + "Ejemplo", + "Escenario" + ], + "scenarioOutline": [ + "Esquema del escenario" + ], + "then": [ + "* ", + "Entonces " + ], + "when": [ + "* ", + "Cuando " + ] + }, + "et": { + "and": [ + "* ", + "Ja " + ], + "background": [ + "Taust" + ], + "but": [ + "* ", + "Kuid " + ], + "examples": [ + "Juhtumid" + ], + "feature": [ + "Omadus" + ], + "given": [ + "* ", + "Eeldades " + ], + "name": "Estonian", + "native": "eesti keel", + "rule": [ + "Rule" + ], + "scenario": [ + "Juhtum", + "Stsenaarium" + ], + "scenarioOutline": [ + "Raamstjuhtum", + "Raamstsenaarium" + ], + "then": [ + "* ", + "Siis " + ], + "when": [ + "* ", + "Kui " + ] + }, + "fa": { + "and": [ + "* ", + "و " + ], + "background": [ + "زمینه" + ], + "but": [ + "* ", + "اما " + ], + "examples": [ + "نمونه ها" + ], + "feature": [ + "وِیژگی" + ], + "given": [ + "* ", + "با فرض " + ], + "name": "Persian", + "native": "فارسی", + "rule": [ + "Rule" + ], + "scenario": [ + "مثال", + "سناریو" + ], + "scenarioOutline": [ + "الگوی سناریو" + ], + "then": [ + "* ", + "آنگاه " + ], + "when": [ + "* ", + "هنگامی " + ] + }, + "fi": { + "and": [ + "* ", + "Ja " + ], + "background": [ + "Tausta" + ], + "but": [ + "* ", + "Mutta " + ], + "examples": [ + "Tapaukset" + ], + "feature": [ + "Ominaisuus" + ], + "given": [ + "* ", + "Oletetaan " + ], + "name": "Finnish", + "native": "suomi", + "rule": [ + "Rule" + ], + "scenario": [ + "Tapaus" + ], + "scenarioOutline": [ + "Tapausaihio" + ], + "then": [ + "* ", + "Niin " + ], + "when": [ + "* ", + "Kun " + ] + }, + "fr": { + "and": [ + "* ", + "Et que ", + "Et qu'", + "Et " + ], + "background": [ + "Contexte" + ], + "but": [ + "* ", + "Mais que ", + "Mais qu'", + "Mais " + ], + "examples": [ + "Exemples" + ], + "feature": [ + "Fonctionnalité" + ], + "given": [ + "* ", + "Soit ", + "Sachant que ", + "Sachant qu'", + "Sachant ", + "Etant donné que ", + "Etant donné qu'", + "Etant donné ", + "Etant donnée ", + "Etant donnés ", + "Etant données ", + "Étant donné que ", + "Étant donné qu'", + "Étant donné ", + "Étant donnée ", + "Étant donnés ", + "Étant données " + ], + "name": "French", + "native": "français", + "rule": [ + "Règle" + ], + "scenario": [ + "Exemple", + "Scénario" + ], + "scenarioOutline": [ + "Plan du scénario", + "Plan du Scénario" + ], + "then": [ + "* ", + "Alors ", + "Donc " + ], + "when": [ + "* ", + "Quand ", + "Lorsque ", + "Lorsqu'" + ] + }, + "ga": { + "and": [ + "* ", + "Agus" + ], + "background": [ + "Cúlra" + ], + "but": [ + "* ", + "Ach" + ], + "examples": [ + "Samplaí" + ], + "feature": [ + "Gné" + ], + "given": [ + "* ", + "Cuir i gcás go", + "Cuir i gcás nach", + "Cuir i gcás gur", + "Cuir i gcás nár" + ], + "name": "Irish", + "native": "Gaeilge", + "rule": [ + "Rule" + ], + "scenario": [ + "Sampla", + "Cás" + ], + "scenarioOutline": [ + "Cás Achomair" + ], + "then": [ + "* ", + "Ansin" + ], + "when": [ + "* ", + "Nuair a", + "Nuair nach", + "Nuair ba", + "Nuair nár" + ] + }, + "gj": { + "and": [ + "* ", + "અને " + ], + "background": [ + "બેકગ્રાઉન્ડ" + ], + "but": [ + "* ", + "પણ " + ], + "examples": [ + "ઉદાહરણો" + ], + "feature": [ + "લક્ષણ", + "વ્યાપાર જરૂર", + "ક્ષમતા" + ], + "given": [ + "* ", + "આપેલ છે " + ], + "name": "Gujarati", + "native": "ગુજરાતી", + "rule": [ + "Rule" + ], + "scenario": [ + "ઉદાહરણ", + "સ્થિતિ" + ], + "scenarioOutline": [ + "પરિદ્દશ્ય રૂપરેખા", + "પરિદ્દશ્ય ઢાંચો" + ], + "then": [ + "* ", + "પછી " + ], + "when": [ + "* ", + "ક્યારે " + ] + }, + "gl": { + "and": [ + "* ", + "E " + ], + "background": [ + "Contexto" + ], + "but": [ + "* ", + "Mais ", + "Pero " + ], + "examples": [ + "Exemplos" + ], + "feature": [ + "Característica" + ], + "given": [ + "* ", + "Dado ", + "Dada ", + "Dados ", + "Dadas " + ], + "name": "Galician", + "native": "galego", + "rule": [ + "Rule" + ], + "scenario": [ + "Exemplo", + "Escenario" + ], + "scenarioOutline": [ + "Esbozo do escenario" + ], + "then": [ + "* ", + "Entón ", + "Logo " + ], + "when": [ + "* ", + "Cando " + ] + }, + "he": { + "and": [ + "* ", + "וגם " + ], + "background": [ + "רקע" + ], + "but": [ + "* ", + "אבל " + ], + "examples": [ + "דוגמאות" + ], + "feature": [ + "תכונה" + ], + "given": [ + "* ", + "בהינתן " + ], + "name": "Hebrew", + "native": "עברית", + "rule": [ + "Rule" + ], + "scenario": [ + "דוגמא", + "תרחיש" + ], + "scenarioOutline": [ + "תבנית תרחיש" + ], + "then": [ + "* ", + "אז ", + "אזי " + ], + "when": [ + "* ", + "כאשר " + ] + }, + "hi": { + "and": [ + "* ", + "और ", + "तथा " + ], + "background": [ + "पृष्ठभूमि" + ], + "but": [ + "* ", + "पर ", + "परन्तु ", + "किन्तु " + ], + "examples": [ + "उदाहरण" + ], + "feature": [ + "रूप लेख" + ], + "given": [ + "* ", + "अगर ", + "यदि ", + "चूंकि " + ], + "name": "Hindi", + "native": "हिंदी", + "rule": [ + "Rule" + ], + "scenario": [ + "परिदृश्य" + ], + "scenarioOutline": [ + "परिदृश्य रूपरेखा" + ], + "then": [ + "* ", + "तब ", + "तदा " + ], + "when": [ + "* ", + "जब ", + "कदा " + ] + }, + "hr": { + "and": [ + "* ", + "I " + ], + "background": [ + "Pozadina" + ], + "but": [ + "* ", + "Ali " + ], + "examples": [ + "Primjeri", + "Scenariji" + ], + "feature": [ + "Osobina", + "Mogućnost", + "Mogucnost" + ], + "given": [ + "* ", + "Zadan ", + "Zadani ", + "Zadano ", + "Ukoliko " + ], + "name": "Croatian", + "native": "hrvatski", + "rule": [ + "Rule" + ], + "scenario": [ + "Primjer", + "Scenarij" + ], + "scenarioOutline": [ + "Skica", + "Koncept" + ], + "then": [ + "* ", + "Onda " + ], + "when": [ + "* ", + "Kada ", + "Kad " + ] + }, + "ht": { + "and": [ + "* ", + "Ak ", + "Epi ", + "E " + ], + "background": [ + "Kontèks", + "Istorik" + ], + "but": [ + "* ", + "Men " + ], + "examples": [ + "Egzanp" + ], + "feature": [ + "Karakteristik", + "Mak", + "Fonksyonalite" + ], + "given": [ + "* ", + "Sipoze ", + "Sipoze ke ", + "Sipoze Ke " + ], + "name": "Creole", + "native": "kreyòl", + "rule": [ + "Rule" + ], + "scenario": [ + "Senaryo" + ], + "scenarioOutline": [ + "Plan senaryo", + "Plan Senaryo", + "Senaryo deskripsyon", + "Senaryo Deskripsyon", + "Dyagram senaryo", + "Dyagram Senaryo" + ], + "then": [ + "* ", + "Lè sa a ", + "Le sa a " + ], + "when": [ + "* ", + "Lè ", + "Le " + ] + }, + "hu": { + "and": [ + "* ", + "És " + ], + "background": [ + "Háttér" + ], + "but": [ + "* ", + "De " + ], + "examples": [ + "Példák" + ], + "feature": [ + "Jellemző" + ], + "given": [ + "* ", + "Amennyiben ", + "Adott " + ], + "name": "Hungarian", + "native": "magyar", + "rule": [ + "Rule" + ], + "scenario": [ + "Példa", + "Forgatókönyv" + ], + "scenarioOutline": [ + "Forgatókönyv vázlat" + ], + "then": [ + "* ", + "Akkor " + ], + "when": [ + "* ", + "Majd ", + "Ha ", + "Amikor " + ] + }, + "id": { + "and": [ + "* ", + "Dan " + ], + "background": [ + "Dasar", + "Latar Belakang" + ], + "but": [ + "* ", + "Tapi ", + "Tetapi" + ], + "examples": [ + "Contoh", + "Misal" + ], + "feature": [ + "Fitur" + ], + "given": [ + "* ", + "Dengan ", + "Diketahui ", + "Diasumsikan " + ], + "name": "Indonesian", + "native": "Bahasa Indonesia", + "rule": [ + "Rule", + "Aturan" + ], + "scenario": [ + "Skenario" + ], + "scenarioOutline": [ + "Skenario konsep", + "Garis-Besar Skenario" + ], + "then": [ + "* ", + "Maka ", + "Kemudian " + ], + "when": [ + "* ", + "Ketika " + ] + }, + "is": { + "and": [ + "* ", + "Og " + ], + "background": [ + "Bakgrunnur" + ], + "but": [ + "* ", + "En " + ], + "examples": [ + "Dæmi", + "Atburðarásir" + ], + "feature": [ + "Eiginleiki" + ], + "given": [ + "* ", + "Ef " + ], + "name": "Icelandic", + "native": "Íslenska", + "rule": [ + "Rule" + ], + "scenario": [ + "Atburðarás" + ], + "scenarioOutline": [ + "Lýsing Atburðarásar", + "Lýsing Dæma" + ], + "then": [ + "* ", + "Þá " + ], + "when": [ + "* ", + "Þegar " + ] + }, + "it": { + "and": [ + "* ", + "E " + ], + "background": [ + "Contesto" + ], + "but": [ + "* ", + "Ma " + ], + "examples": [ + "Esempi" + ], + "feature": [ + "Funzionalità" + ], + "given": [ + "* ", + "Dato ", + "Data ", + "Dati ", + "Date " + ], + "name": "Italian", + "native": "italiano", + "rule": [ + "Rule" + ], + "scenario": [ + "Esempio", + "Scenario" + ], + "scenarioOutline": [ + "Schema dello scenario" + ], + "then": [ + "* ", + "Allora " + ], + "when": [ + "* ", + "Quando " + ] + }, + "ja": { + "and": [ + "* ", + "かつ" + ], + "background": [ + "背景" + ], + "but": [ + "* ", + "しかし", + "但し", + "ただし" + ], + "examples": [ + "例", + "サンプル" + ], + "feature": [ + "フィーチャ", + "機能" + ], + "given": [ + "* ", + "前提" + ], + "name": "Japanese", + "native": "日本語", + "rule": [ + "Rule" + ], + "scenario": [ + "シナリオ" + ], + "scenarioOutline": [ + "シナリオアウトライン", + "シナリオテンプレート", + "テンプレ", + "シナリオテンプレ" + ], + "then": [ + "* ", + "ならば" + ], + "when": [ + "* ", + "もし" + ] + }, + "jv": { + "and": [ + "* ", + "Lan " + ], + "background": [ + "Dasar" + ], + "but": [ + "* ", + "Tapi ", + "Nanging ", + "Ananging " + ], + "examples": [ + "Conto", + "Contone" + ], + "feature": [ + "Fitur" + ], + "given": [ + "* ", + "Nalika ", + "Nalikaning " + ], + "name": "Javanese", + "native": "Basa Jawa", + "rule": [ + "Rule" + ], + "scenario": [ + "Skenario" + ], + "scenarioOutline": [ + "Konsep skenario" + ], + "then": [ + "* ", + "Njuk ", + "Banjur " + ], + "when": [ + "* ", + "Manawa ", + "Menawa " + ] + }, + "ka": { + "and": [ + "* ", + "და" + ], + "background": [ + "კონტექსტი" + ], + "but": [ + "* ", + "მაგ­რამ" + ], + "examples": [ + "მაგალითები" + ], + "feature": [ + "თვისება" + ], + "given": [ + "* ", + "მოცემული" + ], + "name": "Georgian", + "native": "ქართველი", + "rule": [ + "Rule" + ], + "scenario": [ + "მაგალითად", + "სცენარის" + ], + "scenarioOutline": [ + "სცენარის ნიმუში" + ], + "then": [ + "* ", + "მაშინ" + ], + "when": [ + "* ", + "როდესაც" + ] + }, + "kn": { + "and": [ + "* ", + "ಮತ್ತು " + ], + "background": [ + "ಹಿನ್ನೆಲೆ" + ], + "but": [ + "* ", + "ಆದರೆ " + ], + "examples": [ + "ಉದಾಹರಣೆಗಳು" + ], + "feature": [ + "ಹೆಚ್ಚಳ" + ], + "given": [ + "* ", + "ನೀಡಿದ " + ], + "name": "Kannada", + "native": "ಕನ್ನಡ", + "rule": [ + "Rule" + ], + "scenario": [ + "ಉದಾಹರಣೆ", + "ಕಥಾಸಾರಾಂಶ" + ], + "scenarioOutline": [ + "ವಿವರಣೆ" + ], + "then": [ + "* ", + "ನಂತರ " + ], + "when": [ + "* ", + "ಸ್ಥಿತಿಯನ್ನು " + ] + }, + "ko": { + "and": [ + "* ", + "그리고" + ], + "background": [ + "배경" + ], + "but": [ + "* ", + "하지만", + "단" + ], + "examples": [ + "예" + ], + "feature": [ + "기능" + ], + "given": [ + "* ", + "조건", + "먼저" + ], + "name": "Korean", + "native": "한국어", + "rule": [ + "Rule" + ], + "scenario": [ + "시나리오" + ], + "scenarioOutline": [ + "시나리오 개요" + ], + "then": [ + "* ", + "그러면" + ], + "when": [ + "* ", + "만일", + "만약" + ] + }, + "lt": { + "and": [ + "* ", + "Ir " + ], + "background": [ + "Kontekstas" + ], + "but": [ + "* ", + "Bet " + ], + "examples": [ + "Pavyzdžiai", + "Scenarijai", + "Variantai" + ], + "feature": [ + "Savybė" + ], + "given": [ + "* ", + "Duota " + ], + "name": "Lithuanian", + "native": "lietuvių kalba", + "rule": [ + "Rule" + ], + "scenario": [ + "Pavyzdys", + "Scenarijus" + ], + "scenarioOutline": [ + "Scenarijaus šablonas" + ], + "then": [ + "* ", + "Tada " + ], + "when": [ + "* ", + "Kai " + ] + }, + "lu": { + "and": [ + "* ", + "an ", + "a " + ], + "background": [ + "Hannergrond" + ], + "but": [ + "* ", + "awer ", + "mä " + ], + "examples": [ + "Beispiller" + ], + "feature": [ + "Funktionalitéit" + ], + "given": [ + "* ", + "ugeholl " + ], + "name": "Luxemburgish", + "native": "Lëtzebuergesch", + "rule": [ + "Rule" + ], + "scenario": [ + "Beispill", + "Szenario" + ], + "scenarioOutline": [ + "Plang vum Szenario" + ], + "then": [ + "* ", + "dann " + ], + "when": [ + "* ", + "wann " + ] + }, + "lv": { + "and": [ + "* ", + "Un " + ], + "background": [ + "Konteksts", + "Situācija" + ], + "but": [ + "* ", + "Bet " + ], + "examples": [ + "Piemēri", + "Paraugs" + ], + "feature": [ + "Funkcionalitāte", + "Fīča" + ], + "given": [ + "* ", + "Kad " + ], + "name": "Latvian", + "native": "latviešu", + "rule": [ + "Rule" + ], + "scenario": [ + "Piemērs", + "Scenārijs" + ], + "scenarioOutline": [ + "Scenārijs pēc parauga" + ], + "then": [ + "* ", + "Tad " + ], + "when": [ + "* ", + "Ja " + ] + }, + "mk-Cyrl": { + "and": [ + "* ", + "И " + ], + "background": [ + "Контекст", + "Содржина" + ], + "but": [ + "* ", + "Но " + ], + "examples": [ + "Примери", + "Сценарија" + ], + "feature": [ + "Функционалност", + "Бизнис потреба", + "Можност" + ], + "given": [ + "* ", + "Дадено ", + "Дадена " + ], + "name": "Macedonian", + "native": "Македонски", + "rule": [ + "Rule" + ], + "scenario": [ + "Пример", + "Сценарио", + "На пример" + ], + "scenarioOutline": [ + "Преглед на сценарија", + "Скица", + "Концепт" + ], + "then": [ + "* ", + "Тогаш " + ], + "when": [ + "* ", + "Кога " + ] + }, + "mk-Latn": { + "and": [ + "* ", + "I " + ], + "background": [ + "Kontekst", + "Sodrzhina" + ], + "but": [ + "* ", + "No " + ], + "examples": [ + "Primeri", + "Scenaria" + ], + "feature": [ + "Funkcionalnost", + "Biznis potreba", + "Mozhnost" + ], + "given": [ + "* ", + "Dadeno ", + "Dadena " + ], + "name": "Macedonian (Latin)", + "native": "Makedonski (Latinica)", + "rule": [ + "Rule" + ], + "scenario": [ + "Scenario", + "Na primer" + ], + "scenarioOutline": [ + "Pregled na scenarija", + "Skica", + "Koncept" + ], + "then": [ + "* ", + "Togash " + ], + "when": [ + "* ", + "Koga " + ] + }, + "mn": { + "and": [ + "* ", + "Мөн ", + "Тэгээд " + ], + "background": [ + "Агуулга" + ], + "but": [ + "* ", + "Гэхдээ ", + "Харин " + ], + "examples": [ + "Тухайлбал" + ], + "feature": [ + "Функц", + "Функционал" + ], + "given": [ + "* ", + "Өгөгдсөн нь ", + "Анх " + ], + "name": "Mongolian", + "native": "монгол", + "rule": [ + "Rule" + ], + "scenario": [ + "Сценар" + ], + "scenarioOutline": [ + "Сценарын төлөвлөгөө" + ], + "then": [ + "* ", + "Тэгэхэд ", + "Үүний дараа " + ], + "when": [ + "* ", + "Хэрэв " + ] + }, + "ne": { + "and": [ + "* ", + "र ", + "अनी " + ], + "background": [ + "पृष्ठभूमी" + ], + "but": [ + "* ", + "तर " + ], + "examples": [ + "उदाहरण", + "उदाहरणहरु" + ], + "feature": [ + "सुविधा", + "विशेषता" + ], + "given": [ + "* ", + "दिइएको ", + "दिएको ", + "यदि " + ], + "name": "Nepali", + "native": "नेपाली", + "rule": [ + "नियम" + ], + "scenario": [ + "परिदृश्य" + ], + "scenarioOutline": [ + "परिदृश्य रूपरेखा" + ], + "then": [ + "* ", + "त्यसपछि ", + "अनी " + ], + "when": [ + "* ", + "जब " + ] + }, + "nl": { + "and": [ + "* ", + "En " + ], + "background": [ + "Achtergrond" + ], + "but": [ + "* ", + "Maar " + ], + "examples": [ + "Voorbeelden" + ], + "feature": [ + "Functionaliteit" + ], + "given": [ + "* ", + "Gegeven ", + "Stel " + ], + "name": "Dutch", + "native": "Nederlands", + "rule": [ + "Rule" + ], + "scenario": [ + "Voorbeeld", + "Scenario" + ], + "scenarioOutline": [ + "Abstract Scenario" + ], + "then": [ + "* ", + "Dan " + ], + "when": [ + "* ", + "Als ", + "Wanneer " + ] + }, + "no": { + "and": [ + "* ", + "Og " + ], + "background": [ + "Bakgrunn" + ], + "but": [ + "* ", + "Men " + ], + "examples": [ + "Eksempler" + ], + "feature": [ + "Egenskap" + ], + "given": [ + "* ", + "Gitt " + ], + "name": "Norwegian", + "native": "norsk", + "rule": [ + "Regel" + ], + "scenario": [ + "Eksempel", + "Scenario" + ], + "scenarioOutline": [ + "Scenariomal", + "Abstrakt Scenario" + ], + "then": [ + "* ", + "Så " + ], + "when": [ + "* ", + "Når " + ] + }, + "pa": { + "and": [ + "* ", + "ਅਤੇ " + ], + "background": [ + "ਪਿਛੋਕੜ" + ], + "but": [ + "* ", + "ਪਰ " + ], + "examples": [ + "ਉਦਾਹਰਨਾਂ" + ], + "feature": [ + "ਖਾਸੀਅਤ", + "ਮੁਹਾਂਦਰਾ", + "ਨਕਸ਼ ਨੁਹਾਰ" + ], + "given": [ + "* ", + "ਜੇਕਰ ", + "ਜਿਵੇਂ ਕਿ " + ], + "name": "Panjabi", + "native": "ਪੰਜਾਬੀ", + "rule": [ + "Rule" + ], + "scenario": [ + "ਉਦਾਹਰਨ", + "ਪਟਕਥਾ" + ], + "scenarioOutline": [ + "ਪਟਕਥਾ ਢਾਂਚਾ", + "ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ" + ], + "then": [ + "* ", + "ਤਦ " + ], + "when": [ + "* ", + "ਜਦੋਂ " + ] + }, + "pl": { + "and": [ + "* ", + "Oraz ", + "I " + ], + "background": [ + "Założenia" + ], + "but": [ + "* ", + "Ale " + ], + "examples": [ + "Przykłady" + ], + "feature": [ + "Właściwość", + "Funkcja", + "Aspekt", + "Potrzeba biznesowa" + ], + "given": [ + "* ", + "Zakładając ", + "Mając ", + "Zakładając, że " + ], + "name": "Polish", + "native": "polski", + "rule": [ + "Rule" + ], + "scenario": [ + "Przykład", + "Scenariusz" + ], + "scenarioOutline": [ + "Szablon scenariusza" + ], + "then": [ + "* ", + "Wtedy " + ], + "when": [ + "* ", + "Jeżeli ", + "Jeśli ", + "Gdy ", + "Kiedy " + ] + }, + "pt": { + "and": [ + "* ", + "E " + ], + "background": [ + "Contexto", + "Cenário de Fundo", + "Cenario de Fundo", + "Fundo" + ], + "but": [ + "* ", + "Mas " + ], + "examples": [ + "Exemplos", + "Cenários", + "Cenarios" + ], + "feature": [ + "Funcionalidade", + "Característica", + "Caracteristica" + ], + "given": [ + "* ", + "Dado ", + "Dada ", + "Dados ", + "Dadas " + ], + "name": "Portuguese", + "native": "português", + "rule": [ + "Regra" + ], + "scenario": [ + "Exemplo", + "Cenário", + "Cenario" + ], + "scenarioOutline": [ + "Esquema do Cenário", + "Esquema do Cenario", + "Delineação do Cenário", + "Delineacao do Cenario" + ], + "then": [ + "* ", + "Então ", + "Entao " + ], + "when": [ + "* ", + "Quando " + ] + }, + "ro": { + "and": [ + "* ", + "Si ", + "Și ", + "Şi " + ], + "background": [ + "Context" + ], + "but": [ + "* ", + "Dar " + ], + "examples": [ + "Exemple" + ], + "feature": [ + "Functionalitate", + "Funcționalitate", + "Funcţionalitate" + ], + "given": [ + "* ", + "Date fiind ", + "Dat fiind ", + "Dată fiind", + "Dati fiind ", + "Dați fiind ", + "Daţi fiind " + ], + "name": "Romanian", + "native": "română", + "rule": [ + "Rule" + ], + "scenario": [ + "Exemplu", + "Scenariu" + ], + "scenarioOutline": [ + "Structura scenariu", + "Structură scenariu" + ], + "then": [ + "* ", + "Atunci " + ], + "when": [ + "* ", + "Cand ", + "Când " + ] + }, + "ru": { + "and": [ + "* ", + "И ", + "К тому же ", + "Также " + ], + "background": [ + "Предыстория", + "Контекст" + ], + "but": [ + "* ", + "Но ", + "А ", + "Иначе " + ], + "examples": [ + "Примеры" + ], + "feature": [ + "Функция", + "Функциональность", + "Функционал", + "Свойство" + ], + "given": [ + "* ", + "Допустим ", + "Дано ", + "Пусть " + ], + "name": "Russian", + "native": "русский", + "rule": [ + "Rule" + ], + "scenario": [ + "Пример", + "Сценарий" + ], + "scenarioOutline": [ + "Структура сценария" + ], + "then": [ + "* ", + "То ", + "Затем ", + "Тогда " + ], + "when": [ + "* ", + "Когда ", + "Если " + ] + }, + "sk": { + "and": [ + "* ", + "A ", + "A tiež ", + "A taktiež ", + "A zároveň " + ], + "background": [ + "Pozadie" + ], + "but": [ + "* ", + "Ale " + ], + "examples": [ + "Príklady" + ], + "feature": [ + "Požiadavka", + "Funkcia", + "Vlastnosť" + ], + "given": [ + "* ", + "Pokiaľ ", + "Za predpokladu " + ], + "name": "Slovak", + "native": "Slovensky", + "rule": [ + "Rule" + ], + "scenario": [ + "Príklad", + "Scenár" + ], + "scenarioOutline": [ + "Náčrt Scenáru", + "Náčrt Scenára", + "Osnova Scenára" + ], + "then": [ + "* ", + "Tak ", + "Potom " + ], + "when": [ + "* ", + "Keď ", + "Ak " + ] + }, + "sl": { + "and": [ + "In ", + "Ter " + ], + "background": [ + "Kontekst", + "Osnova", + "Ozadje" + ], + "but": [ + "Toda ", + "Ampak ", + "Vendar " + ], + "examples": [ + "Primeri", + "Scenariji" + ], + "feature": [ + "Funkcionalnost", + "Funkcija", + "Možnosti", + "Moznosti", + "Lastnost", + "Značilnost" + ], + "given": [ + "Dano ", + "Podano ", + "Zaradi ", + "Privzeto " + ], + "name": "Slovenian", + "native": "Slovenski", + "rule": [ + "Rule" + ], + "scenario": [ + "Primer", + "Scenarij" + ], + "scenarioOutline": [ + "Struktura scenarija", + "Skica", + "Koncept", + "Oris scenarija", + "Osnutek" + ], + "then": [ + "Nato ", + "Potem ", + "Takrat " + ], + "when": [ + "Ko ", + "Ce ", + "Če ", + "Kadar " + ] + }, + "sr-Cyrl": { + "and": [ + "* ", + "И " + ], + "background": [ + "Контекст", + "Основа", + "Позадина" + ], + "but": [ + "* ", + "Али " + ], + "examples": [ + "Примери", + "Сценарији" + ], + "feature": [ + "Функционалност", + "Могућност", + "Особина" + ], + "given": [ + "* ", + "За дато ", + "За дате ", + "За дати " + ], + "name": "Serbian", + "native": "Српски", + "rule": [ + "Rule" + ], + "scenario": [ + "Пример", + "Сценарио", + "Пример" + ], + "scenarioOutline": [ + "Структура сценарија", + "Скица", + "Концепт" + ], + "then": [ + "* ", + "Онда " + ], + "when": [ + "* ", + "Када ", + "Кад " + ] + }, + "sr-Latn": { + "and": [ + "* ", + "I " + ], + "background": [ + "Kontekst", + "Osnova", + "Pozadina" + ], + "but": [ + "* ", + "Ali " + ], + "examples": [ + "Primeri", + "Scenariji" + ], + "feature": [ + "Funkcionalnost", + "Mogućnost", + "Mogucnost", + "Osobina" + ], + "given": [ + "* ", + "Za dato ", + "Za date ", + "Za dati " + ], + "name": "Serbian (Latin)", + "native": "Srpski (Latinica)", + "rule": [ + "Rule" + ], + "scenario": [ + "Scenario", + "Primer" + ], + "scenarioOutline": [ + "Struktura scenarija", + "Skica", + "Koncept" + ], + "then": [ + "* ", + "Onda " + ], + "when": [ + "* ", + "Kada ", + "Kad " + ] + }, + "sv": { + "and": [ + "* ", + "Och " + ], + "background": [ + "Bakgrund" + ], + "but": [ + "* ", + "Men " + ], + "examples": [ + "Exempel" + ], + "feature": [ + "Egenskap" + ], + "given": [ + "* ", + "Givet " + ], + "name": "Swedish", + "native": "Svenska", + "rule": [ + "Rule" + ], + "scenario": [ + "Scenario" + ], + "scenarioOutline": [ + "Abstrakt Scenario", + "Scenariomall" + ], + "then": [ + "* ", + "Så " + ], + "when": [ + "* ", + "När " + ] + }, + "ta": { + "and": [ + "* ", + "மேலும் ", + "மற்றும் " + ], + "background": [ + "பின்னணி" + ], + "but": [ + "* ", + "ஆனால் " + ], + "examples": [ + "எடுத்துக்காட்டுகள்", + "காட்சிகள்", + "நிலைமைகளில்" + ], + "feature": [ + "அம்சம்", + "வணிக தேவை", + "திறன்" + ], + "given": [ + "* ", + "கொடுக்கப்பட்ட " + ], + "name": "Tamil", + "native": "தமிழ்", + "rule": [ + "Rule" + ], + "scenario": [ + "உதாரணமாக", + "காட்சி" + ], + "scenarioOutline": [ + "காட்சி சுருக்கம்", + "காட்சி வார்ப்புரு" + ], + "then": [ + "* ", + "அப்பொழுது " + ], + "when": [ + "* ", + "எப்போது " + ] + }, + "th": { + "and": [ + "* ", + "และ " + ], + "background": [ + "แนวคิด" + ], + "but": [ + "* ", + "แต่ " + ], + "examples": [ + "ชุดของตัวอย่าง", + "ชุดของเหตุการณ์" + ], + "feature": [ + "โครงหลัก", + "ความต้องการทางธุรกิจ", + "ความสามารถ" + ], + "given": [ + "* ", + "กำหนดให้ " + ], + "name": "Thai", + "native": "ไทย", + "rule": [ + "Rule" + ], + "scenario": [ + "เหตุการณ์" + ], + "scenarioOutline": [ + "สรุปเหตุการณ์", + "โครงสร้างของเหตุการณ์" + ], + "then": [ + "* ", + "ดังนั้น " + ], + "when": [ + "* ", + "เมื่อ " + ] + }, + "tl": { + "and": [ + "* ", + "మరియు " + ], + "background": [ + "నేపథ్యం" + ], + "but": [ + "* ", + "కాని " + ], + "examples": [ + "ఉదాహరణలు" + ], + "feature": [ + "గుణము" + ], + "given": [ + "* ", + "చెప్పబడినది " + ], + "name": "Telugu", + "native": "తెలుగు", + "rule": [ + "Rule" + ], + "scenario": [ + "ఉదాహరణ", + "సన్నివేశం" + ], + "scenarioOutline": [ + "కథనం" + ], + "then": [ + "* ", + "అప్పుడు " + ], + "when": [ + "* ", + "ఈ పరిస్థితిలో " + ] + }, + "tlh": { + "and": [ + "* ", + "'ej ", + "latlh " + ], + "background": [ + "mo'" + ], + "but": [ + "* ", + "'ach ", + "'a " + ], + "examples": [ + "ghantoH", + "lutmey" + ], + "feature": [ + "Qap", + "Qu'meH 'ut", + "perbogh", + "poQbogh malja'", + "laH" + ], + "given": [ + "* ", + "ghu' noblu' ", + "DaH ghu' bejlu' " + ], + "name": "Klingon", + "native": "tlhIngan", + "rule": [ + "Rule" + ], + "scenario": [ + "lut" + ], + "scenarioOutline": [ + "lut chovnatlh" + ], + "then": [ + "* ", + "vaj " + ], + "when": [ + "* ", + "qaSDI' " + ] + }, + "tr": { + "and": [ + "* ", + "Ve " + ], + "background": [ + "Geçmiş" + ], + "but": [ + "* ", + "Fakat ", + "Ama " + ], + "examples": [ + "Örnekler" + ], + "feature": [ + "Özellik" + ], + "given": [ + "* ", + "Diyelim ki " + ], + "name": "Turkish", + "native": "Türkçe", + "rule": [ + "Rule" + ], + "scenario": [ + "Örnek", + "Senaryo" + ], + "scenarioOutline": [ + "Senaryo taslağı" + ], + "then": [ + "* ", + "O zaman " + ], + "when": [ + "* ", + "Eğer ki " + ] + }, + "tt": { + "and": [ + "* ", + "Һәм ", + "Вә " + ], + "background": [ + "Кереш" + ], + "but": [ + "* ", + "Ләкин ", + "Әмма " + ], + "examples": [ + "Үрнәкләр", + "Мисаллар" + ], + "feature": [ + "Мөмкинлек", + "Үзенчәлеклелек" + ], + "given": [ + "* ", + "Әйтик " + ], + "name": "Tatar", + "native": "Татарча", + "rule": [ + "Rule" + ], + "scenario": [ + "Сценарий" + ], + "scenarioOutline": [ + "Сценарийның төзелеше" + ], + "then": [ + "* ", + "Нәтиҗәдә " + ], + "when": [ + "* ", + "Әгәр " + ] + }, + "uk": { + "and": [ + "* ", + "І ", + "А також ", + "Та " + ], + "background": [ + "Передумова" + ], + "but": [ + "* ", + "Але " + ], + "examples": [ + "Приклади" + ], + "feature": [ + "Функціонал" + ], + "given": [ + "* ", + "Припустимо ", + "Припустимо, що ", + "Нехай ", + "Дано " + ], + "name": "Ukrainian", + "native": "Українська", + "rule": [ + "Rule" + ], + "scenario": [ + "Приклад", + "Сценарій" + ], + "scenarioOutline": [ + "Структура сценарію" + ], + "then": [ + "* ", + "То ", + "Тоді " + ], + "when": [ + "* ", + "Якщо ", + "Коли " + ] + }, + "ur": { + "and": [ + "* ", + "اور " + ], + "background": [ + "پس منظر" + ], + "but": [ + "* ", + "لیکن " + ], + "examples": [ + "مثالیں" + ], + "feature": [ + "صلاحیت", + "کاروبار کی ضرورت", + "خصوصیت" + ], + "given": [ + "* ", + "اگر ", + "بالفرض ", + "فرض کیا " + ], + "name": "Urdu", + "native": "اردو", + "rule": [ + "Rule" + ], + "scenario": [ + "منظرنامہ" + ], + "scenarioOutline": [ + "منظر نامے کا خاکہ" + ], + "then": [ + "* ", + "پھر ", + "تب " + ], + "when": [ + "* ", + "جب " + ] + }, + "uz": { + "and": [ + "* ", + "Ва " + ], + "background": [ + "Тарих" + ], + "but": [ + "* ", + "Лекин ", + "Бирок ", + "Аммо " + ], + "examples": [ + "Мисоллар" + ], + "feature": [ + "Функционал" + ], + "given": [ + "* ", + "Агар " + ], + "name": "Uzbek", + "native": "Узбекча", + "rule": [ + "Rule" + ], + "scenario": [ + "Сценарий" + ], + "scenarioOutline": [ + "Сценарий структураси" + ], + "then": [ + "* ", + "Унда " + ], + "when": [ + "* ", + "Агар " + ] + }, + "vi": { + "and": [ + "* ", + "Và " + ], + "background": [ + "Bối cảnh" + ], + "but": [ + "* ", + "Nhưng " + ], + "examples": [ + "Dữ liệu" + ], + "feature": [ + "Tính năng" + ], + "given": [ + "* ", + "Biết ", + "Cho " + ], + "name": "Vietnamese", + "native": "Tiếng Việt", + "rule": [ + "Rule" + ], + "scenario": [ + "Tình huống", + "Kịch bản" + ], + "scenarioOutline": [ + "Khung tình huống", + "Khung kịch bản" + ], + "then": [ + "* ", + "Thì " + ], + "when": [ + "* ", + "Khi " + ] + }, + "zh-CN": { + "and": [ + "* ", + "而且", + "并且", + "同时" + ], + "background": [ + "背景" + ], + "but": [ + "* ", + "但是" + ], + "examples": [ + "例子" + ], + "feature": [ + "功能" + ], + "given": [ + "* ", + "假如", + "假设", + "假定" + ], + "name": "Chinese simplified", + "native": "简体中文", + "rule": [ + "Rule" + ], + "scenario": [ + "场景", + "剧本" + ], + "scenarioOutline": [ + "场景大纲", + "剧本大纲" + ], + "then": [ + "* ", + "那么" + ], + "when": [ + "* ", + "当" + ] + }, + "zh-TW": { + "and": [ + "* ", + "而且", + "並且", + "同時" + ], + "background": [ + "背景" + ], + "but": [ + "* ", + "但是" + ], + "examples": [ + "例子" + ], + "feature": [ + "功能" + ], + "given": [ + "* ", + "假如", + "假設", + "假定" + ], + "name": "Chinese traditional", + "native": "繁體中文", + "rule": [ + "Rule" + ], + "scenario": [ + "場景", + "劇本" + ], + "scenarioOutline": [ + "場景大綱", + "劇本大綱" + ], + "then": [ + "* ", + "那麼" + ], + "when": [ + "* ", + "當" + ] + }, + "mr": { + "and": [ + "* ", + "आणि ", + "तसेच " + ], + "background": [ + "पार्श्वभूमी" + ], + "but": [ + "* ", + "पण ", + "परंतु " + ], + "examples": [ + "उदाहरण" + ], + "feature": [ + "वैशिष्ट्य", + "सुविधा" + ], + "given": [ + "* ", + "जर", + "दिलेल्या प्रमाणे " + ], + "name": "Marathi", + "native": "मराठी", + "rule": [ + "नियम" + ], + "scenario": [ + "परिदृश्य" + ], + "scenarioOutline": [ + "परिदृश्य रूपरेखा" + ], + "then": [ + "* ", + "मग ", + "तेव्हा " + ], + "when": [ + "* ", + "जेव्हा " + ] + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/legacy/Gherkin.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/legacy/Gherkin.dll new file mode 100644 index 000000000000..b6fd6043ab35 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/legacy/Gherkin.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/legacy/Newtonsoft.Json.dll b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/legacy/Newtonsoft.Json.dll new file mode 100644 index 000000000000..1ee3de7de652 Binary files /dev/null and b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/lib/Gherkin/legacy/Newtonsoft.Json.dll differ diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/nunit_schema_2.5.xsd b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/nunit_schema_2.5.xsd new file mode 100644 index 000000000000..a616bb3663fd --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/modules/Pester/4.10.1/nunit_schema_2.5.xsd @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs b/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs index 0531c40a54a6..1d60cdb3a933 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs @@ -21,7 +21,7 @@ public class ExportFormatPs1xml : PSCmdlet private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models"; private const string SupportNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support"; - private const string PropertiesExcludedForTableview = @"Id,Type"; + private const string PropertiesExcludedForTableview = @""; private static readonly bool IsAzure = Convert.ToBoolean(@"true"); diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 76838eaad3ec..d6ac52ca371b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -77,17 +77,9 @@ protected override void ProcessRecord() license.Append(@" # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the ""License""); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an ""AS IS"" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- "); HashSet LicenseSet = new HashSet(); diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index a7b98268b217..a7917ba370ba 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); } - string version = Convert.ToString(@"0.2.1"); + string version = Convert.ToString(@"0.2.9"); // Validate the module version should be semantic version // Following regex is official from https://semver.org/ Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); diff --git a/src/DnsResolver/DnsResolver.Autorest/license.txt b/src/DnsResolver/DnsResolver.Autorest/license.txt new file mode 100644 index 000000000000..b9f3180fb9af --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/license.txt @@ -0,0 +1,227 @@ +MICROSOFT SOFTWARE LICENSE TERMS + +MICROSOFT AZURE POWERSHELL + +These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. + +BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. + + +-----------------START OF LICENSE-------------------------- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +-------------------END OF LICENSE------------------------------------------ + + +----------------START OF THIRD PARTY NOTICE-------------------------------- + + +The software includes the AutoMapper library ("AutoMapper"). The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software. + +Provided for Informational Purposes Only + +AutoMapper + +The MIT License (MIT) +Copyright (c) 2010 Jimmy Bogard + + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + + + + +*************** + +The software includes Newtonsoft.Json. The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software. + +Newtonsoft.Json + +The MIT License (MIT) +Copyright (c) 2007 James Newton-King +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +-------------END OF THIRD PARTY NOTICE---------------------------------------- + diff --git a/src/DnsResolver/DnsResolver.Autorest/pack-module.ps1 b/src/DnsResolver/DnsResolver.Autorest/pack-module.ps1 index 2f30ca3fffa0..8ed48957e579 100644 --- a/src/DnsResolver/DnsResolver.Autorest/pack-module.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/pack-module.ps1 @@ -1,16 +1,8 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- Write-Host -ForegroundColor Green 'Packing module...' dotnet pack $PSScriptRoot --no-build /nologo diff --git a/src/DnsResolver/DnsResolver.Autorest/resources/README.md b/src/DnsResolver/DnsResolver.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/run-module.ps1 b/src/DnsResolver/DnsResolver.Autorest/run-module.ps1 index 2cbed03f24c4..716c8127c1e7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/run-module.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/run-module.ps1 @@ -1,16 +1,8 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- param([switch]$Isolated, [switch]$Code) $ErrorActionPreference = 'Stop' diff --git a/src/DnsResolver/DnsResolver.Autorest/test-module.ps1 b/src/DnsResolver/DnsResolver.Autorest/test-module.ps1 index c81c0dc7f0ae..aee28d8737b7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test-module.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/test-module.ps1 @@ -1,16 +1,8 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- param([switch]$Isolated, [switch]$Live, [switch]$Record, [switch]$Playback, [switch]$RegenerateSupportModule, [switch]$UsePreviousConfigForRecord, [string[]]$TestName) $ErrorActionPreference = 'Stop' diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Constants.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Constants.ps1 index 57c35dc50f84..608de637c54d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Constants.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/test/Constants.ps1 @@ -1,5 +1,5 @@ $NRP_SIMULATOR_URI = "https://eastus2.test.azuremresolver.net:9002" -$LOCATION = "eastus2" -$SUBSCRIPTION_ID = "0e5a46b1-de0b-4ec3-a5d7-dda908b4e076" +$LOCATION = "westus2" +$SUBSCRIPTION_ID = "abdd4249-9f34-4cc6-8e42-c2e32110603e" $RESOURCE_GROUP_NAME = "rg-dev-eastus2-sdk-powershell" $SUBNET_NAME = "snet-sim2" \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Recording.json new file mode 100644 index 000000000000..ceed4cd893bf --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Recording.json @@ -0,0 +1,511 @@ +{ + "Get-AzDnsResolverDomainList+[NoContext]+Get single DNS resolver domain list by name, expect DNS resolver domain list by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImZlZTU0NjI2LWM5MjUtNGI4OS05MWI3LTg0ODc5NTU4ZjQ4MiJ9?api-version=2023-07-01-preview\u0026t=638648055797881568\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb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K2YtHUpGtlgNbn9AfCMvzv5lWFe3IDlbD1JTsuS4WVD493JPIli9zbxgB4A33BhN5DNdv2bRKJJnBS9iFYezt_pWWMY4SqHTH_8eYkrLiHt5p0miqYaTTpQtiiulF0M_sChA6BHHYND81or0x7PW66u3eqgPCp4fVGJ_1vCY3y0YKGNmoEZrgfEw\u0026h=srYaG_JPiNckx9gJJPeG6hs_-oV8kMxQmqtmkk2gMjc" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "e7c186e6-6406-4399-b043-7b403519b1d1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImZlZTU0NjI2LWM5MjUtNGI4OS05MWI3LTg0ODc5NTU4ZjQ4MiJ9?api-version=2023-07-01-preview\u0026t=638648055797725344\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4W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0026s=0AFJlM6xhosBZyEkssTMB7i5UjL6b_UjSI_ZDYDl3aBk8gSfpGanj0eKCyW_T9R8UEF-B0vrkBCtxm2xYK1fSA7lqamNqjmP10G_8nmA1VTkZLNh5eGlSjo-0jpyMRA944P-w0oLHDjsiiPKXB1SX5qPSYScZnAMnc9JVhsscSMhIa2AaDXIZd9JO4R25EaOTtHlKaP1Vo7IzzLTXpchrZgo0gch2BYcOXPGU6YCMDb9EyDwkvwP0h9jfypT05xLzt0frBbsduOgeuAGybU709FOZLiynPBdTiOdV-tE2ltP2WIXsOiCNbhw_tRwKz7mWnoT4LcW1eCU7fDYk2J4Rg\u0026h=URMUkIqwSYo8Xgo4nROrk8MMPFM_t5oGfW13CCkzwO4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "e7c186e6-6406-4399-b043-7b403519b1d1" ], + "x-ms-correlation-request-id": [ "e7c186e6-6406-4399-b043-7b403519b1d1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234619Z:e7c186e6-6406-4399-b043-7b403519b1d1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F1A439DB112541D1BA6F3C97DA15FEDA Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:18Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "610" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"16004d2e-0000-0200-0000-6711a1cb0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62\",\"name\":\"psdnsresolverdomainlistname62\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:23.8496689Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:19.3662829Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+Get single DNS resolver domain list by name, expect DNS resolver domain list by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImZlZTU0NjI2LWM5MjUtNGI4OS05MWI3LTg0ODc5NTU4ZjQ4MiJ9?api-version=2023-07-01-preview\u0026t=638648055797725344\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJ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jSI_ZDYDl3aBk8gSfpGanj0eKCyW_T9R8UEF-B0vrkBCtxm2xYK1fSA7lqamNqjmP10G_8nmA1VTkZLNh5eGlSjo-0jpyMRA944P-w0oLHDjsiiPKXB1SX5qPSYScZnAMnc9JVhsscSMhIa2AaDXIZd9JO4R25EaOTtHlKaP1Vo7IzzLTXpchrZgo0gch2BYcOXPGU6YCMDb9EyDwkvwP0h9jfypT05xLzt0frBbsduOgeuAGybU709FOZLiynPBdTiOdV-tE2ltP2WIXsOiCNbhw_tRwKz7mWnoT4LcW1eCU7fDYk2J4Rg\u0026h=URMUkIqwSYo8Xgo4nROrk8MMPFM_t5oGfW13CCkzwO4+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImZlZTU0NjI2LWM5MjUtNGI4OS05MWI3LTg0ODc5NTU4ZjQ4MiJ9?api-version=2023-07-01-preview\u0026t=638648055797725344\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsX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Q6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=0AFJlM6xhosBZyEkssTMB7i5UjL6b_UjSI_ZDYDl3aBk8gSfpGanj0eKCyW_T9R8UEF-B0vrkBCtxm2xYK1fSA7lqamNqjmP10G_8nmA1VTkZLNh5eGlSjo-0jpyMRA944P-w0oLHDjsiiPKXB1SX5qPSYScZnAMnc9JVhsscSMhIa2AaDXIZd9JO4R25EaOTtHlKaP1Vo7IzzLTXpchrZgo0gch2BYcOXPGU6YCMDb9EyDwkvwP0h9jfypT05xLzt0frBbsduOgeuAGybU709FOZLiynPBdTiOdV-tE2ltP2WIXsOiCNbhw_tRwKz7mWnoT4LcW1eCU7fDYk2J4Rg\u0026h=URMUkIqwSYo8Xgo4nROrk8MMPFM_t5oGfW13CCkzwO4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "df8ada41-5272-4559-bfc7-5689a7c74c7e" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "88a13cfb-053b-44ac-a031-ac9502dfe54e" ], + "x-ms-correlation-request-id": [ "88a13cfb-053b-44ac-a031-ac9502dfe54e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234626Z:88a13cfb-053b-44ac-a031-ac9502dfe54e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2491058DC1A3434096008867B6D36956 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:24Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+Get single DNS resolver domain list by name, expect DNS resolver domain list by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "df8ada41-5272-4559-bfc7-5689a7c74c7e" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "96d3d3cb-819b-4517-af85-8701e9b8b942" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "96d3d3cb-819b-4517-af85-8701e9b8b942" ], + "x-ms-correlation-request-id": [ "96d3d3cb-819b-4517-af85-8701e9b8b942" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234627Z:96d3d3cb-819b-4517-af85-8701e9b8b942" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8F43C473670E4CD7A9098262DE29D8EA Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:26Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "645" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"99b97664-e19c-4c40-9fe5-b6f6e9a47d76\"},\"etag\":\"\\\"0a009e90-0000-0200-0000-6711a1cd0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62\",\"name\":\"psdnsresolverdomainlistname62\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:23.8496689Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:19.3662829Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+Get single DNS resolver domain list by name, expect DNS resolver domain list by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "4adeab5f-ebcd-4666-88e3-b6da8f8bf6c2" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "10d8e56b-a4c7-405e-9847-2bd6504d0140" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "10d8e56b-a4c7-405e-9847-2bd6504d0140" ], + "x-ms-correlation-request-id": [ "10d8e56b-a4c7-405e-9847-2bd6504d0140" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234627Z:10d8e56b-a4c7-405e-9847-2bd6504d0140" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 783FC8311DAF44708CD434D2B21EA065 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:27Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "645" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"99b97664-e19c-4c40-9fe5-b6f6e9a47d76\"},\"etag\":\"\\\"0a009e90-0000-0200-0000-6711a1cd0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62\",\"name\":\"psdnsresolverdomainlistname62\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:23.8496689Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:19.3662829Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a resource group, expected least number of DNS resolver domain lists retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRp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-0505-4998-8df2-6157972b3575" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjRiNGQ2MjVjLWVmYzctNDVmMy05MWViLWM2M2E1MmMyZjZiZiJ9?api-version=2023-07-01-preview\u0026t=638648055887502433\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAw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A_xuDzayDgagMbGulTBiB_SV6rjkYk4QGTvdYxeVrxj-u3Mdzmcp5eB__HIW3LzlZxr0YY0e2Ujw\u0026h=uKZS7vg53eNxl6gDic59oMnaur1srYAp79avnrL3q78" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "bea3edb6-0505-4998-8df2-6157972b3575" ], + "x-ms-correlation-request-id": [ "bea3edb6-0505-4998-8df2-6157972b3575" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234628Z:bea3edb6-0505-4998-8df2-6157972b3575" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EC00A8B1CD004E3C96E10C6D0DDE057A Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:27Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "609" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"1600642e-0000-0200-0000-6711a1d40000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63\",\"name\":\"psdnsresolverdomainlistname63\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:32.977272Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:28.3439921Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a resource group, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjRiNGQ2MjVjLWVmYzctNDVmMy05MWViLWM2M2E1MmMyZjZiZiJ9?api-version=2023-07-01-preview\u0026t=638648055887502433\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCN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eVrxj-u3Mdzmcp5eB__HIW3LzlZxr0YY0e2Ujw\u0026h=uKZS7vg53eNxl6gDic59oMnaur1srYAp79avnrL3q78+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjRiNGQ2MjVjLWVmYzctNDVmMy05MWViLWM2M2E1MmMyZjZiZiJ9?api-version=2023-07-01-preview\u0026t=638648055887502433\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsT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u_KbXLdN7L2fiHCNj5OjTrftZRxu_-S-5PVXlFBooWAnfh2kUKlG1WdGjOsJDO6OwfRB6WEjCA_xuDzayDgagMbGulTBiB_SV6rjkYk4QGTvdYxeVrxj-u3Mdzmcp5eB__HIW3LzlZxr0YY0e2Ujw\u0026h=uKZS7vg53eNxl6gDic59oMnaur1srYAp79avnrL3q78", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "984f4335-e07d-4656-b1bf-45fe0fec4dff" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "74afd045-4a24-4a71-ad5b-ce37cf220fa7" ], + "x-ms-correlation-request-id": [ "74afd045-4a24-4a71-ad5b-ce37cf220fa7" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234635Z:74afd045-4a24-4a71-ad5b-ce37cf220fa7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B879A053335F435894ED946F19F0603D Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:33Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a resource group, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "984f4335-e07d-4656-b1bf-45fe0fec4dff" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "2d1f4535-96eb-4f37-aa75-8539472cb4c3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "2d1f4535-96eb-4f37-aa75-8539472cb4c3" ], + "x-ms-correlation-request-id": [ "2d1f4535-96eb-4f37-aa75-8539472cb4c3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234635Z:2d1f4535-96eb-4f37-aa75-8539472cb4c3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: DE171B06F430418E8FFB5B1A2D716531 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:35Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "644" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bb3f7362-f238-43ac-9c1c-dff4966845a4\"},\"etag\":\"\\\"520397d8-0000-0200-0000-6711a1d70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63\",\"name\":\"psdnsresolverdomainlistname63\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:32.977272Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:28.3439921Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a resource group, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "61311e91-c4e7-4059-b897-48050776c98f" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f5f60975-cf69-48e4-abcd-46fb7c7d57e9" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "59997" ], + "x-ms-request-id": [ "f5f60975-cf69-48e4-abcd-46fb7c7d57e9" ], + "x-ms-correlation-request-id": [ "f5f60975-cf69-48e4-abcd-46fb7c7d57e9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234637Z:f5f60975-cf69-48e4-abcd-46fb7c7d57e9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 764A9199041B4042BCDB40B2020E7E57 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:36Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1948" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"99b97664-e19c-4c40-9fe5-b6f6e9a47d76\"},\"etag\":\"\\\"0a009e90-0000-0200-0000-6711a1cd0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62\",\"name\":\"psdnsresolverdomainlistname62\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:23.8496689Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:19.3662829Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bb3f7362-f238-43ac-9c1c-dff4966845a4\"},\"etag\":\"\\\"520397d8-0000-0200-0000-6711a1d70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63\",\"name\":\"psdnsresolverdomainlistname63\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:32.977272Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:28.3439921Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5c1c4f78-c535-40d8-99c0-518e4db7a377\"},\"etag\":\"\\\"520372ce-0000-0200-0000-6711a16d0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64\",\"name\":\"psdnsresolverdomainlistname64\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:42.7165814Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:44:42.7165814Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a subscription, expected least number of DNS resolver domain lists retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjZlZWZkZjg3LWUxY2ItNDFiZi1iZWRkLTA3M2Q1NDc1MDkxOCJ9?api-version=2023-07-01-preview\u0026t=638648055983117143\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQ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oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=sUfmlyAFlz0zM-Omo6g2OUTfnM1cDz9kXc2dw7dpu-T6EFDHraEE64rXiWTm2i0yRlp_5Mfrz33WitvlHR6eNydyutvYAeQUfm1YuRpR0S7FNyalG_XDyp00gqcL19Z1DP3CZqIvpL6H3QGi46qoHaJMhj8c9m4PTZL0K-s_tWUHm0twjvNCOUlUjWbvgafNC4QsjIw5e9no2jixPmtgl7pz6Jjnr-jiN5U8-FS2Fm5gNEi0YqYZ-ziwI3MQ_IZV01GEU-0MgP5bvdXgPalY_Ntmjj_d45YH2stVFO2zfHlS8E5SCSEXXPmIkHmTHWSwniTkddXTwEzozkDy6QAykA\u0026h=wx6-RfQ_CzxeBu_B778uRuuRm09lUt0e2ZaRqr23D88" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "b6aeefeb-6584-4601-a56f-de05ef1656dc" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjZlZWZkZjg3LWUxY2ItNDFiZi1iZWRkLTA3M2Q1NDc1MDkxOCJ9?api-version=2023-07-01-preview\u0026t=638648055982960901\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkE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zSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=30_wpfgiPnMZXRuypLWLNk8taTjA6oww81Hy_u26hjvGsVCg79yhhrsUJujz4Atll3qv0XWTB38yx0ZIAiWB5qKx08jrAFZHRAwsKnMlkKcUyuvo1mYhCkSEyx_1lvm_HOKgyTBvobp-YkUb8kRduIPU30y3nIdJhD9G42DRa49q0l_0UrA159SHrPl9tqspimxqV-mEAOOibA_-HbU1Fgq3lcqCxQpFUagOjhyIqBOeA3NPJgvApdZNzq5i9TXXnqa8Z2WzaD2g8OfwTwFpCHjb6i-DaQWVuSXEigpm6yTkiqkua43c6fMvTcdx4C-kRER0c9Wqy2L4u6sEO6tn7Q\u0026h=hTR2Ikx5rP6eVQXk0EqsiFToNS4hyz0qG_l61C18dlU" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "b6aeefeb-6584-4601-a56f-de05ef1656dc" ], + "x-ms-correlation-request-id": [ "b6aeefeb-6584-4601-a56f-de05ef1656dc" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234638Z:b6aeefeb-6584-4601-a56f-de05ef1656dc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 48902A9BF44A407EA3FF793F7690B1D2 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:37Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "609" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"1600742e-0000-0200-0000-6711a1de0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64\",\"name\":\"psdnsresolverdomainlistname64\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:42.7165814Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:37.796073Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a subscription, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjZlZWZkZjg3LWUxY2ItNDFiZi1iZWRkLTA3M2Q1NDc1MDkxOCJ9?api-version=2023-07-01-preview\u0026t=638648055982960901\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIx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y235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=30_wpfgiPnMZXRuypLWLNk8taTjA6oww81Hy_u26hjvGsVCg79yhhrsUJujz4Atll3qv0XWTB38yx0ZIAiWB5qKx08jrAFZHRAwsKnMlkKcUyuvo1mYhCkSEyx_1lvm_HOKgyTBvobp-YkUb8kRduIPU30y3nIdJhD9G42DRa49q0l_0UrA159SHrPl9tqspimxqV-mEAOOibA_-HbU1Fgq3lcqCxQpFUagOjhyIqBOeA3NPJgvApdZNzq5i9TXXnqa8Z2WzaD2g8OfwTwFpCHjb6i-DaQWVuSXEigpm6yTkiqkua43c6fMvTcdx4C-kRER0c9Wqy2L4u6sEO6tn7Q\u0026h=hTR2Ikx5rP6eVQXk0EqsiFToNS4hyz0qG_l61C18dlU+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjZlZWZkZjg3LWUxY2ItNDFiZi1iZWRkLTA3M2Q1NDc1MDkxOCJ9?api-version=2023-07-01-preview\u0026t=638648055982960901\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYK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YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=30_wpfgiPnMZXRuypLWLNk8taTjA6oww81Hy_u26hjvGsVCg79yhhrsUJujz4Atll3qv0XWTB38yx0ZIAiWB5qKx08jrAFZHRAwsKnMlkKcUyuvo1mYhCkSEyx_1lvm_HOKgyTBvobp-YkUb8kRduIPU30y3nIdJhD9G42DRa49q0l_0UrA159SHrPl9tqspimxqV-mEAOOibA_-HbU1Fgq3lcqCxQpFUagOjhyIqBOeA3NPJgvApdZNzq5i9TXXnqa8Z2WzaD2g8OfwTwFpCHjb6i-DaQWVuSXEigpm6yTkiqkua43c6fMvTcdx4C-kRER0c9Wqy2L4u6sEO6tn7Q\u0026h=hTR2Ikx5rP6eVQXk0EqsiFToNS4hyz0qG_l61C18dlU", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "a9f5679b-fa6b-44e5-a83e-ae0a1867f178" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "3c7f7c43-93e9-4ef6-82d1-abfd84875900" ], + "x-ms-correlation-request-id": [ "3c7f7c43-93e9-4ef6-82d1-abfd84875900" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234644Z:3c7f7c43-93e9-4ef6-82d1-abfd84875900" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 959EB2E280E44BD6994F7C87C945A695 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:43Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a subscription, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "a9f5679b-fa6b-44e5-a83e-ae0a1867f178" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "5abed4e1-e58b-4d68-b1ed-b0e30446671f" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "5abed4e1-e58b-4d68-b1ed-b0e30446671f" ], + "x-ms-correlation-request-id": [ "5abed4e1-e58b-4d68-b1ed-b0e30446671f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234645Z:5abed4e1-e58b-4d68-b1ed-b0e30446671f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6B1E338D968844809437D7F0E2DF5562 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:44Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "644" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5c1c4f78-c535-40d8-99c0-518e4db7a377\"},\"etag\":\"\\\"5203e2d9-0000-0200-0000-6711a1e10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64\",\"name\":\"psdnsresolverdomainlistname64\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:42.7165814Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:37.796073Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a subscription, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/providers/Microsoft.Network/dnsResolverDomainLists?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/providers/Microsoft.Network/dnsResolverDomainLists?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "d3eb2c89-f0ce-44b5-b74e-50576da1a59e" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-original-request-ids": [ "", "" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "60000" ], + "x-ms-request-id": [ "d4e4d0d6-3c40-43df-8d31-26a3471e86ac" ], + "x-ms-correlation-request-id": [ "d4e4d0d6-3c40-43df-8d31-26a3471e86ac" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234646Z:d4e4d0d6-3c40-43df-8d31-26a3471e86ac" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2470816204F64C889034276E970C096E Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:45Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "11501" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"99b97664-e19c-4c40-9fe5-b6f6e9a47d76\"},\"etag\":\"\\\"0a009e90-0000-0200-0000-6711a1cd0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62\",\"name\":\"psdnsresolverdomainlistname62\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:23.8496689Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:19.3662829Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bb3f7362-f238-43ac-9c1c-dff4966845a4\"},\"etag\":\"\\\"520397d8-0000-0200-0000-6711a1d70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63\",\"name\":\"psdnsresolverdomainlistname63\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:32.977272Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:28.3439921Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5c1c4f78-c535-40d8-99c0-518e4db7a377\"},\"etag\":\"\\\"5203e2d9-0000-0200-0000-6711a1e10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64\",\"name\":\"psdnsresolverdomainlistname64\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:42.7165814Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:37.796073Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"ab.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e6ac017d-792c-4c7b-ab19-617925c41111\"},\"etag\":\"\\\"d1002b23-0000-0800-0000-66c321620000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/jainishan_rgtest/providers/Microsoft.Network/dnsResolverDomainLists/dl0\",\"name\":\"dl0\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-08-19T10:39:43.6154633Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-19T10:39:43.6154633Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"abc.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ef579d1b-f07c-44f1-bd88-e0328b3b42e7\"},\"etag\":\"\\\"0c007f7f-0000-0800-0000-66bb3a2f0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/jainishan_rgtest/providers/Microsoft.Network/dnsResolverDomainLists/jainishan_testdl\",\"name\":\"jainishan_testdl\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-07-26T10:30:27.8067671Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-07-26T10:30:27.8067671Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"abc.com.\",\"google.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"4085c6c9-68ef-4639-8035-331a140f91cd\"},\"etag\":\"\\\"0c00237b-0000-0800-0000-66bb3a010000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/jainishan_rgtest/providers/Microsoft.Network/dnsResolverDomainLists/jainishan_testdl1\",\"name\":\"jainishan_testdl1\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-07-26T10:44:01.6008573Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-07-26T10:44:01.6008573Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"14a21feb-659f-4976-9801-3d318d71bbdc\"},\"etag\":\"\\\"1600a06b-0000-0800-0000-671195c90000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg\",\"name\":\"psdnsresolverdomainlistname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T22:54:09.715974Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T22:55:04.5254533Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9e9a67cb-8415-4158-8aaf-b1dd312973f9\"},\"etag\":\"\\\"1600c66b-0000-0800-0000-671195d90000\\\"\",\"location\":\"westus2\",\"tags\":{\"key5143n\":\"value5143n\",\"key9ledz\":\"value9ledz\",\"keylvtyr\":\"valuelvtyr\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm\",\"name\":\"psdnsresolverdomainlistname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T22:54:17.292272Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T22:55:19.0927347Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"microsoft.com.\",\"google.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cace34bb-1738-45d9-a00b-f3ee87002ab3\"},\"etag\":\"\\\"1b00c3c8-0000-0800-0000-667b61b40000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/prmorampDLBugBashRG/providers/Microsoft.Network/dnsResolverDomainLists/prmorampDL1\",\"name\":\"prmorampDL1\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-26T00:12:18.6360927Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-26T00:12:18.6360927Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"microsoft.com.\",\"contoso.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9935d7b2-f1ec-4577-987f-d24a74daf6bd\"},\"etag\":\"\\\"20002748-0000-0800-0000-667d412a0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/RG-bugbash-vidya/providers/Microsoft.Network/dnsResolverDomainLists/DomainListBugBashVidya\",\"name\":\"DomainListBugBashVidya\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-26T18:01:01.7129415Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-26T18:01:01.7129415Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"google.ca.\",\"bing.com.\",\".\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f4a69c8b-35fc-4b84-95f1-b3a5ec8337c0\"},\"etag\":\"\\\"1b008fad-0000-0800-0000-667b54bc0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-jamesvoong-ite/providers/Microsoft.Network/dnsResolverDomainLists/dl-jamesvoong-bugbash\",\"name\":\"dl-jamesvoong-bugbash\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-25T22:48:10.7109992Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:37:30.8901622Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"google.ca.\",\"bing.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1153b144-b484-47a3-9b75-220b11f1fff9\"},\"etag\":\"\\\"1b009caf-0000-0800-0000-667b55ee0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-jamesvoong-ite/providers/Microsoft.Network/dnsResolverDomainLists/dl-jamesvoong-bugbash-2\",\"name\":\"dl-jamesvoong-bugbash-2\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-25T23:41:46.0845275Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:41:46.0845275Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"www.microsoft.com.\",\"www.bing.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"97e29930-481c-403a-9e4b-76efff0f8ef7\"},\"etag\":\"\\\"9600aca6-0000-0800-0000-66bfe4170000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-test-westus2-integrated-syn-dnspolicy-primary/providers/Microsoft.Network/dnsResolverDomainLists/dnsresolverdomainlist-test-westus2-integrated-syn-dnspolicy-primary-0\",\"name\":\"dnsresolverdomainlist-test-westus2-integrated-syn-dnspolicy-primary-0\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-08-16T23:43:09.0011929Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-16T23:43:09.0011929Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"www.microsoft.com.\",\"www.bing.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8d3ee902-22b6-4cce-a56b-5d200d6406c1\"},\"etag\":\"\\\"9600aaab-0000-0800-0000-66bfe45e0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-test-westus2-integrated-syn-dnspolicy-primary/providers/Microsoft.Network/dnsResolverDomainLists/dnsresolverdomainlist-test-westus2-integrated-syn-dnspolicy-primary-1\",\"name\":\"dnsresolverdomainlist-test-westus2-integrated-syn-dnspolicy-primary-1\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-08-16T23:44:26.2273335Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-16T23:44:26.2273335Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"ubs.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5b4d874c-0c89-4003-8817-1f6d259e9565\"},\"etag\":\"\\\"1b002aae-0000-0800-0000-667b55120000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/sergio-phase2/providers/Microsoft.Network/dnsResolverDomainLists/domainlist-phase2\",\"name\":\"domainlist-phase2\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-25T23:20:42.3822476Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:20:42.3822476Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"ubs.com.\",\"sapo.pt.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8bc708e0-cfc9-4596-8cdc-629f2cc7f0e6\"},\"etag\":\"\\\"1b008bb3-0000-0800-0000-667b58850000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/sergio-phase2/providers/Microsoft.Network/dnsResolverDomainLists/phase2-domainlist\",\"name\":\"phase2-domainlist\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-25T23:21:48.8359499Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:53:40.2621948Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"ubs.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9743e8c8-b75a-4e8e-86d9-4a53d1100601\"},\"etag\":\"\\\"1b00f1ad-0000-0800-0000-667b54ea0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/sergio-phase2/providers/Microsoft.Network/dnsResolverDomainLists/secpol-domains-phase2\",\"name\":\"secpol-domains-phase2\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-25T23:38:13.4410269Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:38:13.4410269Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"a.in.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9b329147-e6f6-498e-81f5-1956259984a1\"},\"etag\":\"\\\"3100979d-0000-0800-0000-66bc6ff40000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/shreyagoel/providers/Microsoft.Network/dnsResolverDomainLists/dom1\",\"name\":\"dom1\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-08-14T08:50:56.1526674Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-14T08:50:56.1526674Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Tests.ps1 new file mode 100644 index 000000000000..6e0e53ce51f2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Tests.ps1 @@ -0,0 +1,59 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDnsResolverDomainList')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDnsResolverDomainList.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzDnsResolverDomainList' { + It 'Get single DNS resolver domain list by name, expect DNS resolver domain list by name retrieved' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname62"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + $dnsResolver = Get-AzDnsResolverDomainList -DnsResolverDomainListName $dnsResolverDomainListName -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolver | Should -BeSuccessfullyCreated + } + + It 'List DNS resolver domain lists in a resource group, expected least number of DNS resolver domain lists retrieved' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname63"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + $dnsResolvers = Get-AzDnsResolverDomainList -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolvers.Count | Should -BeGreaterThan 0 + } + + It 'List DNS resolver domain lists in a subscription, expected least number of DNS resolver domain lists retrieved' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname64"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + $dnsResolvers = Get-AzDnsResolverDomainList + + # ASSERT + $dnsResolvers.Count | Should -BeGreaterThan 0 + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Recording.json new file mode 100644 index 000000000000..b77805d32188 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Recording.json @@ -0,0 +1,511 @@ +{ + "Get-AzDnsResolverPolicy+[NoContext]+Get single DNS resolver policy by name, expect DNS resolver policy by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNzI5ZmRlMDItMzEzMS00ODYwLWFjNjktMjVjMWEyZDM1NDU1In0=?api-version=2023-07-01-preview\u0026t=638648744422114685\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVD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_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=etJis8T5yZoELabpbuYYPOfxRrR1P62_4VcWFzMx1LVnuXblczhOoZmjwgzHhrLMlzAmFS7pNBZ4rX859mdIjIqXQZkVZRXcKAA_CxlCs6z_mBEoaeneljsrVAbKuNSEBMgxEM7SrELbwggw5YX0mMk1OT703ULbJ7f-zt30qxAeJrpdIUup3UkJ_Tuf3SD6_Jaj3TVUnB3ApPbovhk067nziD2Bdhs2Jj0hBk72CaYKzaLjo6a22lgtKYxe7dd5NeUr9qunCDMfsrMjNboS_puGq60bb1i8BdPex4rR4_aXpk36OcoLd-Z5lC8SfzSs6MU7pFqwLBHWvve0G55QFQ\u0026h=I3W0YfPu6iSJ734lmAD-pVbqcSsD3_e68lYUok0HSrI" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "6f995088-d334-4999-ad7d-8da1e9dbd2ed" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNzI5ZmRlMDItMzEzMS00ODYwLWFjNjktMjVjMWEyZDM1NDU1In0=?api-version=2023-07-01-preview\u0026t=638648744422114685\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2Vt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tWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=NXyctWeUG58INrOTvwmqXCqoROJq6nyhaEQVBIHj-Wu7qPnmDXJ4N0rBwnfOKUdf5BqlTzYqCRut99ci81JWQZZ-Wu-M11sgphWVqpUXrKcIMPUUW645GiIDihv-dbuOtLv9tzBBZV0cZ0Nj4qSN-WKkd6douKVKoXtBz-tcoQw_8DoHD3oPJSN8AUdeAdyOMzFdFEnE9AnZYWEaBTbFHXtB7r41J0PlJDQNy2MaNpWPZDKlYtlR-xAHnI4NjPr8LZKI6zWTJs6MEOFLJRtEyK2o8YfLv8uX0O-YQMEr6rlgquAsRQM2RmBs3c-SMP3xE5VwGiVql4QooEZNxsDknA\u0026h=lKlbHyyRclw3EOBigm4jjqMeCqCz_w5JQApMPCLjrTU" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "6f995088-d334-4999-ad7d-8da1e9dbd2ed" ], + "x-ms-correlation-request-id": [ "6f995088-d334-4999-ad7d-8da1e9dbd2ed" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185402Z:6f995088-d334-4999-ad7d-8da1e9dbd2ed" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2437CEB70FC44E0DB58D0F64E1B5C7CA Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:01Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"430076c6-0000-0200-0000-6712aec90000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62\",\"name\":\"psdnsresolverpolicyname62\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:01:27.4665349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:01.7739727Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+Get single DNS resolver policy by name, expect DNS resolver policy by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNzI5ZmRlMDItMzEzMS00ODYwLWFjNjktMjVjMWEyZDM1NDU1In0=?api-version=2023-07-01-preview\u0026t=638648744422114685\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEH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BlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=NXyctWeUG58INrOTvwmqXCqoROJq6nyhaEQVBIHj-Wu7qPnmDXJ4N0rBwnfOKUdf5BqlTzYqCRut99ci81JWQZZ-Wu-M11sgphWVqpUXrKcIMPUUW645GiIDihv-dbuOtLv9tzBBZV0cZ0Nj4qSN-WKkd6douKVKoXtBz-tcoQw_8DoHD3oPJSN8AUdeAdyOMzFdFEnE9AnZYWEaBTbFHXtB7r41J0PlJDQNy2MaNpWPZDKlYtlR-xAHnI4NjPr8LZKI6zWTJs6MEOFLJRtEyK2o8YfLv8uX0O-YQMEr6rlgquAsRQM2RmBs3c-SMP3xE5VwGiVql4QooEZNxsDknA\u0026h=lKlbHyyRclw3EOBigm4jjqMeCqCz_w5JQApMPCLjrTU+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNzI5ZmRlMDItMzEzMS00ODYwLWFjNjktMjVjMWEyZDM1NDU1In0=?api-version=2023-07-01-preview\u0026t=638648744422114685\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPAD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P-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=NXyctWeUG58INrOTvwmqXCqoROJq6nyhaEQVBIHj-Wu7qPnmDXJ4N0rBwnfOKUdf5BqlTzYqCRut99ci81JWQZZ-Wu-M11sgphWVqpUXrKcIMPUUW645GiIDihv-dbuOtLv9tzBBZV0cZ0Nj4qSN-WKkd6douKVKoXtBz-tcoQw_8DoHD3oPJSN8AUdeAdyOMzFdFEnE9AnZYWEaBTbFHXtB7r41J0PlJDQNy2MaNpWPZDKlYtlR-xAHnI4NjPr8LZKI6zWTJs6MEOFLJRtEyK2o8YfLv8uX0O-YQMEr6rlgquAsRQM2RmBs3c-SMP3xE5VwGiVql4QooEZNxsDknA\u0026h=lKlbHyyRclw3EOBigm4jjqMeCqCz_w5JQApMPCLjrTU", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "b1ffe236-99e8-4495-8c7d-84ccc0c783f1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "cb4a90e2-cee9-4f0a-adc0-502b1f94cef0" ], + "x-ms-correlation-request-id": [ "cb4a90e2-cee9-4f0a-adc0-502b1f94cef0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185408Z:cb4a90e2-cee9-4f0a-adc0-502b1f94cef0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: AF1F3F1F64B34C2A8405E4874115A912 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:07Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+Get single DNS resolver policy by name, expect DNS resolver policy by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "b1ffe236-99e8-4495-8c7d-84ccc0c783f1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "11b05380-7656-4b09-8955-a672ad535c13" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "11b05380-7656-4b09-8955-a672ad535c13" ], + "x-ms-correlation-request-id": [ "11b05380-7656-4b09-8955-a672ad535c13" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185409Z:11b05380-7656-4b09-8955-a672ad535c13" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 01A6EC0F575B441187EB1D39CAFD631C Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:08Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "589" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1de20c75-add1-458c-bfd6-65775ad69044\"},\"etag\":\"\\\"4a00e75d-0000-0200-0000-6712aecc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62\",\"name\":\"psdnsresolverpolicyname62\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:01:27.4665349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:01.7739727Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+Get single DNS resolver policy by name, expect DNS resolver policy by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "9e527124-1968-4d6b-b1ed-d00ceae0fd24" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "88020a1e-7550-4ed8-b9d1-668d33bd6c93" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "88020a1e-7550-4ed8-b9d1-668d33bd6c93" ], + "x-ms-correlation-request-id": [ "88020a1e-7550-4ed8-b9d1-668d33bd6c93" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185410Z:88020a1e-7550-4ed8-b9d1-668d33bd6c93" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9DA26A8232924C43A9B021B73A0AF868 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:09Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "589" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1de20c75-add1-458c-bfd6-65775ad69044\"},\"etag\":\"\\\"4a00e75d-0000-0200-0000-6712aecc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62\",\"name\":\"psdnsresolverpolicyname62\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:01:27.4665349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:01.7739727Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiOTY3YTcyNGItY2MxOS00Nzk4LTg0MDY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wBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=fzKN3QlMEdQZSNlxnafS9NHRDOSHqC3qOvfDgjcbT8MyRwwgiW05441ww3omJSJWv5P-H1Rmnsr1fD_ixBkX7652vCB9K9v_clAxNlLODEkkpgNpwWvXvu7kAz7OFABE4hDeaXx5G-z5_b74nZqQDWWkZQk1UEqjk2rsyAlDKWKI6bK1CDM08_ESc-xif2OPkXZIqpapDLJ1iHBBnkHHcHq8NOLclvAS2GfcECNQXCW_sET67VO-H5zxT8_nDujJTMpqUsoN0CEuyAbk09GvJZ3suUzeyWOOjl8Z48iVyyjZYOBieVCRNjQeb8TVre2YS5G4lLztNe9lDVjSt1MgCQ\u0026h=Vnt3nLjkRwofqix3cHg9Zlsd4Jqc98qIpqZtddg6UlM" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "b7831d72-e7a1-4217-8569-510503e7137f" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJ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VgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=TiW5iyOjRBb0HF3p8ZvNlZm-Injg7gEQ8Pk2l8pWDcf94dVFRxAmB4bDLoeEboIM13x69g23iGWywzocj1KMcJF8reUrMpnQ-Ot5uRx9i61ZtPpGI5nUzG_Q0YJalnefuhJoLXz9KJ1bF6qOhdg37aqVrHyDy9fZ_f33RtNzyrsYYAr4s75Nwj4ync0_M8Bayd0JSqk_jo1gc9G0l1WX6hmu50Oh935POde5_KzjVXvQ10JZv4btdUgS4GQPt9xKm6Cwo71Fp1spwbm_vqVK2AFOjsXyJBoOOZLAyBFksY_NmqhMVGxvu4Qbc2-NXGEw1wwuPueTnPA3kdIkb3KT-A\u0026h=mNOWTnPLPBBjjwy8_c6viB9rtsZzGFkUfqHCZUfwoJs" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "b7831d72-e7a1-4217-8569-510503e7137f" ], + "x-ms-correlation-request-id": [ "b7831d72-e7a1-4217-8569-510503e7137f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185411Z:b7831d72-e7a1-4217-8569-510503e7137f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 30E82712C08E4CBDB9D47C75364D04C1 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:10Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"4300b6c6-0000-0200-0000-6712aed30000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63\",\"name\":\"psdnsresolverpolicyname63\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:33.4111384Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:11.0163247Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiOTY3YTcyNGItY2MxOS00Nzk4LTg0MDYtMWI3MzB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isGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=TiW5iyOjRBb0HF3p8ZvNlZm-Injg7gEQ8Pk2l8pWDcf94dVFRxAmB4bDLoeEboIM13x69g23iGWywzocj1KMcJF8reUrMpnQ-Ot5uRx9i61ZtPpGI5nUzG_Q0YJalnefuhJoLXz9KJ1bF6qOhdg37aqVrHyDy9fZ_f33RtNzyrsYYAr4s75Nwj4ync0_M8Bayd0JSqk_jo1gc9G0l1WX6hmu50Oh935POde5_KzjVXvQ10JZv4btdUgS4GQPt9xKm6Cwo71Fp1spwbm_vqVK2AFOjsXyJBoOOZLAyBFksY_NmqhMVGxvu4Qbc2-NXGEw1wwuPueTnPA3kdIkb3KT-A\u0026h=mNOWTnPLPBBjjwy8_c6viB9rtsZzGFkUfqHCZUfwoJs+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvb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2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=TiW5iyOjRBb0HF3p8ZvNlZm-Injg7gEQ8Pk2l8pWDcf94dVFRxAmB4bDLoeEboIM13x69g23iGWywzocj1KMcJF8reUrMpnQ-Ot5uRx9i61ZtPpGI5nUzG_Q0YJalnefuhJoLXz9KJ1bF6qOhdg37aqVrHyDy9fZ_f33RtNzyrsYYAr4s75Nwj4ync0_M8Bayd0JSqk_jo1gc9G0l1WX6hmu50Oh935POde5_KzjVXvQ10JZv4btdUgS4GQPt9xKm6Cwo71Fp1spwbm_vqVK2AFOjsXyJBoOOZLAyBFksY_NmqhMVGxvu4Qbc2-NXGEw1wwuPueTnPA3kdIkb3KT-A\u0026h=mNOWTnPLPBBjjwy8_c6viB9rtsZzGFkUfqHCZUfwoJs", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "90e75b99-e582-4274-9dd7-cade46b9e515" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "4fba9567-ff03-4019-b5b1-46ecbe6306a4" ], + "x-ms-correlation-request-id": [ "4fba9567-ff03-4019-b5b1-46ecbe6306a4" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185418Z:4fba9567-ff03-4019-b5b1-46ecbe6306a4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5C759FEE9EF3430CA459ABC377C6E0B3 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:16Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "90e75b99-e582-4274-9dd7-cade46b9e515" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "1278c05e-c0e5-4cfc-b532-1155d2fad7f3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "1278c05e-c0e5-4cfc-b532-1155d2fad7f3" ], + "x-ms-correlation-request-id": [ "1278c05e-c0e5-4cfc-b532-1155d2fad7f3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185418Z:1278c05e-c0e5-4cfc-b532-1155d2fad7f3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: ECA32CA82DDD460498AC8A0104BD1686 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:18Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "589" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"838cb814-882a-4858-8098-39de02aa1ae1\"},\"etag\":\"\\\"4a008c5f-0000-0200-0000-6712aed60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63\",\"name\":\"psdnsresolverpolicyname63\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:33.4111384Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:11.0163247Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "cc4eb1ec-fb7a-46b6-a8e2-6449c5316883" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8a76a43d-5e97-4877-9e9b-e7f4e0f0d799" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "59997" ], + "x-ms-request-id": [ "8a76a43d-5e97-4877-9e9b-e7f4e0f0d799" ], + "x-ms-correlation-request-id": [ "8a76a43d-5e97-4877-9e9b-e7f4e0f0d799" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185419Z:8a76a43d-5e97-4877-9e9b-e7f4e0f0d799" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0E76F6EF93AA47B9953191DA137AFF2F Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:19Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1781" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1de20c75-add1-458c-bfd6-65775ad69044\"},\"etag\":\"\\\"4a00e75d-0000-0200-0000-6712aecc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62\",\"name\":\"psdnsresolverpolicyname62\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:01:27.4665349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:01.7739727Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"838cb814-882a-4858-8098-39de02aa1ae1\"},\"etag\":\"\\\"4a008c5f-0000-0200-0000-6712aed60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63\",\"name\":\"psdnsresolverpolicyname63\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:33.4111384Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:11.0163247Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"6c88c4d7-4fb7-4304-b12f-e8b09636b1f5\"},\"etag\":\"\\\"0e005c23-0000-0200-0000-6711a56d0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64\",\"name\":\"psdnsresolverpolicyname64\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:43.1637547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:01:46.7468197Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a subscription, expected least number of DNS resolver policies retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTc3MjMwOWEtMGM4My00MDJjLWFkNjUtNmFjM2YyMTY0NWQ1In0=?api-version=2023-07-01-preview\u0026t=638648744607951859\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs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h00bg\u0026h=zekCdRhmDw1yV_K6J4aRA8_0A3IVawN3jRgLR1wet6c" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "1be59bda-fca5-4baf-9f44-3f9bbe56a91f" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTc3MjMwOWEtMGM4My00MDJjLWFkNjUtNmFjM2YyMTY0NWQ1In0=?api-version=2023-07-01-preview\u0026t=638648744607951859\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarw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HXw_4LV6D2Km8pggio7JcM677cV5ZmUtTxeJq4v71XyNjjL-3bUABLu6nKbbSS9ic6sV5WLfXa6ozB4OfJ0HFzJo1vbwQ3tGLG_aw68dWqh5msY_HHA4qNRRxqe0a16ewrp_Iy58Xs_3cBMUwBE0nYGwp--W4H4nzig\u0026h=OXGD4CgHk1MhWHk4d5b2o0yeB-lgTqe_9VjydvTXC10" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "1be59bda-fca5-4baf-9f44-3f9bbe56a91f" ], + "x-ms-correlation-request-id": [ "1be59bda-fca5-4baf-9f44-3f9bbe56a91f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185420Z:1be59bda-fca5-4baf-9f44-3f9bbe56a91f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 065E8631627F4107A48F74FD4278B00C Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:20Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"4300e6c6-0000-0200-0000-6712aedc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64\",\"name\":\"psdnsresolverpolicyname64\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:43.1637547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:20.3733096Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a subscription, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTc3MjMwOWEtMGM4My00MDJjLWFkNjUtNmFjM2YyMTY0NWQ1In0=?api-version=2023-07-01-preview\u0026t=638648744607951859\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYI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V5WLfXa6ozB4OfJ0HFzJo1vbwQ3tGLG_aw68dWqh5msY_HHA4qNRRxqe0a16ewrp_Iy58Xs_3cBMUwBE0nYGwp--W4H4nzig\u0026h=OXGD4CgHk1MhWHk4d5b2o0yeB-lgTqe_9VjydvTXC10+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTc3MjMwOWEtMGM4My00MDJjLWFkNjUtNmFjM2YyMTY0NWQ1In0=?api-version=2023-07-01-preview\u0026t=638648744607951859\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvA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BxAmEcdGfLRbHam3AJrrqIMdE9fijN-85BgcNiZ2HXw_4LV6D2Km8pggio7JcM677cV5ZmUtTxeJq4v71XyNjjL-3bUABLu6nKbbSS9ic6sV5WLfXa6ozB4OfJ0HFzJo1vbwQ3tGLG_aw68dWqh5msY_HHA4qNRRxqe0a16ewrp_Iy58Xs_3cBMUwBE0nYGwp--W4H4nzig\u0026h=OXGD4CgHk1MhWHk4d5b2o0yeB-lgTqe_9VjydvTXC10", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "b029b4fc-2cdc-4539-8b5f-e52a8422be00" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "fcedbdc7-d173-4ab3-878c-e77b203950db" ], + "x-ms-correlation-request-id": [ "fcedbdc7-d173-4ab3-878c-e77b203950db" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185427Z:fcedbdc7-d173-4ab3-878c-e77b203950db" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2228AF84675F48238320F10DC6F3E145 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:25Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a subscription, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "b029b4fc-2cdc-4539-8b5f-e52a8422be00" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8fdb2fc1-d5ed-4b8e-bc11-6eb69bf6fe35" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "8fdb2fc1-d5ed-4b8e-bc11-6eb69bf6fe35" ], + "x-ms-correlation-request-id": [ "8fdb2fc1-d5ed-4b8e-bc11-6eb69bf6fe35" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185428Z:8fdb2fc1-d5ed-4b8e-bc11-6eb69bf6fe35" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 36D72CA0F45B4A05BB058FC1D4B60DA4 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:27Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "589" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"6c88c4d7-4fb7-4304-b12f-e8b09636b1f5\"},\"etag\":\"\\\"4a002e61-0000-0200-0000-6712aee00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64\",\"name\":\"psdnsresolverpolicyname64\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:43.1637547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:20.3733096Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a subscription, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/providers/Microsoft.Network/dnsResolverPolicies?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/providers/Microsoft.Network/dnsResolverPolicies?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "69aa8d17-26f9-4edf-a2aa-fa9d2729573d" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-original-request-ids": [ "", "", "" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "60000" ], + "x-ms-request-id": [ "311753c8-abf6-4b44-b27c-a6f3506170b2" ], + "x-ms-correlation-request-id": [ "311753c8-abf6-4b44-b27c-a6f3506170b2" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185428Z:311753c8-abf6-4b44-b27c-a6f3506170b2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C9F7ED93A4C34DC2B1CEC1A598A1F4E5 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:28Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "25825" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"73dfebe3-e166-410a-93e8-9d23302e8ef1\"},\"etag\":\"\\\"0300c8d2-0000-0600-0000-66bb38f70000\\\"\",\"location\":\"westcentralus\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/shreyagoel/providers/Microsoft.Network/dnsResolverPolicies/sp0001\",\"name\":\"sp0001\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-13T10:44:04.8908331Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-13T10:44:04.8908331Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"2ba8df99-2f41-4692-9724-7f72f9f4f197\"},\"etag\":\"\\\"0300e6cb-0000-0600-0000-66bb1ca40000\\\"\",\"location\":\"westcentralus\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/shreyagoel/providers/Microsoft.Network/dnsResolverPolicies/sp01\",\"name\":\"sp01\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-13T08:43:11.308486Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-13T08:43:11.308486Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1de20c75-add1-458c-bfd6-65775ad69044\"},\"etag\":\"\\\"4a00e75d-0000-0200-0000-6712aecc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62\",\"name\":\"psdnsresolverpolicyname62\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:01:27.4665349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:01.7739727Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"838cb814-882a-4858-8098-39de02aa1ae1\"},\"etag\":\"\\\"4a008c5f-0000-0200-0000-6712aed60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63\",\"name\":\"psdnsresolverpolicyname63\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:33.4111384Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:11.0163247Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"6c88c4d7-4fb7-4304-b12f-e8b09636b1f5\"},\"etag\":\"\\\"4a002e61-0000-0200-0000-6712aee00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64\",\"name\":\"psdnsresolverpolicyname64\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:43.1637547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:20.3733096Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ee827b68-4fd8-4af0-8d62-2be294e5eea9\"},\"etag\":\"\\\"550034fc-0000-0800-0000-66c321570000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/jainishan_rgtest/providers/Microsoft.Network/dnsResolverPolicies/sp0\",\"name\":\"sp0\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-19T10:41:25.6697395Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-19T10:41:25.6697395Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5c0f7dd1-2758-4b6a-bc38-bc3d4bc9ebb2\"},\"etag\":\"\\\"18006170-0000-0800-0000-6711a7260000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg\",\"name\":\"psdnsresolverpolicyname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:09.3100587Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:09.3100587Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"766e397a-a1e0-435e-9fb0-499b12820093\"},\"etag\":\"\\\"1800ed71-0000-0800-0000-6711a7350000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyfy57a\":\"valuefy57a\",\"keya4orj\":\"valuea4orj\",\"keywflrg\":\"valuewflrg\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:16.9362072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:24.2256242Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9fafc640-a650-4785-a46a-971e981d13da\"},\"etag\":\"\\\"160097e7-0000-0800-0000-671196160000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg\",\"name\":\"psdnsresolverpolicyname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T22:56:21.0167325Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T22:56:21.0167325Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b50dcd77-2cd4-4eb1-bb9a-1d4fcb02ce3c\"},\"etag\":\"\\\"1600d4e9-0000-0800-0000-671196290000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyuztsl\":\"valueuztsl\",\"keypajyo\":\"valuepajyo\",\"keycjnx2\":\"valuecjnx2\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T22:56:29.0807491Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T22:56:36.0670725Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"663968c2-4d72-4dc4-9c0e-3d3571fd09e2\"},\"etag\":\"\\\"4b00717a-0000-0800-0000-667b60250000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/prmorampDLBugBashRG/providers/Microsoft.Network/dnsResolverPolicies/prmorampSP1\",\"name\":\"prmorampSP1\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-06-26T00:18:01.111392Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-26T00:18:01.111392Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"4c9e7ac4-7aac-4ff2-9dd3-59ac42aa4c0e\"},\"etag\":\"\\\"3a01c2c0-0000-0800-0000-670846240000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/07bddb1b-2373-415d-add5-8bddc91c9b0f\",\"name\":\"07bddb1b-2373-415d-add5-8bddc91c9b0f\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:24:42.1818763Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:24:42.1818763Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fb18ef75-1526-457c-9cac-6094da6c9727\"},\"etag\":\"\\\"3a0118e5-0000-0800-0000-670847dd0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/1cc54e7e-0447-4590-b863-8a7830afe720\",\"name\":\"1cc54e7e-0447-4590-b863-8a7830afe720\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:32:03.1355449Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:32:03.1355449Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"aeae4eaf-a850-4c3e-9cb8-ca9d9896c0ac\"},\"etag\":\"\\\"3a01afdc-0000-0800-0000-670847790000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/281da878-ff12-4311-b42c-654413430bee\",\"name\":\"281da878-ff12-4311-b42c-654413430bee\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:30:21.9075985Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:30:21.9075985Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a34328d9-c51d-42f3-b91a-21f8aaae12ea\"},\"etag\":\"\\\"3a0141de-0000-0800-0000-6708478d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/2b12dfc3-39e8-4cbf-8416-5d074758096e\",\"name\":\"2b12dfc3-39e8-4cbf-8416-5d074758096e\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:30:44.9086335Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:30:44.9086335Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"745d03b5-f2c4-4ff7-b110-479f2474e201\"},\"etag\":\"\\\"3a011de8-0000-0800-0000-670848050000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/3576311a-1e6d-46a3-a5ab-cbdf97f0a156\",\"name\":\"3576311a-1e6d-46a3-a5ab-cbdf97f0a156\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:32:41.7965573Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:32:41.7965573Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8b4cd7b6-52e7-45fa-9b39-706a6fc8592d\"},\"etag\":\"\\\"3a01e8df-0000-0800-0000-670847a10000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/3912ffe6-1b13-47fa-8665-71f01c717ec2\",\"name\":\"3912ffe6-1b13-47fa-8665-71f01c717ec2\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:31:03.0401875Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:31:03.0401875Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7d9b6c6d-0488-4cce-be9a-b01a6172b00d\"},\"etag\":\"\\\"3a012adb-0000-0800-0000-670847650000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/4ac01d4b-ae64-466b-8c97-4c645e927542\",\"name\":\"4ac01d4b-ae64-466b-8c97-4c645e927542\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:30:04.0961531Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:30:04.0961531Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5571ac86-f8df-4647-88fb-f761de504320\"},\"etag\":\"\\\"3a01bac5-0000-0800-0000-670846600000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/4da1d4f0-f90c-43e6-9323-27f1121067a0\",\"name\":\"4da1d4f0-f90c-43e6-9323-27f1121067a0\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:25:41.6238665Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:25:41.6238665Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a9866690-1645-4e76-a61c-d157c4cd09d5\"},\"etag\":\"\\\"3a016ed7-0000-0800-0000-6708473d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/5829266d-7e8e-4864-8926-f7fe6442d08d\",\"name\":\"5829266d-7e8e-4864-8926-f7fe6442d08d\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:29:21.5349632Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:29:21.5349632Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3f5f156e-3598-404e-86b0-616915a3c235\"},\"etag\":\"\\\"3a01d6e9-0000-0800-0000-670848190000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/5a61785c-44db-435b-a3f0-2dcca70c4d38\",\"name\":\"5a61785c-44db-435b-a3f0-2dcca70c4d38\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:33:05.3257494Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:33:05.3257494Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d3ac3b97-cd30-4d47-ae00-11a1fedfa109\"},\"etag\":\"\\\"3a01e6d3-0000-0800-0000-670847140000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/746452ee-230e-4754-932a-3c717169a1bf\",\"name\":\"746452ee-230e-4754-932a-3c717169a1bf\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:28:44.3722469Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:28:44.3722469Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1375f40f-0391-414a-8ec4-6cce6ef03e71\"},\"etag\":\"\\\"3a01e1cb-0000-0800-0000-670846b00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/76fae72b-a1c6-4457-85bf-7a7ae335f809\",\"name\":\"76fae72b-a1c6-4457-85bf-7a7ae335f809\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:27:05.1597025Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:27:05.1597025Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"15936839-ea11-4526-90a6-f4263dfe3834\"},\"etag\":\"\\\"3a014bca-0000-0800-0000-6708469c0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/7e4a314f-8310-4029-9e1f-5c44b5be7f68\",\"name\":\"7e4a314f-8310-4029-9e1f-5c44b5be7f68\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:26:45.0130177Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:26:45.0130177Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"107ab16c-ea97-46a4-b4a3-4e870362eafc\"},\"etag\":\"\\\"3a01dcd8-0000-0800-0000-670847510000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/8e1c1985-b97a-455e-bce5-6c67503093f5\",\"name\":\"8e1c1985-b97a-455e-bce5-6c67503093f5\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:29:45.3442119Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:29:45.3442119Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"590bbc04-f88e-44ea-9011-6bca48d9ca71\"},\"etag\":\"\\\"3a013de3-0000-0800-0000-670847c90000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/ab74ffc6-c774-4d75-bb2f-460783cf321a\",\"name\":\"ab74ffc6-c774-4d75-bb2f-460783cf321a\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:31:45.4796413Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:31:45.4796413Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"481c50cc-8379-414a-a2b8-8cfc25f28baf\"},\"etag\":\"\\\"3a0121c4-0000-0800-0000-6708464c0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/bc170143-dec0-4207-9999-d305bc9cdec8\",\"name\":\"bc170143-dec0-4207-9999-d305bc9cdec8\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:25:22.4690379Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:25:22.4690379Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"07285fdb-a93a-4148-9bc5-7ab7df9cf644\"},\"etag\":\"\\\"3a0129c7-0000-0800-0000-670846740000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/c69ca561-608c-46be-b91f-f1249f1a3c0f\",\"name\":\"c69ca561-608c-46be-b91f-f1249f1a3c0f\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:26:01.3745006Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:26:01.3745006Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1bb1befc-fa65-4db4-a354-3ecd3243069e\"},\"etag\":\"\\\"3a0177c2-0000-0800-0000-670846380000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/cf7f7052-6d99-4a9c-a913-526422de28cc\",\"name\":\"cf7f7052-6d99-4a9c-a913-526422de28cc\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:25:02.938123Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:25:02.938123Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"80430be0-6e18-40e8-8aa1-ab1357884fb6\"},\"etag\":\"\\\"3a010bc9-0000-0800-0000-6708468a0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/d293f3d2-70d9-498b-bfea-9b1e1fd86f63\",\"name\":\"d293f3d2-70d9-498b-bfea-9b1e1fd86f63\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:26:26.0059582Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:26:26.0059582Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"2966884d-3be3-4e74-bacc-1fd94d8daedf\"},\"etag\":\"\\\"3a0185e6-0000-0800-0000-670847f10000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/d570db0b-384b-408e-83c4-f49b37e65898\",\"name\":\"d570db0b-384b-408e-83c4-f49b37e65898\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:32:22.8657739Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:32:22.8657739Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"76ab03fa-7131-4507-ac0d-9fd1c8712ccb\"},\"etag\":\"\\\"3a01b0d5-0000-0800-0000-670847290000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/dd6094f9-b785-445e-a14d-bb834e985f78\",\"name\":\"dd6094f9-b785-445e-a14d-bb834e985f78\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:29:02.8746217Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:29:02.8746217Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"65914ba8-08a5-4319-9c6d-8b57b87b3681\"},\"etag\":\"\\\"3a01a0e1-0000-0800-0000-670847b50000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/e1097daa-d845-452b-be3f-aca40357d953\",\"name\":\"e1097daa-d845-452b-be3f-aca40357d953\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:31:22.0653166Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:31:22.0653166Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5f127bf5-6205-4c1d-872c-619c16119559\"},\"etag\":\"\\\"3a013ed2-0000-0800-0000-670847000000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/f778ba34-772e-40d5-9c9d-6a96c6e98ac4\",\"name\":\"f778ba34-772e-40d5-9c9d-6a96c6e98ac4\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:28:26.1381037Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:28:26.1381037Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dff8e643-82b0-48ff-837c-f9471156d4d5\"},\"etag\":\"\\\"50009fb4-0000-0800-0000-667c4b110000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/RG-bugbash-vidya/providers/Microsoft.Network/dnsResolverPolicies/SP-bugbash-vidya\",\"name\":\"SP-bugbash-vidya\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-06-26T16:57:11.7251523Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-26T16:57:11.7251523Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fe80567f-76a3-4d1b-a834-49b93698cebc\"},\"etag\":\"\\\"4b00b556-0000-0800-0000-667b4e780000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-jamesvoong-ite/providers/Microsoft.Network/dnsResolverPolicies/policy-jamesvoong-bugbash\",\"name\":\"policy-jamesvoong-bugbash\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-06-25T22:46:40.4114172Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T22:46:40.4114172Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fb1dfd6c-0a56-4e1b-a2e0-d0ae164477a2\"},\"etag\":\"\\\"1c00e17a-0000-0800-0000-66bfe4020000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-test-westus2-integrated-syn-dnspolicy-primary/providers/Microsoft.Network/dnsResolverPolicies/dnsresolverpolicy-test-westus2-integrated-syn-dnspolicy-primary-0\",\"name\":\"dnsresolverpolicy-test-westus2-integrated-syn-dnspolicy-primary-0\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-16T23:42:50.3661752Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-16T23:42:50.3661752Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7a3c559d-64cf-44fa-a42e-89d1df313d0c\"},\"etag\":\"\\\"1c00a57f-0000-0800-0000-66bfe4500000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-test-westus2-integrated-syn-dnspolicy-primary/providers/Microsoft.Network/dnsResolverPolicies/dnsresolverpolicy-test-westus2-integrated-syn-dnspolicy-primary-1\",\"name\":\"dnsresolverpolicy-test-westus2-integrated-syn-dnspolicy-primary-1\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-16T23:44:14.0527389Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-16T23:44:14.0527389Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8ccf4cd0-b638-47d5-868f-a90a7e6dc9f2\"},\"etag\":\"\\\"4b00656b-0000-0800-0000-667b59c60000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/sergio-phase2/providers/Microsoft.Network/dnsResolverPolicies/bugbash-phase2\",\"name\":\"bugbash-phase2\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-06-25T23:30:34.2444575Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:30:34.2444575Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9eceeaa1-c898-4a2e-ad72-de8fc5c9bf5f\"},\"etag\":\"\\\"4b001162-0000-0800-0000-667b548a0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/sergio-phase2/providers/Microsoft.Network/dnsResolverPolicies/secpol-phase2\",\"name\":\"secpol-phase2\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-06-25T23:36:41.601492Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:36:41.601492Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"397573ea-4673-4f30-a247-36559fa97f92\"},\"etag\":\"\\\"9e02650c-0000-0800-0000-66bb39920000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/shreyagoel/providers/Microsoft.Network/dnsResolverPolicies/sp000001\",\"name\":\"sp000001\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-13T10:46:35.2451401Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-13T10:46:35.2451401Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f14d1944-d730-483d-be40-1298c3ee549f\"},\"etag\":\"\\\"38004fdf-0000-0800-0000-66a09b930000\\\"\",\"location\":\"westus2\",\"tags\":{\"a\":\"b\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/shreyagoel/providers/Microsoft.Network/dnsResolverPolicies/sp111\",\"name\":\"sp111\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-07-17T16:35:17.1724946Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-07-24T06:13:37.415701Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Tests.ps1 new file mode 100644 index 000000000000..111831eb8b2e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Tests.ps1 @@ -0,0 +1,59 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDnsResolverPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDnsResolverPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzDnsResolverPolicy' { + It 'Get single DNS resolver policy by name, expect DNS resolver policy by name retrieved' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname62"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + $dnsResolver = Get-AzDnsResolverPolicy -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolver | Should -BeSuccessfullyCreated + } + + It 'List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname63"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + $dnsResolvers = Get-AzDnsResolverPolicy -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolvers.Count | Should -BeGreaterThan 0 + } + + It 'List DNS resolver policies in a subscription, expected least number of DNS resolver policies retrieved' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname64"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + $dnsResolvers = Get-AzDnsResolverPolicy + + # ASSERT + $dnsResolvers.Count | Should -BeGreaterThan 0 + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Recording.json new file mode 100644 index 000000000000..75e809e6f19b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Recording.json @@ -0,0 +1,937 @@ +{ + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0Mj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AYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=jM0odWJYif2YdCh3GGku0ribwoRwZg9a0EGvyY0dUbFMsL06r3iiRmw6UB__EqXWw-U-XfLJE7D0vN4393ipQbwV9vGCilsEpvKaZ4b6z6UEQIJ2QDTemZ9xaoNdKo-KV-lnfkCdmzeXiflAieeruJS3cpdjo0eJzxC-o6vRLu13bdkxjQpv0_cd4GgAFt9MIFAH0FPlgxWdRuO13QA0PKNP4NB2mQwgSBfzohX-VrEPW6BKdfeY9Mg9xLUyA2t3GwMEryxzmuZLaXkcu2wWghccRzOWZ_oU0ItgdJZVO1--jCAGPU9v_nH3Ri9j9RX4JKkNezy7EvYvmJIi_KFFww\u0026h=sKGWCECMiG06gOclMI2yENrI1hX-wNAIqTePoxD5EGM" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "91907d3d-4e66-4b94-9265-77942c12344b" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus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ms-request-id": [ "91907d3d-4e66-4b94-9265-77942c12344b" ], + "x-ms-correlation-request-id": [ "91907d3d-4e66-4b94-9265-77942c12344b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051048Z:91907d3d-4e66-4b94-9265-77942c12344b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0D631004A7F54AAD9F20CDFE432744DA Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:10:48Z" ], + "Date": [ "Mon, 21 Oct 2024 05:10:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7001dbe7-0000-0800-0000-6715e2580000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag\",\"name\":\"psdnsresolverpolicyforrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:07:28.0353737Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:10:48.4088397Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIj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ADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=WLI5wZ9Y2qc0RLkCwtw6zufGb9hdkZqiZp2WKRUsQidZuwgsfh7fhaT30iuoSGbvE-5WMYTnu98fSAYnpWTjnTUaGSWNYjlRnRbweXHB689Axd-0u_4-IUakcKfMgCoZePKd0yxn9IW9aBVdbkrej013Xa-3SOHeikFZ2jaMqDj6a1EU_oVX2inq0jvqOmUPwHd5h5uFPueE0MUBzcu8VDto9wOL4eWAAxZkk-GTSfy8vdA1LrLYuLr1xyHyFZMl6j4ZLC4Y5sEuJB_HcEkSDQtBb_m5tNhjdPTKDHOr7hHU0vvOBe2dfh67mGhCDgDpeCaf-_usnv2jzAG5sxqr4w\u0026h=wneERg8LMf7RTAnQ4aSmqgyRvjvjZyNn-GSGmeX8Ksc+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXR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BQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=WLI5wZ9Y2qc0RLkCwtw6zufGb9hdkZqiZp2WKRUsQidZuwgsfh7fhaT30iuoSGbvE-5WMYTnu98fSAYnpWTjnTUaGSWNYjlRnRbweXHB689Axd-0u_4-IUakcKfMgCoZePKd0yxn9IW9aBVdbkrej013Xa-3SOHeikFZ2jaMqDj6a1EU_oVX2inq0jvqOmUPwHd5h5uFPueE0MUBzcu8VDto9wOL4eWAAxZkk-GTSfy8vdA1LrLYuLr1xyHyFZMl6j4ZLC4Y5sEuJB_HcEkSDQtBb_m5tNhjdPTKDHOr7hHU0vvOBe2dfh67mGhCDgDpeCaf-_usnv2jzAG5sxqr4w\u0026h=wneERg8LMf7RTAnQ4aSmqgyRvjvjZyNn-GSGmeX8Ksc", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "f4f44c4c-c78d-492f-9371-f3acdbec1bbc" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "139db171-2e22-47d5-a013-e30e6a11f7c7" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "139db171-2e22-47d5-a013-e30e6a11f7c7" ], + "x-ms-correlation-request-id": [ "139db171-2e22-47d5-a013-e30e6a11f7c7" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051053Z:139db171-2e22-47d5-a013-e30e6a11f7c7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 942A769367094E8099E43FDA550DAFE1 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:10:53Z" ], + "Date": [ "Mon, 21 Oct 2024 05:10:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "519" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=\",\"startTime\":\"2024-10-21T05:10:48.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=?api-version=2023-07-01-preview\u0026t=638650842485807304\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBn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Kd0yxn9IW9aBVdbkrej013Xa-3SOHeikFZ2jaMqDj6a1EU_oVX2inq0jvqOmUPwHd5h5uFPueE0MUBzcu8VDto9wOL4eWAAxZkk-GTSfy8vdA1LrLYuLr1xyHyFZMl6j4ZLC4Y5sEuJB_HcEkSDQtBb_m5tNhjdPTKDHOr7hHU0vvOBe2dfh67mGhCDgDpeCaf-_usnv2jzAG5sxqr4w\u0026h=wneERg8LMf7RTAnQ4aSmqgyRvjvjZyNn-GSGmeX8Ksc+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=?api-version=2023-07-01-preview\u0026t=638650842485807304\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0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GbvE-5WMYTnu98fSAYnpWTjnTUaGSWNYjlRnRbweXHB689Axd-0u_4-IUakcKfMgCoZePKd0yxn9IW9aBVdbkrej013Xa-3SOHeikFZ2jaMqDj6a1EU_oVX2inq0jvqOmUPwHd5h5uFPueE0MUBzcu8VDto9wOL4eWAAxZkk-GTSfy8vdA1LrLYuLr1xyHyFZMl6j4ZLC4Y5sEuJB_HcEkSDQtBb_m5tNhjdPTKDHOr7hHU0vvOBe2dfh67mGhCDgDpeCaf-_usnv2jzAG5sxqr4w\u0026h=wneERg8LMf7RTAnQ4aSmqgyRvjvjZyNn-GSGmeX8Ksc", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "f4f44c4c-c78d-492f-9371-f3acdbec1bbc" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "ad3a9bd6-6c43-4401-8244-06712ca2792b" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "ad3a9bd6-6c43-4401-8244-06712ca2792b" ], + "x-ms-correlation-request-id": [ "ad3a9bd6-6c43-4401-8244-06712ca2792b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051124Z:ad3a9bd6-6c43-4401-8244-06712ca2792b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EF3BFA1AB7724450A6A4DCB1F71C3CFC Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:23Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=\",\"startTime\":\"2024-10-21T05:10:48.0000000Z\",\"endTime\":\"2024-10-21T05:10:56.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "f4f44c4c-c78d-492f-9371-f3acdbec1bbc" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "28c01dc4-0e99-48c7-960b-2fb02f02e1df" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "28c01dc4-0e99-48c7-960b-2fb02f02e1df" ], + "x-ms-correlation-request-id": [ "28c01dc4-0e99-48c7-960b-2fb02f02e1df" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051124Z:28c01dc4-0e99-48c7-960b-2fb02f02e1df" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 55C62069D4E649F3B02AF95D10F07806 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:24Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ff9153f5-6401-43b8-b583-f107292d635a\"},\"etag\":\"\\\"2a0098a9-0000-0800-0000-6715e2600000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag\",\"name\":\"psdnsresolverpolicyforrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:07:28.0353737Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:10:48.4088397Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjUyZmQwNTY1LTc2ODMtNDBlYS1hMjc4LWQ1NDM4NjNkYzcxNSJ9?api-version=2023-07-01-preview\u0026t=638650842852341379\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0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ggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Jbow8S3Hd4C8jHngjDAbIYNPSZuFBM-56PwFexPBkoAGrXWNME_xGYLfKlQkoFE6sEu_8rwSN3IuQKezXCg1CrsquaUoUK49Ekuxd71hC3VITHrI9voyfgovndO1PTY9s4z2L-a21ldbnMqN9jgQHY4Cj4MWivbIvvtXh4sPwVlrVUhufsOn9mK5AxZHizfQkiyNXHCZLVRyaNI2XL5k5tKFiovg_eQ1TllEmQpL5VAmnqXoIF3Y8pFyqkXIuMJvT-3HJBhkvJpzAVM6GP7LxeoTBEDvaPpHkfejBSUw2Pdy9Cw6grkXUbaSiG6KVZNcQftpy3s1u0KmtQP4oW-LQw\u0026h=Ys4jRdohjAy8i1EeH_YF38zwsKMWjrVCDx5EqW2qzQE" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "1725f33e-d7a5-488f-8dde-fff8af99ee53" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjUyZmQwNTY1LTc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IAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=hOznHzzKodICU_8Az0q43ReUxWqWtdW71T0P5VnfoseK7cqU0cfrPaX5P9bBeUqq4_PUzotghz3TsT3xnQFnLM_apoDEoza-PuQjPZ9M3bxUIXRFldwsQKY9J4MaeUJ8nLQAwnMb3eK4loFAZiFMA4PzVpZytPWAq45MQG-EcZaIzlEai_18Pdktz8chOxJcQzFJyCrSKYPhN7iC-5vWsa-RXQLAFsWxPTnKGYGmnmLuXG3s0F7RrrMubAkYNRMT8F8uMc-XK__n8pqLCpf94pRo5MWOC-mrPLX3k5sQwXHkLRhp8JvDZOj_U_ZeJKLoQIfzb8Gi_OYt9_9Aa2hA-A\u0026h=bqWtk6tRh_AToTVzk7VPUd3fef0aTNy4wLORQfabLZ8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "1725f33e-d7a5-488f-8dde-fff8af99ee53" ], + "x-ms-correlation-request-id": [ "1725f33e-d7a5-488f-8dde-fff8af99ee53" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051125Z:1725f33e-d7a5-488f-8dde-fff8af99ee53" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 531DB41E703A4FC99B15B1A23E6F08EE Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:24Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "634" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"70013af2-0000-0800-0000-6715e27d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\",\"name\":\"psdnsresolverdomainlistforrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:06.3893415Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:25.0622602Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjUyZmQwNTY1LTc2ODMtNDBlYS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A2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=hOznHzzKodICU_8Az0q43ReUxWqWtdW71T0P5VnfoseK7cqU0cfrPaX5P9bBeUqq4_PUzotghz3TsT3xnQFnLM_apoDEoza-PuQjPZ9M3bxUIXRFldwsQKY9J4MaeUJ8nLQAwnMb3eK4loFAZiFMA4PzVpZytPWAq45MQG-EcZaIzlEai_18Pdktz8chOxJcQzFJyCrSKYPhN7iC-5vWsa-RXQLAFsWxPTnKGYGmnmLuXG3s0F7RrrMubAkYNRMT8F8uMc-XK__n8pqLCpf94pRo5MWOC-mrPLX3k5sQwXHkLRhp8JvDZOj_U_ZeJKLoQIfzb8Gi_OYt9_9Aa2hA-A\u0026h=bqWtk6tRh_AToTVzk7VPUd3fef0aTNy4wLORQfabLZ8+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/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+ "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "3db22acf-936d-4c81-b897-d6da8aa8486b" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "586ecb73-bdb5-4762-be9c-4e24e3310ca8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "586ecb73-bdb5-4762-be9c-4e24e3310ca8" ], + "x-ms-correlation-request-id": [ "586ecb73-bdb5-4762-be9c-4e24e3310ca8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051130Z:586ecb73-bdb5-4762-be9c-4e24e3310ca8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2AF7520BB6E3489D81DF67EF5A5CA05D Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:30Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjUyZmQwNTY1LTc2ODMtNDBlYS1hMjc4LWQ1NDM4NjNkYzcxNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjUyZmQwNTY1LTc2ODMtNDBlYS1hMjc4LWQ1NDM4NjNkYzcxNSJ9\",\"startTime\":\"2024-10-21T05:11:25.0000000Z\",\"endTime\":\"2024-10-21T05:11:26.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "3db22acf-936d-4c81-b897-d6da8aa8486b" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "b2cc52db-d77a-4fa4-a71c-f22f0944bfc5" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "b2cc52db-d77a-4fa4-a71c-f22f0944bfc5" ], + "x-ms-correlation-request-id": [ "b2cc52db-d77a-4fa4-a71c-f22f0944bfc5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051130Z:b2cc52db-d77a-4fa4-a71c-f22f0944bfc5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B9ABB4CFCCFE414697DAA7964D770BA0 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:30Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "669" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1d1e1c7a-c5b4-4ab7-8163-b90a843210b9\"},\"etag\":\"\\\"3d00c177-0000-0800-0000-6715e27e0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\",\"name\":\"psdnsresolverdomainlistforrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:06.3893415Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:25.0622602Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "474" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY3LTA3MjMtNDJiNy1hYzZjLWQzODU1YWM1NGI1ZiJ9?api-version=2023-07-01-preview\u0026t=638650842913925445\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZP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YBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=WGnGVMirIskPzT4g1yWt0lRZb6WqSUhTKe-KHXsWVtVqnN375jys8XR2terK-syb8X1vrR_GdEwccXJK4OdKPKl7jb38MS6jd6fBEu-x876MsSyqIMSB4-cwwpzH69rJsJRe_TgHpj1HtXdXv0TlIgdJ8ur_EB_BMarIbMvS3ISZVvpK5Q3mgSZGjQhotnfLD3b0wlRXLCsjmAkw8EVSf51kAp6oDYHMY783eOTM5yv-lG7-TDFpT06mIq_la6resiOuUMTZTQABHaPsYhAPJ3q_k3TCj7YNc9RGIvrVfBk5MCS48Zddu0Y8NYWKoDn93K43ppNY6UqAdh7P3Rrt3A\u0026h=9L494wSJ5yulZ98EBKxwqZxIMKIYdvgcNkYEvXTISzc" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "cbac06df-614e-418d-80a0-c9a6294b380f" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY3LTA3MjMtNDJiNy1hYzZjLWQzODU1YWM1NGI1Z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ADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=txPrJ-6sHO5rI1SfAcbN2dYnG0kLuzoK16Hbpo1lO_HsUcgUPjP2Db9b8t7tFpzwj7yCig_TEuoDX7MQS4nfTuFtHBWpJnZCuien5BTBUDWFvt3EKBKxs2guqQL4Lz0h90UwnwY_cDEIoCAM_CryIIk_7vMeCvGRgJLwfVDNwAOxgEU4hrCIW5NWtrN2zSwAY6vJ81BTOjw7vsGHdVlUXfHQx5UoJW5-aienMgaw1D0H5hGRu_77VL6CNW3dcm9rXNPdxhvC1eOYjHExebXQt9l2unif1DFPOTocPaxWg6cGKOHfVWP-FAnW2Ry0qpiskmQNVqmgsvg_Ta0tdcJF4Q\u0026h=pwnjKdM5HHuuMkkMwjPEdphSN6ZXlJy6YhpzIwWGIIg" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "cbac06df-614e-418d-80a0-c9a6294b380f" ], + "x-ms-correlation-request-id": [ "cbac06df-614e-418d-80a0-c9a6294b380f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051131Z:cbac06df-614e-418d-80a0-c9a6294b380f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 22DF1BDD8FF242C0818FB6F6BC24F588 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:30Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "984" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2a0028ae-0000-0800-0000-6715e2830000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag\",\"name\":\"psdnssecurityrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:13.5261021Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:31.2206703Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY3LTA3MjMtNDJiNy1hYzZjLWQzODU1YWM1NGI1ZiJ9?api-version=2023-07-01-preview\u0026t=638650842913769210\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFgg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JF4Q\u0026h=pwnjKdM5HHuuMkkMwjPEdphSN6ZXlJy6YhpzIwWGIIg+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY3LTA3MjMtNDJiNy1hYzZjLWQzODU1YWM1NGI1ZiJ9?api-version=2023-07-01-preview\u0026t=638650842913769210\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjc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ienMgaw1D0H5hGRu_77VL6CNW3dcm9rXNPdxhvC1eOYjHExebXQt9l2unif1DFPOTocPaxWg6cGKOHfVWP-FAnW2Ry0qpiskmQNVqmgsvg_Ta0tdcJF4Q\u0026h=pwnjKdM5HHuuMkkMwjPEdphSN6ZXlJy6YhpzIwWGIIg", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "9609f278-ff72-4948-a5af-df117b971ee5" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "7b3bc6c7-35bc-4397-b33f-c753282ee6eb" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "7b3bc6c7-35bc-4397-b33f-c753282ee6eb" ], + "x-ms-correlation-request-id": [ "7b3bc6c7-35bc-4397-b33f-c753282ee6eb" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051136Z:7b3bc6c7-35bc-4397-b33f-c753282ee6eb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5103DCD7248A4D7C89B03117568544BF Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:36Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY3LTA3MjMtNDJiNy1hYzZjLWQzODU1YWM1NGI1ZiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY3LTA3MjMtNDJiNy1hYzZjLWQzODU1YWM1NGI1ZiJ9\",\"startTime\":\"2024-10-21T05:11:31.0000000Z\",\"endTime\":\"2024-10-21T05:11:36.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "9609f278-ff72-4948-a5af-df117b971ee5" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "930935ad-bdfc-4df4-8199-6be75bb1fd33" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "930935ad-bdfc-4df4-8199-6be75bb1fd33" ], + "x-ms-correlation-request-id": [ "930935ad-bdfc-4df4-8199-6be75bb1fd33" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051137Z:930935ad-bdfc-4df4-8199-6be75bb1fd33" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4274E8A39833422A8C3E4D249B8C5058 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:36Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "985" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"060023f2-0000-0800-0000-6715e2880000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag\",\"name\":\"psdnssecurityrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:13.5261021Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:31.2206703Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "77b5c449-9ed9-4dd6-b9a7-d6d9cb31d1f6" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f5ef1ad7-21ee-476c-a9f6-fefc95ae7518" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f5ef1ad7-21ee-476c-a9f6-fefc95ae7518" ], + "x-ms-correlation-request-id": [ "f5ef1ad7-21ee-476c-a9f6-fefc95ae7518" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051137Z:f5ef1ad7-21ee-476c-a9f6-fefc95ae7518" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 06A2222A20994B82AD33425FD049DDE2 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:37Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "985" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"060023f2-0000-0800-0000-6715e2880000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag\",\"name\":\"psdnssecurityrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:13.5261021Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:31.2206703Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUw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VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=E0a7pbAn63rK4GyDowjz_mB3y5arFDNmCAqmViA6VYp552XTO240NkNA5dY3C3tXWlEOvG_25YgdqoNctSrJtbnLpEbuNXGuwlSLCQQ2p3FwmqRSuVwDNus2hLQtzORGCUoDXdJnGEbeU64kuMYQKsAbV7QnkS9Z62Du4oLuVj64GPrepGA5L1cotOnICZGi2m_LcZ6ELSIsvOeJyUcRsRVYXdokidGROED68UsJ8DNDz8At0sv_KRnnmrU9CfLT9isEHSUPv4md00vAzw1bJppKqe40icjli0SNjAAwVeOcbbWvNTPV9GvNuJjECmcdd2MFkys4KKGyusMaLycr0g\u0026h=DhkZDfntp-iJ57v1-k6eJvFSGyvNUjpuBYO8Lr808kQ" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "6e6b3f12-1aa2-4f9b-9436-c78cfdce504b" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQ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vcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=dm4rZSLR_ZEpzy35Pvxxtz516ueRCnmlB02vVTJ_nNRxgyj6dXkEFXXV73-3jpF1iYR9sAztjcjCz4FNbmO3N5GzEItuetaHMsi3MzFNMwiy31SDMMJlXLVUliNHl29mht_JSkgvDFvRrjejv7dpvpQfFADhvGLm_vg0C8MS9uuvRzK_UDCGKOfGgJ9tEHXE7DqyKwT_IZWcquMudPASqElN79o7XfskCMfehsCLi0OIW6gKBlazERGbw_ew8YYUs5gE0_Oi5TId2mVNntbvpWdwMIeAXyl4kD-e9FyD1rTLFC--_1zLAyy6hNFe2xgvN2upY-6ayQonxexRjfjT7g\u0026h=vHiRubMwfGpaZFgosUXZX9p6QrF8DH5NPM1N_eqMhT4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "6e6b3f12-1aa2-4f9b-9436-c78cfdce504b" ], + "x-ms-correlation-request-id": [ "6e6b3f12-1aa2-4f9b-9436-c78cfdce504b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051138Z:6e6b3f12-1aa2-4f9b-9436-c78cfdce504b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0F461168DA5F46F2BB3EE9999496EA3E Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:37Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"700147f6-0000-0800-0000-6715e28a0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag\",\"name\":\"psdnsresolverpolicyforrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:20.9635303Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:37.9554892Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwO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jJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=dm4rZSLR_ZEpzy35Pvxxtz516ueRCnmlB02vVTJ_nNRxgyj6dXkEFXXV73-3jpF1iYR9sAztjcjCz4FNbmO3N5GzEItuetaHMsi3MzFNMwiy31SDMMJlXLVUliNHl29mht_JSkgvDFvRrjejv7dpvpQfFADhvGLm_vg0C8MS9uuvRzK_UDCGKOfGgJ9tEHXE7DqyKwT_IZWcquMudPASqElN79o7XfskCMfehsCLi0OIW6gKBlazERGbw_ew8YYUs5gE0_Oi5TId2mVNntbvpWdwMIeAXyl4kD-e9FyD1rTLFC--_1zLAyy6hNFe2xgvN2upY-6ayQonxexRjfjT7g\u0026h=vHiRubMwfGpaZFgosUXZX9p6QrF8DH5NPM1N_eqMhT4+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBG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SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=dm4rZSLR_ZEpzy35Pvxxtz516ueRCnmlB02vVTJ_nNRxgyj6dXkEFXXV73-3jpF1iYR9sAztjcjCz4FNbmO3N5GzEItuetaHMsi3MzFNMwiy31SDMMJlXLVUliNHl29mht_JSkgvDFvRrjejv7dpvpQfFADhvGLm_vg0C8MS9uuvRzK_UDCGKOfGgJ9tEHXE7DqyKwT_IZWcquMudPASqElN79o7XfskCMfehsCLi0OIW6gKBlazERGbw_ew8YYUs5gE0_Oi5TId2mVNntbvpWdwMIeAXyl4kD-e9FyD1rTLFC--_1zLAyy6hNFe2xgvN2upY-6ayQonxexRjfjT7g\u0026h=vHiRubMwfGpaZFgosUXZX9p6QrF8DH5NPM1N_eqMhT4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "3cc0c76a-36fe-4ad8-b413-b9cf351a9340" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "dd7b4197-5881-45bd-9103-25bc8092c1df" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "dd7b4197-5881-45bd-9103-25bc8092c1df" ], + "x-ms-correlation-request-id": [ "dd7b4197-5881-45bd-9103-25bc8092c1df" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051143Z:dd7b4197-5881-45bd-9103-25bc8092c1df" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E75E4EA2E591483E9F3B0FE6D8E0BACA Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:43Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "519" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=\",\"startTime\":\"2024-10-21T05:11:38.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAW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Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmK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\u0026h=vHiRubMwfGpaZFgosUXZX9p6QrF8DH5NPM1N_eqMhT4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "3cc0c76a-36fe-4ad8-b413-b9cf351a9340" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "004373f3-4a16-487d-8c89-80fed7a78dab" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "004373f3-4a16-487d-8c89-80fed7a78dab" ], + "x-ms-correlation-request-id": [ "004373f3-4a16-487d-8c89-80fed7a78dab" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051213Z:004373f3-4a16-487d-8c89-80fed7a78dab" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 85945DB1BF9A486EA30F6309AC563B84 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:13Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=\",\"startTime\":\"2024-10-21T05:11:38.0000000Z\",\"endTime\":\"2024-10-21T05:11:46.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "3cc0c76a-36fe-4ad8-b413-b9cf351a9340" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "17e08cdd-f5be-4338-99ba-f2b08e1a02b3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "17e08cdd-f5be-4338-99ba-f2b08e1a02b3" ], + "x-ms-correlation-request-id": [ "17e08cdd-f5be-4338-99ba-f2b08e1a02b3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051214Z:17e08cdd-f5be-4338-99ba-f2b08e1a02b3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9964351361B940CF95F74B0DAA35B7EF Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:14Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a6f16ac6-8625-4427-96a7-a8c895d0d976\"},\"etag\":\"\\\"2a0024b0-0000-0800-0000-6715e2920000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag\",\"name\":\"psdnsresolverpolicyforrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:20.9635303Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:37.9554892Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9?api-version=2023-07-01-preview\u0026t=638650843348536385\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWY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rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Wq_9UiVN1jDEXFQ2cpRwQRyzNrsFVZrS00QUWuHItoh_LVxDTVQr-weyFo995JRJixRDeadb7nm8ImCdpRe-mn4bPqgUGRf8uh36ikZQ3blpFpDBnXJ4kD0R7solfiFxYev8w2x4YxIUc2f95rrd5boBziqZl7Re1j1dya52bWDTUnzoqsjALOfUns73Dzn04vTEfwMkqL7doqnqB8dJueoCD8IwZBv2NHcAXd6nMXC2RQEIbB1dyA6pKX6hUkpFxRxUTdd-l5trnZsPm4SB82wF6DDnRjpLa_fJLjQ678VpLZP8Vdlq-291JIWOU2tWYToeNxbhLzvr_Lefkx6hxQ\u0026h=71ZPUT3jOFUs8Dg0nIw1sEtKj16Fd8MKReIWlwVLvXM" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "e790500c-2a2c-44bc-8592-2c7e0735e5a0" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9?api-version=2023-07-01-preview\u0026t=638650843348380139\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4w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AfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=hmpYlEEuvaonYUEyoRsVbtO6jIPqezhmc4VW7Aox3m85odESoRZCKCh-vf7GCJuCgPMaeKmAk2cpvvftuSyGasX1FP9vFzHYTWg8D3M4uKLbX9rB4B49D40n18o25sh2dMzAL-9WqjUQOE_v2h9CXewPp9A2GGFazduJi4lVswX_VK02HzKW-E0M5odkOc-eWjBvFwKxMzk_S0octDxJqcHjwJ5waWlll4k39NJlM5zHak45IYV_va4vhE2JIfRhsJCkI93XcTPwpQW9xHvXyH1vrapXs0hkHzgqTX3A0xBJg2rcCvZhVesWBkLq4M-7BhnJe4LfBMLTkkAMnRCriA\u0026h=McHGA5BVRSSNd6hRoBF2eVkgdpD3mK6Gyca8FSfMyeI" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "e790500c-2a2c-44bc-8592-2c7e0735e5a0" ], + "x-ms-correlation-request-id": [ "e790500c-2a2c-44bc-8592-2c7e0735e5a0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051214Z:e790500c-2a2c-44bc-8592-2c7e0735e5a0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: ECD619CDE15643E48A0F9E5F44B5BF71 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:14Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "634" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"71011b01-0000-0800-0000-6715e2ae0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\",\"name\":\"psdnsresolverdomainlistforrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:27.8891117Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:12:14.7442696Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9?api-version=2023-07-01-preview\u0026t=638650843348380139\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY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2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=hmpYlEEuvaonYUEyoRsVbtO6jIPqezhmc4VW7Aox3m85odESoRZCKCh-vf7GCJuCgPMaeKmAk2cpvvftuSyGasX1FP9vFzHYTWg8D3M4uKLbX9rB4B49D40n18o25sh2dMzAL-9WqjUQOE_v2h9CXewPp9A2GGFazduJi4lVswX_VK02HzKW-E0M5odkOc-eWjBvFwKxMzk_S0octDxJqcHjwJ5waWlll4k39NJlM5zHak45IYV_va4vhE2JIfRhsJCkI93XcTPwpQW9xHvXyH1vrapXs0hkHzgqTX3A0xBJg2rcCvZhVesWBkLq4M-7BhnJe4LfBMLTkkAMnRCriA\u0026h=McHGA5BVRSSNd6hRoBF2eVkgdpD3mK6Gyca8FSfMyeI+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9?api-version=2023-07-01-preview\u0026t=638650843348380139\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYD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NAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=hmpYlEEuvaonYUEyoRsVbtO6jIPqezhmc4VW7Aox3m85odESoRZCKCh-vf7GCJuCgPMaeKmAk2cpvvftuSyGasX1FP9vFzHYTWg8D3M4uKLbX9rB4B49D40n18o25sh2dMzAL-9WqjUQOE_v2h9CXewPp9A2GGFazduJi4lVswX_VK02HzKW-E0M5odkOc-eWjBvFwKxMzk_S0octDxJqcHjwJ5waWlll4k39NJlM5zHak45IYV_va4vhE2JIfRhsJCkI93XcTPwpQW9xHvXyH1vrapXs0hkHzgqTX3A0xBJg2rcCvZhVesWBkLq4M-7BhnJe4LfBMLTkkAMnRCriA\u0026h=McHGA5BVRSSNd6hRoBF2eVkgdpD3mK6Gyca8FSfMyeI", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "f4a5cfc3-ab21-4a38-8573-3f1adc225685" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c6b98926-fc93-4b01-92a9-d6c7522c00fe" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c6b98926-fc93-4b01-92a9-d6c7522c00fe" ], + "x-ms-correlation-request-id": [ "c6b98926-fc93-4b01-92a9-d6c7522c00fe" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051220Z:c6b98926-fc93-4b01-92a9-d6c7522c00fe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 75E5462D7CBA4552AB9C326928CE4AA9 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:19Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9\",\"startTime\":\"2024-10-21T05:12:14.0000000Z\",\"endTime\":\"2024-10-21T05:12:16.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "f4a5cfc3-ab21-4a38-8573-3f1adc225685" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "455b3484-53d7-4d9e-9d7f-b3a29e8e6d40" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "455b3484-53d7-4d9e-9d7f-b3a29e8e6d40" ], + "x-ms-correlation-request-id": [ "455b3484-53d7-4d9e-9d7f-b3a29e8e6d40" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051220Z:455b3484-53d7-4d9e-9d7f-b3a29e8e6d40" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B39BC399634B431CAD8CDE12210EE7B1 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:20Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "669" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"4716b1c8-a59f-4c92-9044-4a848aa93bb3\"},\"etag\":\"\\\"3d00c97e-0000-0800-0000-6715e2b00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\",\"name\":\"psdnsresolverdomainlistforrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:27.8891117Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:12:14.7442696Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "474" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1hNDg4LTg2OWI4ODg2MGIwNyJ9?api-version=2023-07-01-preview\u0026t=638650843417357758\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9d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uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=RehoulOthOUXtOAqTCZT7zPSEROkL64kuOnXvxqpOQXDDTesvzUy23m-PWP5HDjyAtacfTetILPNh3WpNkn4PHNTfiCEOFMhbRShtngAKD2OFlkHLrq2h21u6ComJGN2dRjyWPLC246qx_NA-JSKGQUoZF1YGjzZehOEFum_KStefgWohRjyIjNXhjcEiGiDgrkyEGoFfEZkxtL84zP_Hucrq_M-l0vUlVxNtYZb6pEZWium9inab185Sgv6hHNoDnbCzQAzIEKhIsvrW9SQhmnJ1SZ-6g-lzUZPgEZoY1OPnBY2_TmvcatLZ4JwKIHP8x16K1m4ikGCM6zQJAu0xA\u0026h=ebRwWLbQJE04INxt8VsTs0wyoWVeNfENvjxI8woaapQ" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "d7030fed-6a5f-4525-9987-77180862e7b5" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1hNDg4LTg2OWI4ODg2MGIwNyJ9?api-version=2023-07-01-preview\u0026t=638650843417201563\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJl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ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=7lupxgiBDrDPXpVW02IZyoF1MgulXrQ6X_sYllrpzXAA3XhY8DiqOy2FYMR16Blgf_F5SkMXz1T2_ptcDxKtyaG0-QD_6xj8uD5xKzuTMplHuf2Zx77Ozcb7EpzoZzxp2wu0RnLx30fHZn3AltJs8bH1g75baIg76D7bWAQNHuttYe5WT_DcLlNMzXF-zgc6BOXcPZF4ShfDS37Uwnx6jM86_-aDKUG8pyEd82OiwRRvr7RKWBlFdoLQNBDV7-AEEheyrUBXqjzfp14Aur2Q8jWzKPUgqVKDouYQMKPzrWiMVF2Rr6eCS1v46vscUQ16ONYx-iR9uDpXk1iHrGWkTQ\u0026h=WJhK-ePhbg0R7AR_Oq2lKk2KiPMZ5SzMJScwYGkKwyM" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "d7030fed-6a5f-4525-9987-77180862e7b5" ], + "x-ms-correlation-request-id": [ "d7030fed-6a5f-4525-9987-77180862e7b5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051221Z:d7030fed-6a5f-4525-9987-77180862e7b5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 30DA89E3116548EF9C2110D7BEF21A64 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:20Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "984" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2a00a4b4-0000-0800-0000-6715e2b50000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag\",\"name\":\"psdnssecurityrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:09:05.1151602Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:12:21.5639053Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1hNDg4LTg2OWI4ODg2MGIwNyJ9?api-version=2023-07-01-preview\u0026t=638650843417201563\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQB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EFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=7lupxgiBDrDPXpVW02IZyoF1MgulXrQ6X_sYllrpzXAA3XhY8DiqOy2FYMR16Blgf_F5SkMXz1T2_ptcDxKtyaG0-QD_6xj8uD5xKzuTMplHuf2Zx77Ozcb7EpzoZzxp2wu0RnLx30fHZn3AltJs8bH1g75baIg76D7bWAQNHuttYe5WT_DcLlNMzXF-zgc6BOXcPZF4ShfDS37Uwnx6jM86_-aDKUG8pyEd82OiwRRvr7RKWBlFdoLQNBDV7-AEEheyrUBXqjzfp14Aur2Q8jWzKPUgqVKDouYQMKPzrWiMVF2Rr6eCS1v46vscUQ16ONYx-iR9uDpXk1iHrGWkTQ\u0026h=WJhK-ePhbg0R7AR_Oq2lKk2KiPMZ5SzMJScwYGkKwyM+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1hNDg4LTg2OWI4ODg2MGIwNyJ9?api-version=2023-07-01-pre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ZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=7lupxgiBDrDPXpVW02IZyoF1MgulXrQ6X_sYllrpzXAA3XhY8DiqOy2FYMR16Blgf_F5SkMXz1T2_ptcDxKtyaG0-QD_6xj8uD5xKzuTMplHuf2Zx77Ozcb7EpzoZzxp2wu0RnLx30fHZn3AltJs8bH1g75baIg76D7bWAQNHuttYe5WT_DcLlNMzXF-zgc6BOXcPZF4ShfDS37Uwnx6jM86_-aDKUG8pyEd82OiwRRvr7RKWBlFdoLQNBDV7-AEEheyrUBXqjzfp14Aur2Q8jWzKPUgqVKDouYQMKPzrWiMVF2Rr6eCS1v46vscUQ16ONYx-iR9uDpXk1iHrGWkTQ\u0026h=WJhK-ePhbg0R7AR_Oq2lKk2KiPMZ5SzMJScwYGkKwyM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "e2059170-3b30-4cd9-9f45-9b6c7126dc50" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8821246b-9054-463e-8197-18bbb97625b0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "8821246b-9054-463e-8197-18bbb97625b0" ], + "x-ms-correlation-request-id": [ "8821246b-9054-463e-8197-18bbb97625b0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051227Z:8821246b-9054-463e-8197-18bbb97625b0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 231F4891A0A1468997F624726095E31A Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1hNDg4LTg2OWI4ODg2MGIwNyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1hNDg4LTg2OWI4ODg2MGIwNyJ9\",\"startTime\":\"2024-10-21T05:12:21.0000000Z\",\"endTime\":\"2024-10-21T05:12:26.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "e2059170-3b30-4cd9-9f45-9b6c7126dc50" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "69291829-2c13-431f-9221-14d1a66f8e5b" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "69291829-2c13-431f-9221-14d1a66f8e5b" ], + "x-ms-correlation-request-id": [ "69291829-2c13-431f-9221-14d1a66f8e5b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051227Z:69291829-2c13-431f-9221-14d1a66f8e5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E20FC87BBCCD44128C32F46F71584E53 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:27Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "985" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"06005af2-0000-0800-0000-6715e2ba0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag\",\"name\":\"psdnssecurityrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:09:05.1151602Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:12:21.5639053Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "06813e77-67be-4e18-81f9-379f2430639d" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "0b0d18f3-6cce-4a1f-ad5b-0d4b3bb7e9cd" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "59999" ], + "x-ms-request-id": [ "0b0d18f3-6cce-4a1f-ad5b-0d4b3bb7e9cd" ], + "x-ms-correlation-request-id": [ "0b0d18f3-6cce-4a1f-ad5b-0d4b3bb7e9cd" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051227Z:0b0d18f3-6cce-4a1f-ad5b-0d4b3bb7e9cd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 84490FD3B40C47F99FFA7658B2733A41 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:27Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "997" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"06005af2-0000-0800-0000-6715e2ba0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag\",\"name\":\"psdnssecurityrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:09:05.1151602Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:12:21.5639053Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..da7abdd95f34 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 @@ -0,0 +1,50 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDnsResolverPolicyDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDnsResolverPolicyDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzDnsResolverPolicyDnsSecurityRule' { + It 'Get single DNS security rule by name, expect DNS security rule by name retrieved' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename1m0cdag"; + $dnsSecurityRuleName = "psdnssecurityrulename1m0cdag"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename1m0cdag"; + $resourceGroupName = "powershell-test-rg-debug-get"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ACT - ASSERT + {Get-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName} | Should -Not -Throw + } + + It 'List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename2n1edag"; + $dnsSecurityRuleName = "psdnssecurityrulename2n1edag"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename2n1edag"; + $resourceGroupName = "powershell-test-rg-debug-get"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ACT + $securityRules = Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + $securityRules.Count | Should -BeGreaterThan 0 + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Recording.json new file mode 100644 index 000000000000..b73eb1b8d96a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Recording.json @@ -0,0 +1,640 @@ +{ + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "f9e206f2-c86a-47cc-a7d3-48645ff85831" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTBmODUwMzktZTljOC00MDE5LWJhN2UtMzQ0ZTJkMWJkYmRkIn0=?api-version=2023-07-01-preview\u0026t=638650877713407886\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQE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ybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=HOm89snumR5iQ3SEyJpx9fvPkvvrGDG0Av_Q2Wqmtowi1DnLvA00sHg7Zec1p4101AQKI2EtJP1fxANrLmGdmmxAhMbK5bR_pZ7ZRKK9cdGUrX3ReehPrMHf6W9qXFCP0GFGhK_qdkYQZZiFD-gvL5uUXYUiAp0Zzw3FI0OvnRFdeOU1uTQqwF8d8hajcgfjvkbMzWGNFNawAISQGUR2YG7aDGVqlNM3pEUMa7hWyG1Jpr3Zgv9hOPcBe47kE42fFvz2MLcOLh63QauVKEq121cgMGELvxsFaElr3h3f1L2k9rn4XKOylsNWmDw7OAxxS6Pvxz2DbH_4sHFDnkmlLw\u0026h=qssPt4m4ZEbzvpU_9GOhX99LAqXZi2ILNRUhqFzSbNk" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "f9e206f2-c86a-47cc-a7d3-48645ff85831" ], + "x-ms-correlation-request-id": [ "f9e206f2-c86a-47cc-a7d3-48645ff85831" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060931Z:f9e206f2-c86a-47cc-a7d3-48645ff85831" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 07196EE0EE5845C1ABA65AB8E1E20179 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:29Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"74010ddf-0000-0800-0000-6715f01b0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a\",\"name\":\"psdnsresolverpolicyforlinknameafa9789a\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:31.060822Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:31.060822Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTBmODUwMzktZTljOC00MDE5LWJhN2UtMzQ0ZTJkMWJkYmRkIn0=?api-version=2023-07-01-preview\u0026t=638650877713407886\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZW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6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=HOm89snumR5iQ3SEyJpx9fvPkvvrGDG0Av_Q2Wqmtowi1DnLvA00sHg7Zec1p4101AQKI2EtJP1fxANrLmGdmmxAhMbK5bR_pZ7ZRKK9cdGUrX3ReehPrMHf6W9qXFCP0GFGhK_qdkYQZZiFD-gvL5uUXYUiAp0Zzw3FI0OvnRFdeOU1uTQqwF8d8hajcgfjvkbMzWGNFNawAISQGUR2YG7aDGVqlNM3pEUMa7hWyG1Jpr3Zgv9hOPcBe47kE42fFvz2MLcOLh63QauVKEq121cgMGELvxsFaElr3h3f1L2k9rn4XKOylsNWmDw7OAxxS6Pvxz2DbH_4sHFDnkmlLw\u0026h=qssPt4m4ZEbzvpU_9GOhX99LAqXZi2ILNRUhqFzSbNk+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTBmODUwMzktZTljOC00MDE5LWJhN2UtMzQ0ZTJkMWJkYmRkIn0=?api-version=2023-07-01-preview\u0026t=638650877713407886\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY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0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=HOm89snumR5iQ3SEyJpx9fvPkvvrGDG0Av_Q2Wqmtowi1DnLvA00sHg7Zec1p4101AQKI2EtJP1fxANrLmGdmmxAhMbK5bR_pZ7ZRKK9cdGUrX3ReehPrMHf6W9qXFCP0GFGhK_qdkYQZZiFD-gvL5uUXYUiAp0Zzw3FI0OvnRFdeOU1uTQqwF8d8hajcgfjvkbMzWGNFNawAISQGUR2YG7aDGVqlNM3pEUMa7hWyG1Jpr3Zgv9hOPcBe47kE42fFvz2MLcOLh63QauVKEq121cgMGELvxsFaElr3h3f1L2k9rn4XKOylsNWmDw7OAxxS6Pvxz2DbH_4sHFDnkmlLw\u0026h=qssPt4m4ZEbzvpU_9GOhX99LAqXZi2ILNRUhqFzSbNk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "9b258cf5-2d2d-4ed1-840b-07a4c03e995c" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "bbe7889b-38b0-44ab-bc74-b00def41aaeb" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "bbe7889b-38b0-44ab-bc74-b00def41aaeb" ], + "x-ms-correlation-request-id": [ "bbe7889b-38b0-44ab-bc74-b00def41aaeb" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060936Z:bbe7889b-38b0-44ab-bc74-b00def41aaeb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0C4FB6F3A7B34D13B591CF882756F17E Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:36Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTBmODUwMzktZTljOC00MDE5LWJhN2UtMzQ0ZTJkMWJkYmRkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTBmODUwMzktZTljOC00MDE5LWJhN2UtMzQ0ZTJkMWJkYmRkIn0=\",\"startTime\":\"2024-10-21T06:09:31.0000000Z\",\"endTime\":\"2024-10-21T06:09:32.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "9b258cf5-2d2d-4ed1-840b-07a4c03e995c" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "53cbc54c-f956-4b5f-85f8-cc094a8744da" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "53cbc54c-f956-4b5f-85f8-cc094a8744da" ], + "x-ms-correlation-request-id": [ "53cbc54c-f956-4b5f-85f8-cc094a8744da" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060937Z:53cbc54c-f956-4b5f-85f8-cc094a8744da" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 75C82AA326AF4D95B2A0B92CD23E7709 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:36Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"95a2260e-acba-4c1f-9aea-574180f17464\"},\"etag\":\"\\\"2c00346b-0000-0800-0000-6715f01b0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a\",\"name\":\"psdnsresolverpolicyforlinknameafa9789a\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:31.060822Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:31.060822Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknameafa9789a\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "277" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "08c1edd1-7eda-4b4f-afa4-5d9ababc1185" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjAzOTJjNWU5LTRiMTUtNDU1Yy1iZTg5LWJmZjQ3NjQ3MjE0OSJ9?api-version=2023-07-01-preview\u0026t=638650877784193412\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEe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c9ALOvptraLOVREWSW21Cmauzm77DCQfQyZbAeR1NRQ5-wA9vHuG9UM7ZvIUOLIA2lUjLBEWI3hTIafmM7_ZHshFqQdDA1kwokmbW8cMN85qrqDIzMQ5Cx6H_ZXvsNrisq4XqfkAJxmKpl-Ov1O0TXGVDhEwVPySMWs-G9kN7Ovg3E71Eu0R0KhxTPbspNEEq_0Vb5cx0dUXOFcK6ij_qeUdqL-m4_gkCv7_aoDIFI5ubP4EQ8TgPY01BvaUfTw5MRQidEZsMw5ZM95Xup7lsRHu_paGuIZPo-2oJmQ5cLz3gFn7W7PVDBRg_y0J1u73AevuggVlra4cFaVfMvSlQ\u0026h=7DOSD6ZgeKNi7pDzOMlGb-2JQgQjOMDIx1zq12Tewzs" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "08c1edd1-7eda-4b4f-afa4-5d9ababc1185" ], + "x-ms-correlation-request-id": [ "08c1edd1-7eda-4b4f-afa4-5d9ababc1185" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060938Z:08c1edd1-7eda-4b4f-afa4-5d9ababc1185" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 96E460DD1E7A4DED97C92D3FCD46C1DE Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:37Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "835" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknameafa9789a\"},\"provisioningState\":\"Creating\"},\"etag\":\"\\\"2c001e6c-0000-0800-0000-6715f0220000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a\",\"name\":\"psdnsresolverpolicylinknameafa9789a\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:38.2637948Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:38.2637948Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjAzOTJjNWU5LTRiMTUtNDU1Yy1iZTg5LWJmZjQ3NjQ3MjE0OSJ9?api-version=2023-07-01-preview\u0026t=638650877784193412\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86B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qpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=wc9ALOvptraLOVREWSW21Cmauzm77DCQfQyZbAeR1NRQ5-wA9vHuG9UM7ZvIUOLIA2lUjLBEWI3hTIafmM7_ZHshFqQdDA1kwokmbW8cMN85qrqDIzMQ5Cx6H_ZXvsNrisq4XqfkAJxmKpl-Ov1O0TXGVDhEwVPySMWs-G9kN7Ovg3E71Eu0R0KhxTPbspNEEq_0Vb5cx0dUXOFcK6ij_qeUdqL-m4_gkCv7_aoDIFI5ubP4EQ8TgPY01BvaUfTw5MRQidEZsMw5ZM95Xup7lsRHu_paGuIZPo-2oJmQ5cLz3gFn7W7PVDBRg_y0J1u73AevuggVlra4cFaVfMvSlQ\u0026h=7DOSD6ZgeKNi7pDzOMlGb-2JQgQjOMDIx1zq12Tewzs+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjAzOTJjNWU5LTRiMTUtNDU1Yy1iZTg5LWJmZjQ3NjQ3MjE0OSJ9?api-version=2023-07-01-preview\u0026t=638650877784193412\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdG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YAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=wc9ALOvptraLOVREWSW21Cmauzm77DCQfQyZbAeR1NRQ5-wA9vHuG9UM7ZvIUOLIA2lUjLBEWI3hTIafmM7_ZHshFqQdDA1kwokmbW8cMN85qrqDIzMQ5Cx6H_ZXvsNrisq4XqfkAJxmKpl-Ov1O0TXGVDhEwVPySMWs-G9kN7Ovg3E71Eu0R0KhxTPbspNEEq_0Vb5cx0dUXOFcK6ij_qeUdqL-m4_gkCv7_aoDIFI5ubP4EQ8TgPY01BvaUfTw5MRQidEZsMw5ZM95Xup7lsRHu_paGuIZPo-2oJmQ5cLz3gFn7W7PVDBRg_y0J1u73AevuggVlra4cFaVfMvSlQ\u0026h=7DOSD6ZgeKNi7pDzOMlGb-2JQgQjOMDIx1zq12Tewzs", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "6eb56caa-ae6c-4653-a962-9e21236eb66d" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "7be900e6-2254-4f80-91cb-63787d56c179" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "7be900e6-2254-4f80-91cb-63787d56c179" ], + "x-ms-correlation-request-id": [ "7be900e6-2254-4f80-91cb-63787d56c179" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060943Z:7be900e6-2254-4f80-91cb-63787d56c179" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 08B00BC46459458F8E4EBE31827B77A5 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:43Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjAzOTJjNWU5LTRiMTUtNDU1Yy1iZTg5LWJmZjQ3NjQ3MjE0OSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjAzOTJjNWU5LTRiMTUtNDU1Yy1iZTg5LWJmZjQ3NjQ3MjE0OSJ9\",\"startTime\":\"2024-10-21T06:09:38.0000000Z\",\"endTime\":\"2024-10-21T06:09:40.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "6eb56caa-ae6c-4653-a962-9e21236eb66d" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "082d1ad6-65d9-4c24-9939-57c50894e1ce" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "082d1ad6-65d9-4c24-9939-57c50894e1ce" ], + "x-ms-correlation-request-id": [ "082d1ad6-65d9-4c24-9939-57c50894e1ce" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060944Z:082d1ad6-65d9-4c24-9939-57c50894e1ce" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 086F39E44DC542FF86670744E944ECD9 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:43Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "836" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknameafa9789a\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00556c-0000-0800-0000-6715f0230000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a\",\"name\":\"psdnsresolverpolicylinknameafa9789a\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:38.2637948Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:38.2637948Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "84949bb8-c116-47ef-98e3-798bb7ed9265" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c76764f4-7051-4436-87c6-950279f64258" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c76764f4-7051-4436-87c6-950279f64258" ], + "x-ms-correlation-request-id": [ "c76764f4-7051-4436-87c6-950279f64258" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060944Z:c76764f4-7051-4436-87c6-950279f64258" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C8734445BF6E43F9B9FB931DBD58B050 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:44Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "836" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknameafa9789a\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00556c-0000-0800-0000-6715f0230000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a\",\"name\":\"psdnsresolverpolicylinknameafa9789a\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:38.2637948Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:38.2637948Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "bdbe7e02-2a36-4d77-85e1-353a84a07be8" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=?api-version=2023-07-01-preview\u0026t=638650877920929971\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHi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rDnKAn0pQzJ1DQ\u0026h=-_5Klhn3wAjnS40kbMQbkjGOFKRUSPyUJRFN_sCbuUQ" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "bdbe7e02-2a36-4d77-85e1-353a84a07be8" ], + "x-ms-correlation-request-id": [ "bdbe7e02-2a36-4d77-85e1-353a84a07be8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060952Z:bdbe7e02-2a36-4d77-85e1-353a84a07be8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0BE99CDE886C4E38BA7A44552B5FF4DE Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:50Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"7401a2e5-0000-0800-0000-6715f02f0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa\",\"name\":\"psdnsresolverpolicyforlinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:51.8898705Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:51.8898705Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=?api-version=2023-07-01-preview\u0026t=638650877920929971\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcB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SPyUJRFN_sCbuUQ+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=?api-version=2023-07-01-preview\u0026t=638650877920929971\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHA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c6-_vwv2YdI_uI5Ah7atO58GZkZT99G39IQ_HOn_gy0pRcztBzJ8rDnKAn0pQzJ1DQ\u0026h=-_5Klhn3wAjnS40kbMQbkjGOFKRUSPyUJRFN_sCbuUQ", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "d7a81ac5-a98a-42e7-85a4-f9c561ac7358" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c64512af-7c03-45cf-9321-7ab58ae312ea" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c64512af-7c03-45cf-9321-7ab58ae312ea" ], + "x-ms-correlation-request-id": [ "c64512af-7c03-45cf-9321-7ab58ae312ea" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060957Z:c64512af-7c03-45cf-9321-7ab58ae312ea" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7A69F88EF4824888A54FE816B9755C06 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:57Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "519" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=\",\"startTime\":\"2024-10-21T06:09:51.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=?api-version=2023-07-01-preview\u0026t=638650877920929971\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_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_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=w1nc3cq2Wq5RFc_9i28Ru9_zvvzzkwjMvRGvQ0PkrykJeM_xIosRbuHxuMA1NZxl0izJXWHoLKFN6UtekJhXm3-ggJY6skbuyQ_SWKUKvzXgldyzj1f51CbrIioEsk5F5aB-sS2lslZLuNhMphbq7Ouaw4NHc1r7vnuEhTneXfWJxMKVmRhVlByELbUH4fZxqEDLcl0IfEAzUHQM2r441gs8bbrXyluosGffacmbinoX6DXnY2D3iAMotFuDbBjd2D233Aw6c_QMzvmB7TO3c6-_vwv2YdI_uI5Ah7atO58GZkZT99G39IQ_HOn_gy0pRcztBzJ8rDnKAn0pQzJ1DQ\u0026h=-_5Klhn3wAjnS40kbMQbkjGOFKRUSPyUJRFN_sCbuUQ+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=?api-version=2023-07-01-preview\u0026t=638650877920929971\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5h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jAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=w1nc3cq2Wq5RFc_9i28Ru9_zvvzzkwjMvRGvQ0PkrykJeM_xIosRbuHxuMA1NZxl0izJXWHoLKFN6UtekJhXm3-ggJY6skbuyQ_SWKUKvzXgldyzj1f51CbrIioEsk5F5aB-sS2lslZLuNhMphbq7Ouaw4NHc1r7vnuEhTneXfWJxMKVmRhVlByELbUH4fZxqEDLcl0IfEAzUHQM2r441gs8bbrXyluosGffacmbinoX6DXnY2D3iAMotFuDbBjd2D233Aw6c_QMzvmB7TO3c6-_vwv2YdI_uI5Ah7atO58GZkZT99G39IQ_HOn_gy0pRcztBzJ8rDnKAn0pQzJ1DQ\u0026h=-_5Klhn3wAjnS40kbMQbkjGOFKRUSPyUJRFN_sCbuUQ", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "d7a81ac5-a98a-42e7-85a4-f9c561ac7358" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "d47f0448-a5d2-4765-b6eb-bab296f8e86e" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "d47f0448-a5d2-4765-b6eb-bab296f8e86e" ], + "x-ms-correlation-request-id": [ "d47f0448-a5d2-4765-b6eb-bab296f8e86e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061027Z:d47f0448-a5d2-4765-b6eb-bab296f8e86e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 59ACBE64A5C74AC8B42D83DD9F793496 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:27Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=\",\"startTime\":\"2024-10-21T06:09:51.0000000Z\",\"endTime\":\"2024-10-21T06:09:59.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "d7a81ac5-a98a-42e7-85a4-f9c561ac7358" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f4df72b5-380b-405b-85a1-4e80374861d1" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f4df72b5-380b-405b-85a1-4e80374861d1" ], + "x-ms-correlation-request-id": [ "f4df72b5-380b-405b-85a1-4e80374861d1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061028Z:f4df72b5-380b-405b-85a1-4e80374861d1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6205B8B3431E469A992F4F296ECBFF61 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:27Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"26f6dac9-b390-4663-8243-eee1419dd1f0\"},\"etag\":\"\\\"2c00d36e-0000-0800-0000-6715f0370000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa\",\"name\":\"psdnsresolverpolicyforlinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:51.8898705Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:51.8898705Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "276" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "a3fff8b5-619a-4d9e-bf8e-6a4e4d848556" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjkyNmE3NGE4LTI2ZjEtNDhiZS04MTFhLWM1OTQ4NjlkYjMyMSJ9?api-version=2023-07-01-preview\u0026t=638650878304376814\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9d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D0Qd_5K2gxnNEEp0_Pjh07IifuF1ecBgC4AN0DE1y9mCL_DbKhg_XfrkutBfxnX6p2igodgZqrIY-qZnULpFl-7fWOimRKEsi7Hu_-wfVUbIhZ9-OrDIDAnZizug2wbJ0SDfKuWblshqt5M6TtFYuhKFT5Ff9YGZeJ3CUHNgubD-_srYfTPUrR2T32oPUBL3mYfgcQId8pP9GiMxpzwYPVNmmGvRY0vyPjhg74V_cVa8boGHTE-7XxFCkSwyHI_N-LT0Hhoz_1RDuHe4KwHRjwxxW5JvpVhr9y3fDDObnedKuXPieQfBmYOn789cBvspQ\u0026h=zwmA_0ZsuIEZ7WL8z4m-3g8BJ4lwQ0-0Pw2nVcx3nNc" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "a3fff8b5-619a-4d9e-bf8e-6a4e4d848556" ], + "x-ms-correlation-request-id": [ "a3fff8b5-619a-4d9e-bf8e-6a4e4d848556" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061030Z:a3fff8b5-619a-4d9e-bf8e-6a4e4d848556" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8213FEE2BC78427998613C048348CD74 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:28Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "831" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"},\"provisioningState\":\"Creating\"},\"etag\":\"\\\"2c007e73-0000-0800-0000-6715f0560000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\",\"name\":\"psdnsresolverpolicylinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:10:30.1564232Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:10:30.1564232Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjkyNmE3NGE4LTI2ZjEtNDhiZS04MTFhLWM1OTQ4NjlkYjMyMSJ9?api-version=2023-07-01-preview\u0026t=638650878304376814\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIU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5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Y2Hh49OpMZGaVU0UNObXhD0Qd_5K2gxnNEEp0_Pjh07IifuF1ecBgC4AN0DE1y9mCL_DbKhg_XfrkutBfxnX6p2igodgZqrIY-qZnULpFl-7fWOimRKEsi7Hu_-wfVUbIhZ9-OrDIDAnZizug2wbJ0SDfKuWblshqt5M6TtFYuhKFT5Ff9YGZeJ3CUHNgubD-_srYfTPUrR2T32oPUBL3mYfgcQId8pP9GiMxpzwYPVNmmGvRY0vyPjhg74V_cVa8boGHTE-7XxFCkSwyHI_N-LT0Hhoz_1RDuHe4KwHRjwxxW5JvpVhr9y3fDDObnedKuXPieQfBmYOn789cBvspQ\u0026h=zwmA_0ZsuIEZ7WL8z4m-3g8BJ4lwQ0-0Pw2nVcx3nNc+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjkyNmE3NGE4LTI2ZjEtNDhiZS04MTFhLWM1OTQ4NjlkYjMyMSJ9?api-version=2023-07-01-preview\u0026t=638650878304376814\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tY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X9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Y2Hh49OpMZGaVU0UNObXhD0Qd_5K2gxnNEEp0_Pjh07IifuF1ecBgC4AN0DE1y9mCL_DbKhg_XfrkutBfxnX6p2igodgZqrIY-qZnULpFl-7fWOimRKEsi7Hu_-wfVUbIhZ9-OrDIDAnZizug2wbJ0SDfKuWblshqt5M6TtFYuhKFT5Ff9YGZeJ3CUHNgubD-_srYfTPUrR2T32oPUBL3mYfgcQId8pP9GiMxpzwYPVNmmGvRY0vyPjhg74V_cVa8boGHTE-7XxFCkSwyHI_N-LT0Hhoz_1RDuHe4KwHRjwxxW5JvpVhr9y3fDDObnedKuXPieQfBmYOn789cBvspQ\u0026h=zwmA_0ZsuIEZ7WL8z4m-3g8BJ4lwQ0-0Pw2nVcx3nNc", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "59edd2e8-4fb6-4c1f-8209-d8b06c442d57" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8ae39f96-44bf-4a0d-8203-7d477bf20d8e" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "8ae39f96-44bf-4a0d-8203-7d477bf20d8e" ], + "x-ms-correlation-request-id": [ "8ae39f96-44bf-4a0d-8203-7d477bf20d8e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061035Z:8ae39f96-44bf-4a0d-8203-7d477bf20d8e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E5A892E1A6974602B0E604F66E40D442 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:35Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjkyNmE3NGE4LTI2ZjEtNDhiZS04MTFhLWM1OTQ4NjlkYjMyMSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjkyNmE3NGE4LTI2ZjEtNDhiZS04MTFhLWM1OTQ4NjlkYjMyMSJ9\",\"startTime\":\"2024-10-21T06:10:30.0000000Z\",\"endTime\":\"2024-10-21T06:10:32.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "59edd2e8-4fb6-4c1f-8209-d8b06c442d57" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f3e44581-88bc-4eb8-8e42-bec5a67aaa81" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f3e44581-88bc-4eb8-8e42-bec5a67aaa81" ], + "x-ms-correlation-request-id": [ "f3e44581-88bc-4eb8-8e42-bec5a67aaa81" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061036Z:f3e44581-88bc-4eb8-8e42-bec5a67aaa81" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E600A51EEDA14197AEFD2AF758BE802E Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:36Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "832" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00c573-0000-0800-0000-6715f0580000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\",\"name\":\"psdnsresolverpolicylinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:10:30.1564232Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:10:30.1564232Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "04b48ce4-4fcd-4f45-9650-3b9beb1858c1" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "fb156b4e-3f8a-45a0-bc59-c49e48325172" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "59999" ], + "x-ms-request-id": [ "fb156b4e-3f8a-45a0-bc59-c49e48325172" ], + "x-ms-correlation-request-id": [ "fb156b4e-3f8a-45a0-bc59-c49e48325172" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061037Z:fb156b4e-3f8a-45a0-bc59-c49e48325172" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E960D675B87D477D9DC9B1F178F6D41A Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:36Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "844" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00c573-0000-0800-0000-6715f0580000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\",\"name\":\"psdnsresolverpolicylinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:10:30.1564232Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:10:30.1564232Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 new file mode 100644 index 000000000000..333d7cf3cb12 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 @@ -0,0 +1,57 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDnsResolverPolicyVirtualNetworkLink')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDnsResolverPolicyVirtualNetworkLink.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzDnsResolverPolicyVirtualNetworkLink' { + It 'Gets a virtual network link by name, expected virtual network link returned' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinknameafa9789a"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinknameafa9789a"; + $virtualNetworkName = "psvirtualnetworkforlinknameafa9789a"; + $resourceGroupName = "powershell-test-rg-debug-get"; + $location = "westus2"; + + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $vnet.Id + + # ACT + $dnsResolverPolicyLink = Get-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolverPolicyLink | Should -Not -BeNullOrEmpty + } + + It 'List virtual network links, expected virtual network links returned' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinkname7sadjfa"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinkname7sadjfa"; + $virtualNetworkName = "psvirtualnetworkforlinkname7sadjfa"; + $resourceGroupName = "powershell-test-rg-debug-get"; + $location = "westus2"; + + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $vnet.Id + + # ACT + $dnsResolverPolicyLinks = Get-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolverPolicyLinks.Count | Should -BeGreaterThan 0 + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..b946012e352c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDnsSecurityRule.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDnsResolverDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDnsResolverDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzDnsResolverDnsSecurityRule' { + It 'CreateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Recording.json new file mode 100644 index 000000000000..d916be8e963b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Recording.json @@ -0,0 +1,383 @@ +{ + "New-AzDnsResolverDomainList+[NoContext]+Create DNS resolver domain list+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "53896dbb-f3c0-4606-8417-418fa0bf79e9" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQwZGM5Nzg3LWQ3MGItNDg2My1hMjIxLWYzZDNjZjZjNzcwOCJ9?api-version=2023-07-01-preview\u0026t=638648068720192995\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPt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AfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=k6_jZ1sZuBpSxLS94yoB2EK1e3VEGKkJ3Q1fn-8yyKJDnjiEfkBsmD1-JDF1xBZlE62HYLKcnproobmMjYagegzttp0EPyVn87o-m9H9sGacGPeykLHpfrK3XSXC_l__RUBFyOF6wAkWhHtAlsJaPar17fMMHi-ca8hZbd4iocI7Ks1eq0HLL7-FBNWI686WYG0BtdEZsGylg1Sp5rqiu2SionORpIl8XMmcGONlsGSlykitt6rNDJA0j4KlzrBlo9WgJDJp06Kpj4ji_33Ezbr4qF0XVcw2tveMIKlD1kiEjU-aV-lW2OWKjZo7-KiD8ahsosGD95hjBQkQYfrwEg\u0026h=JCPDm661GeU9LRKDOjW49XLHsg6BjnH8ewZKxNqOjeY" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "53896dbb-f3c0-4606-8417-418fa0bf79e9" ], + "x-ms-correlation-request-id": [ "53896dbb-f3c0-4606-8417-418fa0bf79e9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000752Z:53896dbb-f3c0-4606-8417-418fa0bf79e9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 70957DEC25074BA5A420254835E139EB Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:07:50Z" ], + "Date": [ "Fri, 18 Oct 2024 00:07:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "620" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"9200c1d2-0000-0800-0000-6711a6d70000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg\",\"name\":\"psdnsresolverdomainlistname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:07:51.8161719Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:07:51.8161719Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Create DNS resolver domain list+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQwZGM5Nzg3LWQ3MGItNDg2My1hMjIxLWYzZDNjZjZjNzcwOCJ9?api-version=2023-07-01-preview\u0026t=638648068720192995\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGR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jAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=k6_jZ1sZuBpSxLS94yoB2EK1e3VEGKkJ3Q1fn-8yyKJDnjiEfkBsmD1-JDF1xBZlE62HYLKcnproobmMjYagegzttp0EPyVn87o-m9H9sGacGPeykLHpfrK3XSXC_l__RUBFyOF6wAkWhHtAlsJaPar17fMMHi-ca8hZbd4iocI7Ks1eq0HLL7-FBNWI686WYG0BtdEZsGylg1Sp5rqiu2SionORpIl8XMmcGONlsGSlykitt6rNDJA0j4KlzrBlo9WgJDJp06Kpj4ji_33Ezbr4qF0XVcw2tveMIKlD1kiEjU-aV-lW2OWKjZo7-KiD8ahsosGD95hjBQkQYfrwEg\u0026h=JCPDm661GeU9LRKDOjW49XLHsg6BjnH8ewZKxNqOjeY+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQwZGM5Nzg3LWQ3MGItNDg2My1hMjIxLWYzZDNjZjZjNzcwOCJ9?api-version=2023-07-01-preview\u0026t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QANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=k6_jZ1sZuBpSxLS94yoB2EK1e3VEGKkJ3Q1fn-8yyKJDnjiEfkBsmD1-JDF1xBZlE62HYLKcnproobmMjYagegzttp0EPyVn87o-m9H9sGacGPeykLHpfrK3XSXC_l__RUBFyOF6wAkWhHtAlsJaPar17fMMHi-ca8hZbd4iocI7Ks1eq0HLL7-FBNWI686WYG0BtdEZsGylg1Sp5rqiu2SionORpIl8XMmcGONlsGSlykitt6rNDJA0j4KlzrBlo9WgJDJp06Kpj4ji_33Ezbr4qF0XVcw2tveMIKlD1kiEjU-aV-lW2OWKjZo7-KiD8ahsosGD95hjBQkQYfrwEg\u0026h=JCPDm661GeU9LRKDOjW49XLHsg6BjnH8ewZKxNqOjeY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "90594cc2-006d-443b-b88f-fdd1f4346a66" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "29be592b-206d-4d64-8bef-88c2113d50dc" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "29be592b-206d-4d64-8bef-88c2113d50dc" ], + "x-ms-correlation-request-id": [ "29be592b-206d-4d64-8bef-88c2113d50dc" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000757Z:29be592b-206d-4d64-8bef-88c2113d50dc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2ECEF61C7DDC4AAA9745C62D8E530F7B Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:07:57Z" ], + "Date": [ "Fri, 18 Oct 2024 00:07:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQwZGM5Nzg3LWQ3MGItNDg2My1hMjIxLWYzZDNjZjZjNzcwOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQwZGM5Nzg3LWQ3MGItNDg2My1hMjIxLWYzZDNjZjZjNzcwOCJ9\",\"startTime\":\"2024-10-18T00:07:51.0000000Z\",\"endTime\":\"2024-10-18T00:07:55.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Create DNS resolver domain list+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "90594cc2-006d-443b-b88f-fdd1f4346a66" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f998b108-d64f-48dd-a45d-58e12b065bee" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f998b108-d64f-48dd-a45d-58e12b065bee" ], + "x-ms-correlation-request-id": [ "f998b108-d64f-48dd-a45d-58e12b065bee" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000758Z:f998b108-d64f-48dd-a45d-58e12b065bee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 922CC49476C148B3B60D3E0B7FBAD76E Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:07:57Z" ], + "Date": [ "Fri, 18 Oct 2024 00:07:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "655" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8359781d-c812-4615-b784-d7daf5e90074\"},\"etag\":\"\\\"16009fad-0000-0800-0000-6711a6db0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg\",\"name\":\"psdnsresolverdomainlistname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:07:51.8161719Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:07:51.8161719Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "aa5046de-f840-4921-bce3-8e20e045a3ee" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjI5NjE4NGY2LTljODItNDcwNi1iOTg1LTA5NWZiNDI0MjlmYyJ9?api-version=2023-07-01-preview\u0026t=638648068802570688\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkT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Oj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=b5hQE27kR1vFIyukjaVqJ7QM8-d3BaZLLIwCF4AgMxuJ5foKy3GjBKI7Vq-9xjSelyIVN0LdJ-_QnLm-WbOKw-iZiqsdZv_4ygOxpFpbQNK8VSX57HwFyh9pyE2LtBfYtAFBTRpU3c4U83lf9PG0y8SpfI0Ol3mMzLpWEFoaSGpFbltec2hDdSA6nMKps5S2IJndgty_eQz-55XgkoEroVciSm3V9SVgJ7i9RiloP-o7xDoE_5oXxIQayXrKVCOrWmVw2dU-FLwEBwtQDgu19LkSh7WgePruXy3olCCiPp4KrDAd_hBEKc9BN8LjWs8tiJFUMRsU7zoNqcyU5gaF6Q\u0026h=l0XokkSntL13ezAhbvc82cMpIoBeumvvEynmVs792cw" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], + "x-ms-request-id": [ "aa5046de-f840-4921-bce3-8e20e045a3ee" ], + "x-ms-correlation-request-id": [ "aa5046de-f840-4921-bce3-8e20e045a3ee" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000800Z:aa5046de-f840-4921-bce3-8e20e045a3ee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F51FC6E3AC3C4FC1ACCDBC26F642AA92 Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:07:58Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "620" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"920003d5-0000-0800-0000-6711a6e00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm\",\"name\":\"psdnsresolverdomainlistname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:08:00.0070554Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:08:00.0070554Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjI5NjE4NGY2LTljODItNDcwNi1iOTg1LTA5NWZiNDI0MjlmYyJ9?api-version=2023-07-01-preview\u0026t=638648068802570688\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24k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kR1vFIyukjaVqJ7QM8-d3BaZLLIwCF4AgMxuJ5foKy3GjBKI7Vq-9xjSelyIVN0LdJ-_QnLm-WbOKw-iZiqsdZv_4ygOxpFpbQNK8VSX57HwFyh9pyE2LtBfYtAFBTRpU3c4U83lf9PG0y8SpfI0Ol3mMzLpWEFoaSGpFbltec2hDdSA6nMKps5S2IJndgty_eQz-55XgkoEroVciSm3V9SVgJ7i9RiloP-o7xDoE_5oXxIQayXrKVCOrWmVw2dU-FLwEBwtQDgu19LkSh7WgePruXy3olCCiPp4KrDAd_hBEKc9BN8LjWs8tiJFUMRsU7zoNqcyU5gaF6Q\u0026h=l0XokkSntL13ezAhbvc82cMpIoBeumvvEynmVs792cw+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjI5NjE4NGY2LTljODItNDcwNi1iOTg1LTA5NWZiNDI0MjlmYyJ9?api-version=2023-07-01-preview\u0026t=638648068802570688\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0I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vRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=b5hQE27kR1vFIyukjaVqJ7QM8-d3BaZLLIwCF4AgMxuJ5foKy3GjBKI7Vq-9xjSelyIVN0LdJ-_QnLm-WbOKw-iZiqsdZv_4ygOxpFpbQNK8VSX57HwFyh9pyE2LtBfYtAFBTRpU3c4U83lf9PG0y8SpfI0Ol3mMzLpWEFoaSGpFbltec2hDdSA6nMKps5S2IJndgty_eQz-55XgkoEroVciSm3V9SVgJ7i9RiloP-o7xDoE_5oXxIQayXrKVCOrWmVw2dU-FLwEBwtQDgu19LkSh7WgePruXy3olCCiPp4KrDAd_hBEKc9BN8LjWs8tiJFUMRsU7zoNqcyU5gaF6Q\u0026h=l0XokkSntL13ezAhbvc82cMpIoBeumvvEynmVs792cw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "752a758f-6c29-4ea7-9c58-504a308acb2e" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c3638dbd-90c0-4b80-bdcc-e0691fec6687" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c3638dbd-90c0-4b80-bdcc-e0691fec6687" ], + "x-ms-correlation-request-id": [ "c3638dbd-90c0-4b80-bdcc-e0691fec6687" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000805Z:c3638dbd-90c0-4b80-bdcc-e0691fec6687" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5CF44A810C384D1FA443C8E64CB8D470 Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:08:05Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjI5NjE4NGY2LTljODItNDcwNi1iOTg1LTA5NWZiNDI0MjlmYyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjI5NjE4NGY2LTljODItNDcwNi1iOTg1LTA5NWZiNDI0MjlmYyJ9\",\"startTime\":\"2024-10-18T00:08:00.0000000Z\",\"endTime\":\"2024-10-18T00:08:00.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "752a758f-6c29-4ea7-9c58-504a308acb2e" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "eab46480-00c9-470a-bcd8-5df7062d46ee" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "eab46480-00c9-470a-bcd8-5df7062d46ee" ], + "x-ms-correlation-request-id": [ "eab46480-00c9-470a-bcd8-5df7062d46ee" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000806Z:eab46480-00c9-470a-bcd8-5df7062d46ee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E99849BBDA5940A5B9E387C9773E1017 Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:08:05Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "655" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dc8bd407-41bb-4240-bcf0-947ad9f35793\"},\"etag\":\"\\\"1600c2ad-0000-0800-0000-6711a6e00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm\",\"name\":\"psdnsresolverdomainlistname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:08:00.0070554Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:08:00.0070554Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview", + "Content": "{\r\n \"tags\": {\r\n \"keyuwad3\": \"valueuwad3\",\r\n \"keyxl9oj\": \"valuexl9oj\",\r\n \"keyhyr2q\": \"valuehyr2q\"\r\n },\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "216" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZX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" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImYyYTk0MTk0LTYzYmUtNDUyMS05ZDNkLTBkYzRlZWZiMjc3MSJ9?api-version=2023-07-01-preview\u0026t=638648068880280514\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNx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f4FKqlrt2vazWfXmIAmP4NtBIEZ8U4YjjgWN1LoGvlO8__KMC-fCiIng\u0026h=TF7558FzLLRRZA4vnmjcMTEaYMo7CoitEo5aKiAg8gA" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "1354206f-58dc-442a-afa2-40dae1656836" ], + "x-ms-correlation-request-id": [ "1354206f-58dc-442a-afa2-40dae1656836" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000808Z:1354206f-58dc-442a-afa2-40dae1656836" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7585EF4433E84542A68CB39EF042FFAB Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:08:06Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "701" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"920024d7-0000-0800-0000-6711a6e70000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyuwad3\":\"valueuwad3\",\"keyxl9oj\":\"valuexl9oj\",\"keyhyr2q\":\"valuehyr2q\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm\",\"name\":\"psdnsresolverdomainlistname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:08:00.0070554Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:08:07.5593363Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImYyYTk0MTk0LTYzYmUtNDUyMS05ZDNkLTBkYzRlZWZiMjc3MSJ9?api-version=2023-07-01-preview\u0026t=638648068880280514\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwY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7CFZPoJv1ZhMDc2u4vpMVzf4FKqlrt2vazWfXmIAmP4NtBIEZ8U4YjjgWN1LoGvlO8__KMC-fCiIng\u0026h=TF7558FzLLRRZA4vnmjcMTEaYMo7CoitEo5aKiAg8gA+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImYyYTk0MTk0LTYzYmUtNDUyMS05ZDNkLTBkYzRlZWZiMjc3MSJ9?api-version=2023-07-01-preview\u0026t=638648068880280514\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZ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qyx-9Y-Jz8ytofJN3uPDP60bx1SDJHj9bK08f-Hk1Am0MHsZMsaaAAKb05eyKIqVszMP1cktWg_x_TMlpBwIs88foSZ7hk0CuJwofRNo8PfllNuBqq7CFZPoJv1ZhMDc2u4vpMVzf4FKqlrt2vazWfXmIAmP4NtBIEZ8U4YjjgWN1LoGvlO8__KMC-fCiIng\u0026h=TF7558FzLLRRZA4vnmjcMTEaYMo7CoitEo5aKiAg8gA", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "9e44676a-18ea-4ab9-89a4-73486a9d4230" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "7e2478fc-cfc6-4195-94ba-4c0560e7c114" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "7e2478fc-cfc6-4195-94ba-4c0560e7c114" ], + "x-ms-correlation-request-id": [ "7e2478fc-cfc6-4195-94ba-4c0560e7c114" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000813Z:7e2478fc-cfc6-4195-94ba-4c0560e7c114" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: BEE9FAD48DB143E487A5E65F9CA7304E Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:08:13Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImYyYTk0MTk0LTYzYmUtNDUyMS05ZDNkLTBkYzRlZWZiMjc3MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImYyYTk0MTk0LTYzYmUtNDUyMS05ZDNkLTBkYzRlZWZiMjc3MSJ9\",\"startTime\":\"2024-10-18T00:08:07.0000000Z\",\"endTime\":\"2024-10-18T00:08:10.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "9e44676a-18ea-4ab9-89a4-73486a9d4230" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "b164bab0-de61-4d46-a482-f1b7f4206488" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "b164bab0-de61-4d46-a482-f1b7f4206488" ], + "x-ms-correlation-request-id": [ "b164bab0-de61-4d46-a482-f1b7f4206488" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000814Z:b164bab0-de61-4d46-a482-f1b7f4206488" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 541FB5F647F24901A81897AB6F52F08F Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:08:13Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "736" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dc8bd407-41bb-4240-bcf0-947ad9f35793\"},\"etag\":\"\\\"160008ae-0000-0800-0000-6711a6ea0000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyuwad3\":\"valueuwad3\",\"keyxl9oj\":\"valuexl9oj\",\"keyhyr2q\":\"valuehyr2q\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm\",\"name\":\"psdnsresolverdomainlistname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:08:00.0070554Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:08:07.5593363Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Tests.ps1 new file mode 100644 index 000000000000..4878ff085da1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Tests.ps1 @@ -0,0 +1,47 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDnsResolverDomainList')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDnsResolverDomainList.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzDnsResolverDomainList' { + It 'Create DNS resolver domain list' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname0j0cdzg"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + + # ACT + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ASSERT + $domainList | Should -BeSuccessfullyCreated + } + + It 'Update DNS Resolver domain list with new tags.' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname4c7glpm"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $tag = GetRandomHashtable -size 2 + + # ACT + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") -Tag $tag + + # ASSERT + $domainList.ProvisioningState | Should -Be "Succeeded" + $domainList.Tag.Count | Should -Be $tag.Count + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Recording.json new file mode 100644 index 000000000000..8ede4f509bac --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Recording.json @@ -0,0 +1,383 @@ +{ + "New-AzDnsResolverPolicy+[NoContext]+Create DNS resolver policy+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "73739c00-d05d-4906-a13b-6a9d08745e19" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjg1OWIzM2EtMmI4YS00OGVkLTkxN2MtYzk5NDQxZjQyYTczIn0=?api-version=2023-07-01-preview\u0026t=638648069495756866\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQY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CubStUii07wdII72ffKRrjy2e0kO2_rmfa5iaHVbHKo1yhSDqCuGS1Pg\u0026h=DOlOsEanUep9fKAdr8eDrcQAUOr5O7KQpeNTDBX90cg" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "73739c00-d05d-4906-a13b-6a9d08745e19" ], + "x-ms-correlation-request-id": [ "73739c00-d05d-4906-a13b-6a9d08745e19" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000909Z:73739c00-d05d-4906-a13b-6a9d08745e19" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8520CADEA794439785D7D893B8026E1A Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:07Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "564" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"920075e8-0000-0800-0000-6711a7250000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg\",\"name\":\"psdnsresolverpolicyname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:09.3100587Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:09.3100587Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Create DNS resolver policy+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjg1OWIzM2EtMmI4YS00OGVkLTkxN2MtYzk5NDQxZjQyYTczIn0=?api-version=2023-07-01-preview\u0026t=638648069495756866\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggH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Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjg1OWIzM2EtMmI4YS00OGVkLTkxN2MtYzk5NDQxZjQyYTczIn0=?api-version=2023-07-01-preview\u0026t=638648069495756866\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAw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2e0kO2_rmfa5iaHVbHKo1yhSDqCuGS1Pg\u0026h=DOlOsEanUep9fKAdr8eDrcQAUOr5O7KQpeNTDBX90cg", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "94301a87-2e3d-40ca-b48f-4355d4abdf26" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "04d5ed7f-9a2e-47be-8ca3-f2411cab2f4c" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "04d5ed7f-9a2e-47be-8ca3-f2411cab2f4c" ], + "x-ms-correlation-request-id": [ "04d5ed7f-9a2e-47be-8ca3-f2411cab2f4c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000915Z:04d5ed7f-9a2e-47be-8ca3-f2411cab2f4c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1535F4FD489E499488E1955E97E799FB Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:14Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjg1OWIzM2EtMmI4YS00OGVkLTkxN2MtYzk5NDQxZjQyYTczIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjg1OWIzM2EtMmI4YS00OGVkLTkxN2MtYzk5NDQxZjQyYTczIn0=\",\"startTime\":\"2024-10-18T00:09:09.0000000Z\",\"endTime\":\"2024-10-18T00:09:10.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Create DNS resolver policy+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "94301a87-2e3d-40ca-b48f-4355d4abdf26" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "75786274-c1a0-4495-a5ca-0c00ca8c9aee" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "75786274-c1a0-4495-a5ca-0c00ca8c9aee" ], + "x-ms-correlation-request-id": [ "75786274-c1a0-4495-a5ca-0c00ca8c9aee" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000915Z:75786274-c1a0-4495-a5ca-0c00ca8c9aee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2483091FCFA8445ABC18FDEBB3F858BB Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:15Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "599" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5c0f7dd1-2758-4b6a-bc38-bc3d4bc9ebb2\"},\"etag\":\"\\\"18006170-0000-0800-0000-6711a7260000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg\",\"name\":\"psdnsresolverpolicyname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:09.3100587Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:09.3100587Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "35206003-41a0-4586-b73e-e92912df407e" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNWU0ZjkyZDAtMzA5My00ODlhLTk1NTYtZGU3MDA3MjY5ZjJkIn0=?api-version=2023-07-01-preview\u0026t=638648069571549589\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZ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IZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=cGWQE3yRfTq3c1ZRs1XOCO8GER_uzQNikdxzM_JK5zzRz0KS9_zqg8lsC3v95SBg_zcPfI3D1ySRO2d3xDi02mv_LssUhc_BT_5ksYE7QovAPfeATs0c5VpZaGazlK9GclZTQWv5Qn-CVghMnxJ7GLlvCyezngsSUIc6U2tjY6KxT9HhB6tRs71S-l_HJJGF50wjs7wWVNvBl6EYmigrPOPpztSCjPWDZfT43olyiDLj027KQpzTSSG8-I-10NaSbLi13ynCYc0YHM79PXye39UfgzkkxrSbeNLtf_0FmEyY01EQdvAN27H8tb82LIWlXv5_96NhhqKiGrphJLtTog\u0026h=WQ2IFqevkavKw1QpNw9KLfjFxHe-dVd1oagjaGFpP9o" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "35206003-41a0-4586-b73e-e92912df407e" ], + "x-ms-correlation-request-id": [ "35206003-41a0-4586-b73e-e92912df407e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000917Z:35206003-41a0-4586-b73e-e92912df407e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4E35D2CC0F464383A43F7688C1DCDE85 Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:15Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "564" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"9200e6ea-0000-0800-0000-6711a72d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:16.9362072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:16.9362072Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNWU0ZjkyZDAtMzA5My00ODlhLTk1NTYtZGU3MDA3MjY5ZjJkIn0=?api-version=2023-07-01-preview\u0026t=638648069571549589\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaC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Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=cGWQE3yRfTq3c1ZRs1XOCO8GER_uzQNikdxzM_JK5zzRz0KS9_zqg8lsC3v95SBg_zcPfI3D1ySRO2d3xDi02mv_LssUhc_BT_5ksYE7QovAPfeATs0c5VpZaGazlK9GclZTQWv5Qn-CVghMnxJ7GLlvCyezngsSUIc6U2tjY6KxT9HhB6tRs71S-l_HJJGF50wjs7wWVNvBl6EYmigrPOPpztSCjPWDZfT43olyiDLj027KQpzTSSG8-I-10NaSbLi13ynCYc0YHM79PXye39UfgzkkxrSbeNLtf_0FmEyY01EQdvAN27H8tb82LIWlXv5_96NhhqKiGrphJLtTog\u0026h=WQ2IFqevkavKw1QpNw9KLfjFxHe-dVd1oagjaGFpP9o+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNWU0ZjkyZDAtMzA5My00ODlhLTk1NTYtZGU3MDA3MjY5ZjJkIn0=?api-version=2023-07-01-preview\u0026t=638648069571549589\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b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ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=cGWQE3yRfTq3c1ZRs1XOCO8GER_uzQNikdxzM_JK5zzRz0KS9_zqg8lsC3v95SBg_zcPfI3D1ySRO2d3xDi02mv_LssUhc_BT_5ksYE7QovAPfeATs0c5VpZaGazlK9GclZTQWv5Qn-CVghMnxJ7GLlvCyezngsSUIc6U2tjY6KxT9HhB6tRs71S-l_HJJGF50wjs7wWVNvBl6EYmigrPOPpztSCjPWDZfT43olyiDLj027KQpzTSSG8-I-10NaSbLi13ynCYc0YHM79PXye39UfgzkkxrSbeNLtf_0FmEyY01EQdvAN27H8tb82LIWlXv5_96NhhqKiGrphJLtTog\u0026h=WQ2IFqevkavKw1QpNw9KLfjFxHe-dVd1oagjaGFpP9o", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "93e62597-f098-4fa6-9928-3254d74c926b" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3a5e329f-a7da-4f27-b3fe-b44b6bed7059" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3a5e329f-a7da-4f27-b3fe-b44b6bed7059" ], + "x-ms-correlation-request-id": [ "3a5e329f-a7da-4f27-b3fe-b44b6bed7059" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000922Z:3a5e329f-a7da-4f27-b3fe-b44b6bed7059" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2193A34D511D439FA17CE28C64F868C2 Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:22Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNWU0ZjkyZDAtMzA5My00ODlhLTk1NTYtZGU3MDA3MjY5ZjJkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNWU0ZjkyZDAtMzA5My00ODlhLTk1NTYtZGU3MDA3MjY5ZjJkIn0=\",\"startTime\":\"2024-10-18T00:09:17.0000000Z\",\"endTime\":\"2024-10-18T00:09:20.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "93e62597-f098-4fa6-9928-3254d74c926b" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c77616fd-360f-48d7-8891-2b7230493fdf" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c77616fd-360f-48d7-8891-2b7230493fdf" ], + "x-ms-correlation-request-id": [ "c77616fd-360f-48d7-8891-2b7230493fdf" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000922Z:c77616fd-360f-48d7-8891-2b7230493fdf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7DBD3B79C689488E8D46D3E3959DEB65 Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:22Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "599" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"766e397a-a1e0-435e-9fb0-499b12820093\"},\"etag\":\"\\\"18006771-0000-0800-0000-6711a7300000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:16.9362072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:16.9362072Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview", + "Content": "{\r\n \"tags\": {\r\n \"keyfy57a\": \"valuefy57a\",\r\n \"keya4orj\": \"valuea4orj\",\r\n \"keywflrg\": \"valuewflrg\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "140" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmZiMzdiMWMtYjQxYy00MjNmLTk1Y2EtYWFkZTEyMmM1MDVhIn0=?api-version=2023-07-01-preview\u0026t=638648069646631295\u0026c=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AwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=dIWddxmQUGpDA_yJvbXupiGQCciXVo5stRGrK9xuUB-yhzZpNah0fwKrADLFDjq-dBf1JkzLcMEUYg8WmUUeTUvUJhLuEdxfWhii_z9tR94eLHqMsE-PNtmqAQheNZR4N92-VeejV8vqi9FvaLFUFNcZFfCE-gr_KTH34K7dJTboMyIgw0XB5RiwEPhMNWQFw2TFrEQd4X1dHMgKJdiAN2g_fMilgXUxl5_MJdR2aLwrQLmvQvb4jsm8cqilstGPZVEKOggdp4cSckocr8JC7oDQwLNcoi5vuftOuUl9aHDVBFEF6AgX3NxYlxoIQdAAfQAQqqLuIZ0uwKbiEJvp3w\u0026h=_s_S1XtuMvBTq4DdrJDRGm8Rx0JcC74vEclQTr3iHyQ" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "def20961-00e7-4430-b2f8-d12f784167f8" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb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ZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=eZrOF1e7DkCS3N15Vj6ESNHA49HPSl_W8KxtgY0mMFX7MbOVJasPvhDcxaBR-oj_CHicZh7doXvmDbF8UR7CbXFMtaUzPA3aTlPUCE6cwukEfvZAVabYAYWqWE-fMe41PCHA0JW0bBoce0lpqqNe-iGeSuQyIlJrWg57R7w4ptgllHtBU5XgE055AtXivNadpNVpmuUWHuoWk5tJBKYxeRzvo2O2xivZFzpoNy0Oeyx3_EWaAd19MeLbEbH5aG1TMHp18MfzPwjLCi3-SjlzKa_sPvjOFgfQtX91F2QB6tpbF7fOxn-EQxbMSaok-vqezivgP8OtI0XfriS-paxzag\u0026h=UZk16ITx3LVqCk1lMvrLqdKC_DUfl43GMjqmLI_z1rs" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "def20961-00e7-4430-b2f8-d12f784167f8" ], + "x-ms-correlation-request-id": [ "def20961-00e7-4430-b2f8-d12f784167f8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000924Z:def20961-00e7-4430-b2f8-d12f784167f8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D80120EF0DA745CC8DD8892ECFADBA89 Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:23Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "645" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"920034ed-0000-0800-0000-6711a7340000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyfy57a\":\"valuefy57a\",\"keya4orj\":\"valuea4orj\",\"keywflrg\":\"valuewflrg\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:16.9362072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:24.2256242Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbn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orBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=eZrOF1e7DkCS3N15Vj6ESNHA49HPSl_W8KxtgY0mMFX7MbOVJasPvhDcxaBR-oj_CHicZh7doXvmDbF8UR7CbXFMtaUzPA3aTlPUCE6cwukEfvZAVabYAYWqWE-fMe41PCHA0JW0bBoce0lpqqNe-iGeSuQyIlJrWg57R7w4ptgllHtBU5XgE055AtXivNadpNVpmuUWHuoWk5tJBKYxeRzvo2O2xivZFzpoNy0Oeyx3_EWaAd19MeLbEbH5aG1TMHp18MfzPwjLCi3-SjlzKa_sPvjOFgfQtX91F2QB6tpbF7fOxn-EQxbMSaok-vqezivgP8OtI0XfriS-paxzag\u0026h=UZk16ITx3LVqCk1lMvrLqdKC_DUfl43GMjqmLI_z1rs+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmZiMzdiMWMtYjQxYy00MjNmLTk1Y2EtYWFkZTEyMmM1MDVhIn0=?api-version=2023-07-01-preview\u0026t=638648069646475040\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQow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LqdKC_DUfl43GMjqmLI_z1rs", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "d8aa9060-0977-466a-8f60-079a4aa4ebd8" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "5f816b65-b183-45d9-9238-bd642ac3a4d0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "5f816b65-b183-45d9-9238-bd642ac3a4d0" ], + "x-ms-correlation-request-id": [ "5f816b65-b183-45d9-9238-bd642ac3a4d0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000930Z:5f816b65-b183-45d9-9238-bd642ac3a4d0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EA58D7D210E34B1C94D02F2500D750F3 Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:29Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmZiMzdiMWMtYjQxYy00MjNmLTk1Y2EtYWFkZTEyMmM1MDVhIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmZiMzdiMWMtYjQxYy00MjNmLTk1Y2EtYWFkZTEyMmM1MDVhIn0=\",\"startTime\":\"2024-10-18T00:09:24.0000000Z\",\"endTime\":\"2024-10-18T00:09:25.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "d8aa9060-0977-466a-8f60-079a4aa4ebd8" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a43b8aac-b93d-436d-911f-c4af95fd9d5d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a43b8aac-b93d-436d-911f-c4af95fd9d5d" ], + "x-ms-correlation-request-id": [ "a43b8aac-b93d-436d-911f-c4af95fd9d5d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000930Z:a43b8aac-b93d-436d-911f-c4af95fd9d5d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1EE9B0B94B494C70A2832303BAE3102D Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:30Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "680" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"766e397a-a1e0-435e-9fb0-499b12820093\"},\"etag\":\"\\\"1800ed71-0000-0800-0000-6711a7350000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyfy57a\":\"valuefy57a\",\"keya4orj\":\"valuea4orj\",\"keywflrg\":\"valuewflrg\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:16.9362072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:24.2256242Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Tests.ps1 new file mode 100644 index 000000000000..e3e0f22000bf --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Tests.ps1 @@ -0,0 +1,47 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDnsResolverPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDnsResolverPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzDnsResolverPolicy' { + It 'Create DNS resolver policy' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname0j0cdzg"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + + # ACT + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ASSERT + $resolverPolicy | Should -BeSuccessfullyCreated + } + + It 'Update DNS Resolver Policy with new tags.' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname4c7glpm"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $tag = GetRandomHashtable -size 2 + + # ACT + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -Tag $tag + + # ASSERT + $resolverPolicy.ProvisioningState | Should -Be "Succeeded" + $resolverPolicy.Tag.Count | Should -Be $tag.Count + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Recording.json new file mode 100644 index 000000000000..542557fd89c4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Recording.json @@ -0,0 +1,469 @@ +{ + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn0=?api-version=2023-07-01-preview\u0026t=638650837145975168\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0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T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=KQ7LdyKkmKeFrkkpCbnAk792joRW8vXV9QT4xF93mmZEYJJhkK9NQXxQkyR0cJvWJ3KnbiygOUu8XlHcMop74Ka-gXQo-Eazw8BsSo1D08Hj1T9J42aNXsoIPFpbG3VjwqH86VZxs9_t688UPPZDSWp5fI2-3F-nubu9oiQt5BjDu8VEa__AVCe37mN5Gbb3gmKHqFCRhaItFhVuxn3NxyK86_hSbfzJ4NiOCqu_X9eZ8-VNkamLvyuCboVDa0lZdYVSr9j3gWFjLNh3ob47S8gJZcKgLMNgyC9Vi-Ds7Ty9OGXvij0wBdXulyCC5oTciQv5VoEgZhK1KL4GDtdj0w\u0026h=CsfTA1RW1b1_e0ivVWeBkum8dmT8y06DoasRqHja9KA" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "4abdd590-003c-40f1-8327-ab9283613ed3" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn0=?api-version=2023-07-01-preview\u0026t=638650837145975168\u0026c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MAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=KwIemlUyPeTiKHWO1AcynJLTGbBMu0ZWIqFy53W5js5zQnVpiitanQzi8tjaCwPm7Z4h_w1NLKPSPYjcE4YmUrwhYJA_7-tZOv51OLjVgNJr0lQZ1LbJX2A8mlzRGYBjXjkcv49v2ke4Xr_GNaow4ZXs71bx03dIf4Qxxw6YA_qGR6Cs4KBI1IkrBw1RrOP2lIZUn2WBSe3JrxdIJwmSYlRx788EjeHVRhr9Jo4zqsFqinIlUboqtrWs2yqbbCdjTo9QMD9_YmvV0fXPntyzpNNIzzydxnAQyFDtXl8bud40QvEw-hhtwEZOe-esTpXjiP4NPHtvNsG-lyW1pwjoeQ\u0026h=XrNPBlFT7bbMsmSSDGAhMiDEAKPVPMOgiq1efz--EIM" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "4abdd590-003c-40f1-8327-ab9283613ed3" ], + "x-ms-correlation-request-id": [ "4abdd590-003c-40f1-8327-ab9283613ed3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050154Z:4abdd590-003c-40f1-8327-ab9283613ed3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 210440E380384937ACA021386530B876 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:01:54Z" ], + "Date": [ "Mon, 21 Oct 2024 05:01:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7001a14d-0000-0800-0000-6715e0420000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg\",\"name\":\"psdnsresolverpolicyforrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T04:40:50.1981654Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:01:54.4881449Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn0=?api-version=2023-07-01-preview\u0026t=638650837145975168\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQY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-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=KwIemlUyPeTiKHWO1AcynJLTGbBMu0ZWIqFy53W5js5zQnVpiitanQzi8tjaCwPm7Z4h_w1NLKPSPYjcE4YmUrwhYJA_7-tZOv51OLjVgNJr0lQZ1LbJX2A8mlzRGYBjXjkcv49v2ke4Xr_GNaow4ZXs71bx03dIf4Qxxw6YA_qGR6Cs4KBI1IkrBw1RrOP2lIZUn2WBSe3JrxdIJwmSYlRx788EjeHVRhr9Jo4zqsFqinIlUboqtrWs2yqbbCdjTo9QMD9_YmvV0fXPntyzpNNIzzydxnAQyFDtXl8bud40QvEw-hhtwEZOe-esTpXjiP4NPHtvNsG-lyW1pwjoeQ\u0026h=XrNPBlFT7bbMsmSSDGAhMiDEAKPVPMOgiq1efz--EIM+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn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ANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=KwIemlUyPeTiKHWO1AcynJLTGbBMu0ZWIqFy53W5js5zQnVpiitanQzi8tjaCwPm7Z4h_w1NLKPSPYjcE4YmUrwhYJA_7-tZOv51OLjVgNJr0lQZ1LbJX2A8mlzRGYBjXjkcv49v2ke4Xr_GNaow4ZXs71bx03dIf4Qxxw6YA_qGR6Cs4KBI1IkrBw1RrOP2lIZUn2WBSe3JrxdIJwmSYlRx788EjeHVRhr9Jo4zqsFqinIlUboqtrWs2yqbbCdjTo9QMD9_YmvV0fXPntyzpNNIzzydxnAQyFDtXl8bud40QvEw-hhtwEZOe-esTpXjiP4NPHtvNsG-lyW1pwjoeQ\u0026h=XrNPBlFT7bbMsmSSDGAhMiDEAKPVPMOgiq1efz--EIM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "3530ed18-f404-464b-addf-f4cec9a7c7e4" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f2fa4aa3-55e0-47c6-8a53-ace05c049ef8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f2fa4aa3-55e0-47c6-8a53-ace05c049ef8" ], + "x-ms-correlation-request-id": [ "f2fa4aa3-55e0-47c6-8a53-ace05c049ef8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050159Z:f2fa4aa3-55e0-47c6-8a53-ace05c049ef8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7CBDE60305F54E519CDF46187AAD4187 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:01:59Z" ], + "Date": [ "Mon, 21 Oct 2024 05:01:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn0=\",\"startTime\":\"2024-10-21T05:01:54.0000000Z\",\"endTime\":\"2024-10-21T05:01:55.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "3530ed18-f404-464b-addf-f4cec9a7c7e4" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "27ca6af5-daf8-4044-b584-bef27087e260" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "27ca6af5-daf8-4044-b584-bef27087e260" ], + "x-ms-correlation-request-id": [ "27ca6af5-daf8-4044-b584-bef27087e260" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050200Z:27ca6af5-daf8-4044-b584-bef27087e260" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5F6E8137E62E41BB9E78D641D73863F1 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:00Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c15c8865-725e-4878-959d-db7f686de514\"},\"etag\":\"\\\"2a008863-0000-0800-0000-6715e0430000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg\",\"name\":\"psdnsresolverpolicyforrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T04:40:50.1981654Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:01:54.4881449Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9?api-version=2023-07-01-preview\u0026t=638650837209991235\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hK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U6en-0NBFQhWsbxLdc6zu_m4IJLpxzll06PkpDcadgEz6Z9JllAC9PhePnR8RLgz5nEyIqtIZGTonNb7R9tfM3rj3zzHZewXg3UnSCBUlsRKi78NxWHCbl2nVhEKbDhFeqtlL_kEeZvHgelgs33S7ClUQm9K1irUppB7e8Jd_pN6u__qGbHUmKAXg606PpMo4KeUTMZmAUkw\u0026h=3Ow2Ea1dOj1a9b0Af_MjA4sYPlK0SgDI-mvVFM_t7k0" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "10c36c06-90bb-4f3d-b4e6-397679878ee5" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9?api-version=2023-07-01-preview\u0026t=638650837209835015\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BB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TTEXMaD-5a81mGlzhZc09Q\u0026s=e6cdjoXkmDSGgzdcIyipNf-3_N2ao2r2-c_6-J6wV_85KgznI_NoSy_za1zpI5o6XTmFrWy5yLUiXvVmGKz2waRdixNoRNAhzwRNP0HNIloLRNkzBlY8NNx1IJJtYBA9TwkFQenpb_wHVG0SNpUNoibD0LWKvRHIqH6ft-8vEVU6o8urh46lP80X49HzHVytVtqghpWzOslTGAut0ZcL_iqnlpByXUHjXSUYSJCVSPnwOcQDCJmJnLij7oots4Ogig7swsd9EIeKsZY4du3niZr9mah3Rt8vW5BgfYtQpN0VnApr56o5icxJIj7DqqqNTyEGTVotrb4NY1JEKNy7Fw\u0026h=mEPI4bGLSRpJQjhZfwewUleiTUTGDI3U3AjV-25eEuc" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "10c36c06-90bb-4f3d-b4e6-397679878ee5" ], + "x-ms-correlation-request-id": [ "10c36c06-90bb-4f3d-b4e6-397679878ee5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050201Z:10c36c06-90bb-4f3d-b4e6-397679878ee5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7628751924F34E20B528413011FDC4EF Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:00Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "634" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7001634f-0000-0800-0000-6715e0480000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\",\"name\":\"psdnsresolverdomainlistforrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:42:46.1152087Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:02:00.8430049Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9?api-version=2023-07-01-preview\u0026t=638650837209835015\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH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yipNf-3_N2ao2r2-c_6-J6wV_85KgznI_NoSy_za1zpI5o6XTmFrWy5yLUiXvVmGKz2waRdixNoRNAhzwRNP0HNIloLRNkzBlY8NNx1IJJtYBA9TwkFQenpb_wHVG0SNpUNoibD0LWKvRHIqH6ft-8vEVU6o8urh46lP80X49HzHVytVtqghpWzOslTGAut0ZcL_iqnlpByXUHjXSUYSJCVSPnwOcQDCJmJnLij7oots4Ogig7swsd9EIeKsZY4du3niZr9mah3Rt8vW5BgfYtQpN0VnApr56o5icxJIj7DqqqNTyEGTVotrb4NY1JEKNy7Fw\u0026h=mEPI4bGLSRpJQjhZfwewUleiTUTGDI3U3AjV-25eEuc+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9?api-version=2023-07-01-preview\u0026t=638650837209835015\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-Y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0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=e6cdjoXkmDSGgzdcIyipNf-3_N2ao2r2-c_6-J6wV_85KgznI_NoSy_za1zpI5o6XTmFrWy5yLUiXvVmGKz2waRdixNoRNAhzwRNP0HNIloLRNkzBlY8NNx1IJJtYBA9TwkFQenpb_wHVG0SNpUNoibD0LWKvRHIqH6ft-8vEVU6o8urh46lP80X49HzHVytVtqghpWzOslTGAut0ZcL_iqnlpByXUHjXSUYSJCVSPnwOcQDCJmJnLij7oots4Ogig7swsd9EIeKsZY4du3niZr9mah3Rt8vW5BgfYtQpN0VnApr56o5icxJIj7DqqqNTyEGTVotrb4NY1JEKNy7Fw\u0026h=mEPI4bGLSRpJQjhZfwewUleiTUTGDI3U3AjV-25eEuc", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "c46fa9ee-36a2-4923-9ee9-b1afcd3918bf" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "5bf1dac2-50cd-4df0-85ad-75d0c135a1f5" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "5bf1dac2-50cd-4df0-85ad-75d0c135a1f5" ], + "x-ms-correlation-request-id": [ "5bf1dac2-50cd-4df0-85ad-75d0c135a1f5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050206Z:5bf1dac2-50cd-4df0-85ad-75d0c135a1f5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0FF1B7EFE39A4F93A27C1455CEF000BB Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:06Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9\",\"startTime\":\"2024-10-21T05:02:00.0000000Z\",\"endTime\":\"2024-10-21T05:02:05.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "c46fa9ee-36a2-4923-9ee9-b1afcd3918bf" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "9e9c7011-6c23-4907-ac3b-86b8445344db" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "9e9c7011-6c23-4907-ac3b-86b8445344db" ], + "x-ms-correlation-request-id": [ "9e9c7011-6c23-4907-ac3b-86b8445344db" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050206Z:9e9c7011-6c23-4907-ac3b-86b8445344db" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3B1EEBF6320A428288E774A82D311687 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:06Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "669" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c0367c34-3ba5-4987-a3d7-8739a2a22ce5\"},\"etag\":\"\\\"3d00fc31-0000-0800-0000-6715e04d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\",\"name\":\"psdnsresolverdomainlistforrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:42:46.1152087Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:02:00.8430049Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "474" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9?api-version=2023-07-01-preview\u0026t=638650837273690426\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwC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_x5mco3kB4uZTCUss6unS-xAoSgcp8HDDA1-qNsCsgyvdqtWLlWt0nCG3yfyuGjZ15EjGG4mk5E3VQigCJoZmY2rKxHVFDd8xUA\u0026h=ag7caQIFUcn5wvA4EKi9hQ-A28seU5nQpM5iHZbHeB4" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "465f9b66-5dbb-42b5-900f-bc7586952d03" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9?api-version=2023-07-01-preview\u0026t=638650837273690426\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwa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GPunKktbHGkm7sKHoRY8OzhOUa3h4zyZg3knwhzAFtS5vhEYTR7xFmEvke9l0H7loBz9Uefw7dwbeL2eSNueNCJVW7Yjp-E-1TddvBnfVoU7shzn-A8m802OnskNUcoeRnMSAs083IufGqSciF4kwNDiNBdYc9GTKCyichxaUiu9H4kthAeI2spnYf_HN2qgHcwRh8uYzSonnVoKV82QKl5B3-hFKyWA38VEo5LMhKh8c5SS-zwd0yt9EVt8uB0qaaog\u0026h=88YZ2A0pKsMvVft8WW4wZ3FXNrclZmE8qsukflnmyvk" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "465f9b66-5dbb-42b5-900f-bc7586952d03" ], + "x-ms-correlation-request-id": [ "465f9b66-5dbb-42b5-900f-bc7586952d03" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050207Z:465f9b66-5dbb-42b5-900f-bc7586952d03" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1710060D3AC84B3B8A377988A79A4660 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:06Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "984" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2a00d464-0000-0800-0000-6715e04f0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg\",\"name\":\"psdnssecurityrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T04:43:24.3626718Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:02:07.1971715Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9?api-version=2023-07-01-preview\u0026t=638650837273690426\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLI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Q5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=H6i8nVHVUNFTHfS5gRMDnajl6z1Opb1EhTyYuHU48xsh8PMpcbWr0J0JM4i0XlXosyZ4spVVu1RH81YigJGPunKktbHGkm7sKHoRY8OzhOUa3h4zyZg3knwhzAFtS5vhEYTR7xFmEvke9l0H7loBz9Uefw7dwbeL2eSNueNCJVW7Yjp-E-1TddvBnfVoU7shzn-A8m802OnskNUcoeRnMSAs083IufGqSciF4kwNDiNBdYc9GTKCyichxaUiu9H4kthAeI2spnYf_HN2qgHcwRh8uYzSonnVoKV82QKl5B3-hFKyWA38VEo5LMhKh8c5SS-zwd0yt9EVt8uB0qaaog\u0026h=88YZ2A0pKsMvVft8WW4wZ3FXNrclZmE8qsukflnmyvk+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9?api-version=2023-07-01-preview\u0026t=638650837273690426\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmN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wTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=H6i8nVHVUNFTHfS5gRMDnajl6z1Opb1EhTyYuHU48xsh8PMpcbWr0J0JM4i0XlXosyZ4spVVu1RH81YigJGPunKktbHGkm7sKHoRY8OzhOUa3h4zyZg3knwhzAFtS5vhEYTR7xFmEvke9l0H7loBz9Uefw7dwbeL2eSNueNCJVW7Yjp-E-1TddvBnfVoU7shzn-A8m802OnskNUcoeRnMSAs083IufGqSciF4kwNDiNBdYc9GTKCyichxaUiu9H4kthAeI2spnYf_HN2qgHcwRh8uYzSonnVoKV82QKl5B3-hFKyWA38VEo5LMhKh8c5SS-zwd0yt9EVt8uB0qaaog\u0026h=88YZ2A0pKsMvVft8WW4wZ3FXNrclZmE8qsukflnmyvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "53dea3d6-1b7d-4bd6-89f5-866541dec643" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "eb492cca-ea24-429f-94b4-ca172bc72a9b" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "eb492cca-ea24-429f-94b4-ca172bc72a9b" ], + "x-ms-correlation-request-id": [ "eb492cca-ea24-429f-94b4-ca172bc72a9b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050212Z:eb492cca-ea24-429f-94b4-ca172bc72a9b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E9FCE43C019545B193A1A04261510AF1 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:12Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "511" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9\",\"startTime\":\"2024-10-21T05:02:07.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6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5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=H6i8nVHVUNFTHfS5gRMDnajl6z1Opb1EhTyYuHU48xsh8PMpcbWr0J0JM4i0XlXosyZ4spVVu1RH81YigJGPunKktbHGkm7sKHoRY8OzhOUa3h4zyZg3knwhzAFtS5vhEYTR7xFmEvke9l0H7loBz9Uefw7dwbeL2eSNueNCJVW7Yjp-E-1TddvBnfVoU7shzn-A8m802OnskNUcoeRnMSAs083IufGqSciF4kwNDiNBdYc9GTKCyichxaUiu9H4kthAeI2spnYf_HN2qgHcwRh8uYzSonnVoKV82QKl5B3-hFKyWA38VEo5LMhKh8c5SS-zwd0yt9EVt8uB0qaaog\u0026h=88YZ2A0pKsMvVft8WW4wZ3FXNrclZmE8qsukflnmyvk+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/d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BJTIwMDEoNCkuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=H6i8nVHVUNFTHfS5gRMDnajl6z1Opb1EhTyYuHU48xsh8PMpcbWr0J0JM4i0XlXosyZ4spVVu1RH81YigJGPunKktbHGkm7sKHoRY8OzhOUa3h4zyZg3knwhzAFtS5vhEYTR7xFmEvke9l0H7loBz9Uefw7dwbeL2eSNueNCJVW7Yjp-E-1TddvBnfVoU7shzn-A8m802OnskNUcoeRnMSAs083IufGqSciF4kwNDiNBdYc9GTKCyichxaUiu9H4kthAeI2spnYf_HN2qgHcwRh8uYzSonnVoKV82QKl5B3-hFKyWA38VEo5LMhKh8c5SS-zwd0yt9EVt8uB0qaaog\u0026h=88YZ2A0pKsMvVft8WW4wZ3FXNrclZmE8qsukflnmyvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "53dea3d6-1b7d-4bd6-89f5-866541dec643" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "58539020-0631-405b-b033-b8fa7d0cfc17" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "58539020-0631-405b-b033-b8fa7d0cfc17" ], + "x-ms-correlation-request-id": [ "58539020-0631-405b-b033-b8fa7d0cfc17" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050242Z:58539020-0631-405b-b033-b8fa7d0cfc17" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EB3D94FAE5F2402FBDBE1BB0BE1A3B88 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:42Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9\",\"startTime\":\"2024-10-21T05:02:07.0000000Z\",\"endTime\":\"2024-10-21T05:02:15.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "53dea3d6-1b7d-4bd6-89f5-866541dec643" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "70baa53c-7759-4fd1-bf6a-21f64c6653e8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "70baa53c-7759-4fd1-bf6a-21f64c6653e8" ], + "x-ms-correlation-request-id": [ "70baa53c-7759-4fd1-bf6a-21f64c6653e8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050243Z:70baa53c-7759-4fd1-bf6a-21f64c6653e8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C081024F2D284752BE2C80D055886248 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:42Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "985" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0600d9e7-0000-0800-0000-6715e0570000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg\",\"name\":\"psdnssecurityrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T04:43:24.3626718Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:02:07.1971715Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "3e098e33-c4a4-4679-affc-da2d8fff3098" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "574fbbd5-7b81-4f3d-a962-82e71e22aa1b" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "574fbbd5-7b81-4f3d-a962-82e71e22aa1b" ], + "x-ms-correlation-request-id": [ "574fbbd5-7b81-4f3d-a962-82e71e22aa1b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050244Z:574fbbd5-7b81-4f3d-a962-82e71e22aa1b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 54FE1779D5A246048EE13D3F1762412A Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:43Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "985" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0600d9e7-0000-0800-0000-6715e0570000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg\",\"name\":\"psdnssecurityrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T04:43:24.3626718Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:02:07.1971715Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..60a1160e08bf --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 @@ -0,0 +1,34 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDnsResolverPolicyDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDnsResolverPolicyDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzDnsResolverPolicyDnsSecurityRule' { + It 'Create DNS security rule' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename0j0cdzg"; + $dnsSecurityRuleName = "psdnssecurityrulename0j0cdzg"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename0j0cdzg"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ASSERT + {Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -DnsSecurityRuleName $dnsSecurityRuleName -ResourceGroupName $resourceGroupName } | Should -Not -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Recording.json new file mode 100644 index 000000000000..7d54969691c4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Recording.json @@ -0,0 +1,342 @@ +{ + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q0YWI2ZTAtMmZiNC00NDFlLTg0NGYtMTM0ZmMzNmI3MzQ5In0=?api-version=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YgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=SwB1I03CMmCbHErzwA1tOpbfqI9KcMux9Pc0inWAByHCw7Il7HmDEOFZIHULROjdZSy6MC7iBz3lDaC8FAC2JpmSxssh5NE8JUEZE_3RG3MtA8kVcxKFyZbVvPEY9DdXPPgFll3qGVzms5kRQCczH37A4tqRQuKyoE4dCahDP-D6hYQ30mcVIVNpCsPQ-8kWrvzBde8koPdszmwni8NFVwctv7XKVXKFfXtwNcgClAxnVew3WOpZ36cQhPR1vINqDhD9iz-RnqTuXq8S6GjUfs1gj5E0YJiTqwAedIqIiG8zoJy53m3nybxTvJ1AMiIGSzoBQQfHLo8G2DqOZaZaJQ\u0026h=lvgZptduuGIv0aJiFGBoDHsr87Ch7xQD2XMXYZ461Cs" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "a3947d0c-e47a-4f51-ae14-5869b85f8b50" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dns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x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "a3947d0c-e47a-4f51-ae14-5869b85f8b50" ], + "x-ms-correlation-request-id": [ "a3947d0c-e47a-4f51-ae14-5869b85f8b50" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055956Z:a3947d0c-e47a-4f51-ae14-5869b85f8b50" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4DD5A1D911204E6AB145F1FD4F8EA826 Ref B: CO6AA3150220021 Ref C: 2024-10-21T05:59:55Z" ], + "Date": [ "Mon, 21 Oct 2024 05:59:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"74014132-0000-0800-0000-6715eddc0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg\",\"name\":\"psdnsresolverpolicyforlinkname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:46:42.3924047Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:59:56.4034527Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ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BBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=xp7e7Uo5M-SlDhlJyQrosCxymX-PQKV6cEOYUxgFySVAGFITHK0YuGo9-fe1eENuSFfz8l5JgEnN-BoPwTiLJj_v8Cg2HUtf040fIhsUecO2WP9MKgbQmmHo1n3LaTdqs1Mbg7Wj20ZTC4AXmNX02BA07e1Cp5uQ4CFlHvWG7DJ8BR8Rd4whl9CdVR6xQo3n6C3lcePwpOVxLquqXRCkQsoYBgNFts9v0A4ogYzJKoSHAXbzvNuouNqGehHHneVrkhXaRh_7iQx3FlGdJoojleW_a0yQtXdZlDh9vJy_BJgBkctJQvtoD4kBwjAQo3d7-2VT1ibh2326fnnPJUim7Q\u0026h=8AkRVHD3dBeC5z9_-raNcIe77Wg5wsL4Rnj6LWt6pIw+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q0YWI2ZTAtMmZiNC00NDFlLTg0NGYtMTM0ZmMzNmI3MzQ5In0=?api-version=2023-07-01-preview\u0026t=638650871965908887\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZ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2326fnnPJUim7Q\u0026h=8AkRVHD3dBeC5z9_-raNcIe77Wg5wsL4Rnj6LWt6pIw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "7b42a998-7f9b-4372-a974-87a7a29f41a8" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3f94ce1a-a631-4349-9f34-9ef98a2773da" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3f94ce1a-a631-4349-9f34-9ef98a2773da" ], + "x-ms-correlation-request-id": [ "3f94ce1a-a631-4349-9f34-9ef98a2773da" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060001Z:3f94ce1a-a631-4349-9f34-9ef98a2773da" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0C4EB453BC6C4AC6995447EC2B68074C Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:01Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q0YWI2ZTAtMmZiNC00NDFlLTg0NGYtMTM0ZmMzNmI3MzQ5In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q0YWI2ZTAtMmZiNC00NDFlLTg0NGYtMTM0ZmMzNmI3MzQ5In0=\",\"startTime\":\"2024-10-21T05:59:56.0000000Z\",\"endTime\":\"2024-10-21T05:59:58.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "7b42a998-7f9b-4372-a974-87a7a29f41a8" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "16ec1954-a2b6-4c29-ae8c-5f34f3d40671" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "16ec1954-a2b6-4c29-ae8c-5f34f3d40671" ], + "x-ms-correlation-request-id": [ "16ec1954-a2b6-4c29-ae8c-5f34f3d40671" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060002Z:16ec1954-a2b6-4c29-ae8c-5f34f3d40671" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A6CC3C758D5645B7AA7F7E8E86B9A588 Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:02Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8187eade-f120-4603-810f-62ee8d6bd3b4\"},\"etag\":\"\\\"2c006620-0000-0800-0000-6715edde0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg\",\"name\":\"psdnsresolverpolicyforlinkname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:46:42.3924047Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:59:56.4034527Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname0j0cdzg\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "276" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9?api-version=2023-07-01-preview\u0026t=638650872035175076\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUw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VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=mWtVgrGQhbjgtmnWpShvVeE4drHNJcTKo_LjLXngjW7Bmam6MSr7CHQ3L0TcrVMJ7v4QAFzP6J74BNlBfzrDHxb77v_v0AHstYmFkdHTv5Jfl2VF9kUASZbXeEY1w51K4HR61ZiDciAYbDTex8C4BUg8FrHl5jaB-bv3_0XnywfwWyU5i37CdroRuHTdC62lzSg_Dxeuy_8obKRYXNTHCIwKj_8Fj_1riUu59lVS8XSFGfdwxGMZQopzPgSvTkSrMkPvv6uzSF4dGdBKAc1UmrrmtY6XeeTcGoR6F7UZ3pM_AVLLMYhRfOmy2TIXjDpW--hytGRQzyZf5Kvyh6HBCQ\u0026h=n3kANTP55kjjT3J5YW8JIdHvToAvpPbucG1FAGu33nU" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "ed8ff6c9-e4dc-423d-8298-43c3db735417" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9?api-version=2023-07-01-preview\u0026t=638650872035018777\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMR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QUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=hc-nyBObOJ16hYYe_n8npayYKiw4NuhZUV6QdSKBaLgX2tP7vBOgE9JHNc-nJQ0BNlzDpui2egyhaQiYJYbrUeHVcuxB9qkvXSF1kOmH03TczXu8VlCQ7TjHUhmXdn2gMmgrdIuTdihgFov-pr27ka4DReMLPSiVE7wViEpxZPGBWXH4xdD2wghZPEm4VfIoHE6a5Crxn1f-m52p8q_DG6gCNtcUOBlaNic7A2uZNxYe7AqYgPQkO3lsRzNA7I2kN-8DC2OJGpNeLPgD_EzBNZJ-PRhx6WcfndZDqDUAnYTTyVrs-aR8z0kFBqusziJVuIWPTXaw6sjxekdXW4HChQ\u0026h=nzrRKU8d9teefJBiq5LkcqSFcZE5HvEMpLKFbtjMtV0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "ed8ff6c9-e4dc-423d-8298-43c3db735417" ], + "x-ms-correlation-request-id": [ "ed8ff6c9-e4dc-423d-8298-43c3db735417" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060003Z:ed8ff6c9-e4dc-423d-8298-43c3db735417" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D61333A847724352AD809D201CE6B1CF Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:02Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "831" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname0j0cdzg\"},\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2c00d720-0000-0800-0000-6715ede30000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg\",\"name\":\"psdnsresolverpolicylinkname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T05:55:11.8540023Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:00:03.3768747Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9?api-version=2023-07-01-preview\u0026t=638650872035018777\u0026c=MIIHhzCC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jG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=hc-nyBObOJ16hYYe_n8npayYKiw4NuhZUV6QdSKBaLgX2tP7vBOgE9JHNc-nJQ0BNlzDpui2egyhaQiYJYbrUeHVcuxB9qkvXSF1kOmH03TczXu8VlCQ7TjHUhmXdn2gMmgrdIuTdihgFov-pr27ka4DReMLPSiVE7wViEpxZPGBWXH4xdD2wghZPEm4VfIoHE6a5Crxn1f-m52p8q_DG6gCNtcUOBlaNic7A2uZNxYe7AqYgPQkO3lsRzNA7I2kN-8DC2OJGpNeLPgD_EzBNZJ-PRhx6WcfndZDqDUAnYTTyVrs-aR8z0kFBqusziJVuIWPTXaw6sjxekdXW4HChQ\u0026h=nzrRKU8d9teefJBiq5LkcqSFcZE5HvEMpLKFbtjMtV0+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1h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lADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=hc-nyBObOJ16hYYe_n8npayYKiw4NuhZUV6QdSKBaLgX2tP7vBOgE9JHNc-nJQ0BNlzDpui2egyhaQiYJYbrUeHVcuxB9qkvXSF1kOmH03TczXu8VlCQ7TjHUhmXdn2gMmgrdIuTdihgFov-pr27ka4DReMLPSiVE7wViEpxZPGBWXH4xdD2wghZPEm4VfIoHE6a5Crxn1f-m52p8q_DG6gCNtcUOBlaNic7A2uZNxYe7AqYgPQkO3lsRzNA7I2kN-8DC2OJGpNeLPgD_EzBNZJ-PRhx6WcfndZDqDUAnYTTyVrs-aR8z0kFBqusziJVuIWPTXaw6sjxekdXW4HChQ\u0026h=nzrRKU8d9teefJBiq5LkcqSFcZE5HvEMpLKFbtjMtV0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "f414b7e3-0dfe-4dda-a61a-a934fd3a79a9" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "9f3c3a3e-bd91-44fa-9f35-574f0d706f37" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "9f3c3a3e-bd91-44fa-9f35-574f0d706f37" ], + "x-ms-correlation-request-id": [ "9f3c3a3e-bd91-44fa-9f35-574f0d706f37" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060009Z:9f3c3a3e-bd91-44fa-9f35-574f0d706f37" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 415EFCC5B8324F32A9E50DE898EC3361 Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:08Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "527" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9\",\"startTime\":\"2024-10-21T06:00:03.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9?api-version=2023-07-01-preview\u0026t=638650872035018777\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ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4xdD2wghZPEm4VfIoHE6a5Crxn1f-m52p8q_DG6gCNtcUOBlaNic7A2uZNxYe7AqYgPQkO3lsRzNA7I2kN-8DC2OJGpNeLPgD_EzBNZJ-PRhx6WcfndZDqDUAnYTTyVrs-aR8z0kFBqusziJVuIWPTXaw6sjxekdXW4HChQ\u0026h=nzrRKU8d9teefJBiq5LkcqSFcZE5HvEMpLKFbtjMtV0+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9?api-version=2023-07-01-preview\u0026t=638650872035018777\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8W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03TczXu8VlCQ7TjHUhmXdn2gMmgrdIuTdihgFov-pr27ka4DReMLPSiVE7wViEpxZPGBWXH4xdD2wghZPEm4VfIoHE6a5Crxn1f-m52p8q_DG6gCNtcUOBlaNic7A2uZNxYe7AqYgPQkO3lsRzNA7I2kN-8DC2OJGpNeLPgD_EzBNZJ-PRhx6WcfndZDqDUAnYTTyVrs-aR8z0kFBqusziJVuIWPTXaw6sjxekdXW4HChQ\u0026h=nzrRKU8d9teefJBiq5LkcqSFcZE5HvEMpLKFbtjMtV0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "f414b7e3-0dfe-4dda-a61a-a934fd3a79a9" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "176a9f6b-1da3-4da3-8bdb-32556ad6fa14" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "498" ], + "x-ms-request-id": [ "176a9f6b-1da3-4da3-8bdb-32556ad6fa14" ], + "x-ms-correlation-request-id": [ "176a9f6b-1da3-4da3-8bdb-32556ad6fa14" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060039Z:176a9f6b-1da3-4da3-8bdb-32556ad6fa14" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8EF61A9EC38B404BAA66BE5D66E6926B Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:39Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9\",\"startTime\":\"2024-10-21T06:00:03.0000000Z\",\"endTime\":\"2024-10-21T06:00:09.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "f414b7e3-0dfe-4dda-a61a-a934fd3a79a9" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e850cde0-1d65-4e1c-a2e2-01394b993ddf" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e850cde0-1d65-4e1c-a2e2-01394b993ddf" ], + "x-ms-correlation-request-id": [ "e850cde0-1d65-4e1c-a2e2-01394b993ddf" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060040Z:e850cde0-1d65-4e1c-a2e2-01394b993ddf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0CF345D5C8FF4EA4BFDC9FAD7483A1BB Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:39Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "832" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname0j0cdzg\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00ab21-0000-0800-0000-6715ede90000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg\",\"name\":\"psdnsresolverpolicylinkname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T05:55:11.8540023Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:00:03.3768747Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "2aa10426-5e58-4aa8-a48b-707874dbbc98" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f0623a4c-26b5-47d1-867c-3e2c97ebd7dd" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f0623a4c-26b5-47d1-867c-3e2c97ebd7dd" ], + "x-ms-correlation-request-id": [ "f0623a4c-26b5-47d1-867c-3e2c97ebd7dd" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060040Z:f0623a4c-26b5-47d1-867c-3e2c97ebd7dd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D43938FBE52A410CB5EF63AE691E37E3 Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:40Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "832" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname0j0cdzg\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00ab21-0000-0800-0000-6715ede90000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg\",\"name\":\"psdnsresolverpolicylinkname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T05:55:11.8540023Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:00:03.3768747Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 new file mode 100644 index 000000000000..f9511b9c3bc0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDnsResolverPolicyVirtualNetworkLink')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDnsResolverPolicyVirtualNetworkLink.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzDnsResolverPolicyVirtualNetworkLink' { + It 'Creates a virtual network link to a DNS resolver policy.' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinkname0j0cdzg"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinkname0j0cdzg"; + $virtualNetworkName = "psvirtualnetworkforlinkname0j0cdzg"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $vnet.Id + + # ASSERT + { Get-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName } | Should -Not -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..52372e962d59 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDnsSecurityRule.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzDnsResolverDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzDnsResolverDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzDnsResolverDnsSecurityRule' { + It 'Delete' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Recording.json new file mode 100644 index 000000000000..42a85775696a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Recording.json @@ -0,0 +1,684 @@ +{ + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "b524d466-af84-4697-807a-4a4ece37dc5e" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNv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BgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=DRoFR3rVg0nNkZE6EwsOZTLWK-SxrpvlAAQrVG_Yng3MDt0RnC4qhrVZd6i4FHFMo7olsB2chvH51Ln6BQbkQXZNTCzIcy__KzaAB2kd5YU6_sU315mmd272JnqnWgXdJ26CJqett-N7_POsH5HcUndRpswnBQTcGlXi5U6YD6MyMsGpu2hm6kM9EQ117tWB71TjiHS1KZcchrw8V6LGmOQ72Q9DpKLuUZWgbkkqHN47ZJo75cyUeREa8UpLQBkX3YDoSXHLWZfgglikuquyCvd7Tyk-7_6YYcPHNLrQz19omgKd8w7hO_XsKV0lQWcJ388EyHfxq3yOCLWlBfKz-g\u0026h=PXus7Z4XnpYTkMWRd9VchxnnSgEsZpdAzAfACqJQpUs" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "b524d466-af84-4697-807a-4a4ece37dc5e" ], + "x-ms-correlation-request-id": [ "b524d466-af84-4697-807a-4a4ece37dc5e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042604Z:b524d466-af84-4697-807a-4a4ece37dc5e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FD606FF511A74E64BA7C72CE76362112 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:02Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"6d0152f2-0000-0800-0000-6715d7dc0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65\",\"name\":\"psdnsresolverdomainlistname65\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:26:04.2016945Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:26:04.2016945Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNi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ADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=DRoFR3rVg0nNkZE6EwsOZTLWK-SxrpvlAAQrVG_Yng3MDt0RnC4qhrVZd6i4FHFMo7olsB2chvH51Ln6BQbkQXZNTCzIcy__KzaAB2kd5YU6_sU315mmd272JnqnWgXdJ26CJqett-N7_POsH5HcUndRpswnBQTcGlXi5U6YD6MyMsGpu2hm6kM9EQ117tWB71TjiHS1KZcchrw8V6LGmOQ72Q9DpKLuUZWgbkkqHN47ZJo75cyUeREa8UpLQBkX3YDoSXHLWZfgglikuquyCvd7Tyk-7_6YYcPHNLrQz19omgKd8w7hO_XsKV0lQWcJ388EyHfxq3yOCLWlBfKz-g\u0026h=PXus7Z4XnpYTkMWRd9VchxnnSgEsZpdAzAfACqJQpUs+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dn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isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "4eebf1b0-f93e-4429-9911-0221e5c34b8c" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "79fdeb8f-1d41-4b76-80b0-25eda3346133" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "79fdeb8f-1d41-4b76-80b0-25eda3346133" ], + "x-ms-correlation-request-id": [ "79fdeb8f-1d41-4b76-80b0-25eda3346133" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042609Z:79fdeb8f-1d41-4b76-80b0-25eda3346133" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C99AC72245DB409081DB2833156931D3 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:09Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNiMThhOGJhLTI4N2ItNDc2NC1iNTg5LTI1MmZiOTIyZjNiNyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNiMThhOGJhLTI4N2ItNDc2NC1iNTg5LTI1MmZiOTIyZjNiNyJ9\",\"startTime\":\"2024-10-21T04:26:04.0000000Z\",\"endTime\":\"2024-10-21T04:26:05.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "4eebf1b0-f93e-4429-9911-0221e5c34b8c" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a9e7e2ea-2d87-458a-ab89-b9eb2a898d68" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a9e7e2ea-2d87-458a-ab89-b9eb2a898d68" ], + "x-ms-correlation-request-id": [ "a9e7e2ea-2d87-458a-ab89-b9eb2a898d68" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042610Z:a9e7e2ea-2d87-458a-ab89-b9eb2a898d68" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CC1B9CC263444BF38725446291279855 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:10Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "648" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ca3129de-7215-4008-b5e7-7b36d4b104b4\"},\"etag\":\"\\\"3c00b004-0000-0800-0000-6715d7dc0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65\",\"name\":\"psdnsresolverdomainlistname65\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:26:04.2016945Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:26:04.2016945Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "247ef157-86d1-497d-85b1-d07286095ec3" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717252393\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKo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omfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=hRcfLiQqo5ZsxB45vBsWaIMJOSeq1nPhZTUv2dt91QDVSjg7dNtKXQaELe9sm4WfJqqsfzSpt17HNNKx02ByunORl7rpXy5WGPf_fbXWx86ZerNDdTg6X83WtxsXLiOsPofLJTrotCLvMsIuVh6qG6qA8NF_hrk9W5rkygIMOYuPEzyN6ypqsbuX1okBgmVofNJfDYhMfbcftVmKHCHtk0Oxrg2L6PCb8O2vIVfnp5KaV0xNokQLG1r3wFNYsk5XYxTZ03fWuSePYs3hlsis4FRhmoxB8IgWfzfO0_WEkA56UVXnA1Z4xkhuaAgl5xOEFfGnupD1VivyjX_B6Xk7mQ\u0026h=z7h87jpe74wgvPkThHdl67Maatb0Nyx11FQmH5KWRiY" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "b4296d59-cc40-4ce1-a803-74c224d9e9e0" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717096146\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNM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4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=Kdwvnl9d1HekvIL0ipZdZrijI1CidZdY0h34nufDPtdyItbOV0H0zm5UD0SCRh1JgPOJ4WCWt5O6veVGPqAZP-A5n5ScvLNPGVkN5AXFiRGOUleLQTuq4TiRwy-9xMi4uCUqXTJPUwMgycWiVFhAcD0Mlno_MV5B3gB1GA6g6tVugIjH1nw97kx0XA4QZt_vdnOIdi03wPgAdnieTfVFLHggP4yBcpWjyVGnq1NBI-UuEa4TvKHxtQAUbD7OLQWiQPyhzyTACVy_wXhUxNasLCdRxVtBF7IrSZrhwa_Mq8uE0milbt4ig1iJVskyo8UlhMUlk6_I9jwH_N_SgL7MPg\u0026h=rDVItohLF84pBbz7vgBrYwa5Qlm485UqYWBotbXB2H4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "b4296d59-cc40-4ce1-a803-74c224d9e9e0" ], + "x-ms-correlation-request-id": [ "b4296d59-cc40-4ce1-a803-74c224d9e9e0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042611Z:b4296d59-cc40-4ce1-a803-74c224d9e9e0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B58108F51F1B4852BF941D527D43BA13 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:10Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:11 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717096146\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CA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uEa4TvKHxtQAUbD7OLQWiQPyhzyTACVy_wXhUxNasLCdRxVtBF7IrSZrhwa_Mq8uE0milbt4ig1iJVskyo8UlhMUlk6_I9jwH_N_SgL7MPg\u0026h=rDVItohLF84pBbz7vgBrYwa5Qlm485UqYWBotbXB2H4+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717096146\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY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6g6tVugIjH1nw97kx0XA4QZt_vdnOIdi03wPgAdnieTfVFLHggP4yBcpWjyVGnq1NBI-UuEa4TvKHxtQAUbD7OLQWiQPyhzyTACVy_wXhUxNasLCdRxVtBF7IrSZrhwa_Mq8uE0milbt4ig1iJVskyo8UlhMUlk6_I9jwH_N_SgL7MPg\u0026h=rDVItohLF84pBbz7vgBrYwa5Qlm485UqYWBotbXB2H4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "247ef157-86d1-497d-85b1-d07286095ec3" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "24a60ff3-3552-4c4b-9f5e-ffa1369517bc" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "24a60ff3-3552-4c4b-9f5e-ffa1369517bc" ], + "x-ms-correlation-request-id": [ "24a60ff3-3552-4c4b-9f5e-ffa1369517bc" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042617Z:24a60ff3-3552-4c4b-9f5e-ffa1369517bc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A07509CE23C9449C9F96B6A9DA3A4141 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:16Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9\",\"startTime\":\"2024-10-21T04:26:11.0000000Z\",\"endTime\":\"2024-10-21T04:26:14.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717252393\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAM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ewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=hRcfLiQqo5ZsxB45vBsWaIMJOSeq1nPhZTUv2dt91QDVSjg7dNtKXQaELe9sm4WfJqqsfzSpt17HNNKx02ByunORl7rpXy5WGPf_fbXWx86ZerNDdTg6X83WtxsXLiOsPofLJTrotCLvMsIuVh6qG6qA8NF_hrk9W5rkygIMOYuPEzyN6ypqsbuX1okBgmVofNJfDYhMfbcftVmKHCHtk0Oxrg2L6PCb8O2vIVfnp5KaV0xNokQLG1r3wFNYsk5XYxTZ03fWuSePYs3hlsis4FRhmoxB8IgWfzfO0_WEkA56UVXnA1Z4xkhuaAgl5xOEFfGnupD1VivyjX_B6Xk7mQ\u0026h=z7h87jpe74wgvPkThHdl67Maatb0Nyx11FQmH5KWRiY+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717252393\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUg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87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=hRcfLiQqo5ZsxB45vBsWaIMJOSeq1nPhZTUv2dt91QDVSjg7dNtKXQaELe9sm4WfJqqsfzSpt17HNNKx02ByunORl7rpXy5WGPf_fbXWx86ZerNDdTg6X83WtxsXLiOsPofLJTrotCLvMsIuVh6qG6qA8NF_hrk9W5rkygIMOYuPEzyN6ypqsbuX1okBgmVofNJfDYhMfbcftVmKHCHtk0Oxrg2L6PCb8O2vIVfnp5KaV0xNokQLG1r3wFNYsk5XYxTZ03fWuSePYs3hlsis4FRhmoxB8IgWfzfO0_WEkA56UVXnA1Z4xkhuaAgl5xOEFfGnupD1VivyjX_B6Xk7mQ\u0026h=z7h87jpe74wgvPkThHdl67Maatb0Nyx11FQmH5KWRiY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "247ef157-86d1-497d-85b1-d07286095ec3" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "d551e4ab-63e0-4b64-b026-8eaaf177005d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "d551e4ab-63e0-4b64-b026-8eaaf177005d" ], + "x-ms-correlation-request-id": [ "d551e4ab-63e0-4b64-b026-8eaaf177005d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042617Z:d551e4ab-63e0-4b64-b026-8eaaf177005d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6F5397A17664494D87FEBD37C25A9C06 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:17Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:17 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "62eb698c-009d-4315-8ae7-1857362ade7b" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "9fad1b71-dbc6-4913-8602-7f220d81bd0b" ], + "x-ms-correlation-request-id": [ "9fad1b71-dbc6-4913-8602-7f220d81bd0b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042618Z:9fad1b71-dbc6-4913-8602-7f220d81bd0b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B4FB5D3A33164B898F80E4B2A470928B Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:17Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "273" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "6472d0bb-9408-4653-83d1-415471f74f36" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImY2NjEzZWY3LThmZjctNDY3ZC1hZDQ5LTNhNTcyODRmMzQ4MSJ9?api-version=2023-07-01-preview\u0026t=638650815796658801\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUB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5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=TGgvgRdfs4DzKtBs0uQ2A1zA0-5eCo9-ecEXJmfPIWkf1r3AzIAwzYZ-JhHA1n5-FcKPBQcZHkyHnRNa0pLDdS-83la0sXxwnXGTZC_6eZrm7Dm1kgFtOLTEeHOY995esLdOQh8e6l5fxG3UBjgSLFLC9a--S2jSBu3HrAHsj7ZQrq5p3vfcVr3m8IBzKt9Kg8sHyaZesTYYw5EG4gTgvN1tCd9lrpXNIxH3Tj2lUv8jThtxntdJONAKAaxeMzo-BIHQPvZEEm2AcZ16-0ckNq3eGm13LcLNPdF04xPFE2iRo8pcVZIMTwmiw24lF9x6kDpYuP1iz1GXjVMdTh70Kw\u0026h=g5ytzfeYIEOs98E5FZ_gTYmCpF8T7OoejOyIAAV0vcU" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "6472d0bb-9408-4653-83d1-415471f74f36" ], + "x-ms-correlation-request-id": [ "6472d0bb-9408-4653-83d1-415471f74f36" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042619Z:6472d0bb-9408-4653-83d1-415471f74f36" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 78A4702D2E194A3F9F07FB3DF80B6583 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:18Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"6d010ff6-0000-0800-0000-6715d7eb0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66\",\"name\":\"psdnsresolverdomainlistname66\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:26:19.3065056Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:26:19.3065056Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImY2NjEzZWY3LThmZjctNDY3ZC1hZDQ5LTNhNTcyODRmMzQ4MSJ9?api-version=2023-07-01-preview\u0026t=638650815796658801\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFP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DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=TGgvgRdfs4DzKtBs0uQ2A1zA0-5eCo9-ecEXJmfPIWkf1r3AzIAwzYZ-JhHA1n5-FcKPBQcZHkyHnRNa0pLDdS-83la0sXxwnXGTZC_6eZrm7Dm1kgFtOLTEeHOY995esLdOQh8e6l5fxG3UBjgSLFLC9a--S2jSBu3HrAHsj7ZQrq5p3vfcVr3m8IBzKt9Kg8sHyaZesTYYw5EG4gTgvN1tCd9lrpXNIxH3Tj2lUv8jThtxntdJONAKAaxeMzo-BIHQPvZEEm2AcZ16-0ckNq3eGm13LcLNPdF04xPFE2iRo8pcVZIMTwmiw24lF9x6kDpYuP1iz1GXjVMdTh70Kw\u0026h=g5ytzfeYIEOs98E5FZ_gTYmCpF8T7OoejOyIAAV0vcU+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImY2NjEzZWY3LThmZjctNDY3ZC1hZDQ5LTNhNTcyODRmMzQ4MSJ9?api-version=2023-07-01-preview\u0026t=638650815796658801\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNv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TahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=TGgvgRdfs4DzKtBs0uQ2A1zA0-5eCo9-ecEXJmfPIWkf1r3AzIAwzYZ-JhHA1n5-FcKPBQcZHkyHnRNa0pLDdS-83la0sXxwnXGTZC_6eZrm7Dm1kgFtOLTEeHOY995esLdOQh8e6l5fxG3UBjgSLFLC9a--S2jSBu3HrAHsj7ZQrq5p3vfcVr3m8IBzKt9Kg8sHyaZesTYYw5EG4gTgvN1tCd9lrpXNIxH3Tj2lUv8jThtxntdJONAKAaxeMzo-BIHQPvZEEm2AcZ16-0ckNq3eGm13LcLNPdF04xPFE2iRo8pcVZIMTwmiw24lF9x6kDpYuP1iz1GXjVMdTh70Kw\u0026h=g5ytzfeYIEOs98E5FZ_gTYmCpF8T7OoejOyIAAV0vcU", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "82bdf260-31a1-4b18-aef6-e8af86d8bc30" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "92d66489-27fa-4cfa-8677-462b3412c754" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "92d66489-27fa-4cfa-8677-462b3412c754" ], + "x-ms-correlation-request-id": [ "92d66489-27fa-4cfa-8677-462b3412c754" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042625Z:92d66489-27fa-4cfa-8677-462b3412c754" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5B22675BB650446A84C6D59C16B1A26F Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:24Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImY2NjEzZWY3LThmZjctNDY3ZC1hZDQ5LTNhNTcyODRmMzQ4MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImY2NjEzZWY3LThmZjctNDY3ZC1hZDQ5LTNhNTcyODRmMzQ4MSJ9\",\"startTime\":\"2024-10-21T04:26:19.0000000Z\",\"endTime\":\"2024-10-21T04:26:24.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "82bdf260-31a1-4b18-aef6-e8af86d8bc30" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e285d001-8d34-40d5-b171-03371ccbc1e5" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e285d001-8d34-40d5-b171-03371ccbc1e5" ], + "x-ms-correlation-request-id": [ "e285d001-8d34-40d5-b171-03371ccbc1e5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042625Z:e285d001-8d34-40d5-b171-03371ccbc1e5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 90057BF012FD475A9DD5ACEF7BF325EE Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:25Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "648" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d446fb76-a036-442f-8d09-2d1cdcfba935\"},\"etag\":\"\\\"3c005a07-0000-0800-0000-6715d7f00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66\",\"name\":\"psdnsresolverdomainlistname66\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:26:19.3065056Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:26:19.3065056Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "1a520f1a-2eb1-4444-8b84-69a1e85fd581" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "16bf22ef-7762-4ee1-b82b-0e986bb830d1" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "16bf22ef-7762-4ee1-b82b-0e986bb830d1" ], + "x-ms-correlation-request-id": [ "16bf22ef-7762-4ee1-b82b-0e986bb830d1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042626Z:16bf22ef-7762-4ee1-b82b-0e986bb830d1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E3D4746E0D55401399004CB2841E312F Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:25Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "648" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d446fb76-a036-442f-8d09-2d1cdcfba935\"},\"etag\":\"\\\"3c005a07-0000-0800-0000-6715d7f00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66\",\"name\":\"psdnsresolverdomainlistname66\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:26:19.3065056Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:26:19.3065056Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "3dc14df4-6f92-4b46-97fb-e7cb64ca1b73" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879242747\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjB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oMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=drke4_yaenWDD0Ox17bt8YVah4v9JJzn6-SDQ2VZyCjr2aMRn7SxcBjFKs9nX4FAmJB3XdkxqBPBd_IGyg1aDVQZAw2OjDhUTfp4acIaxrhlDHr2JxA3E07bXNytP0GmamisWngV-2LLcMB70eGhArTmoqe2UG74TKnYSiKPW3J8JUIC608I6qIX-p_V6Cp_v1-kvefbQ3PErcgLg9LWYqg1OHiVYI81-iVbK_UKerRPW0mH3y94_F5AjPupfA4pMu-2aJJYKWSt54iOwb-l4yVDeQAOPjqcoRYB8YOoKT-6-plcn4HJV5zDfdPFXeXQApWMY7Md_D8Z_O8PUbPRgg\u0026h=BhAQl-2zX6zWDVQ9a_uR9MEM5GqA83jR5P6pfuTJgNI" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "4304550e-0479-4c39-bace-a06d5479ecb9" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879086460\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1Mj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GDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=mRFQoNzagtzcfZ606KNPdhC96VbkAOcac_XITR0P5rEHK2EvvlQVE2QvbnllEIbECRq0uErhWOc5nr_STTg52oLbkB6wR6aDt0GsE5Zz9etiFZh4oy2QwF4d_T2Hw9M2L8WyYG5M6MY5imj3UMG81RGqCcA9TkX-o-s739uDHGW9sKAroDXgShNygF_M3wbafJF-rZGyPqIZP2ix-p-eN04Q1xVz_cv8O5cL3uwarAXGTJsU0ZEwmKdz2_1JwpuEENbJnX5voPfQBOACSRv8BDPsNQC6sThqFqzgt_Ly2T8Kq3z8FA4zJyT0Mi9Y3YxR47lzMilYqPU2muJMu9CYoA\u0026h=z64gQsc7KzLHrGO6Wk7cV4f8HfqCKrblSXJ-O1gWr0g" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "4304550e-0479-4c39-bace-a06d5479ecb9" ], + "x-ms-correlation-request-id": [ "4304550e-0479-4c39-bace-a06d5479ecb9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042627Z:4304550e-0479-4c39-bace-a06d5479ecb9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2F5D3B5330D14EED9001BDE96982B638 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:26Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:27 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879086460\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MU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606KNPdhC96VbkAOcac_XITR0P5rEHK2EvvlQVE2QvbnllEIbECRq0uErhWOc5nr_STTg52oLbkB6wR6aDt0GsE5Zz9etiFZh4oy2QwF4d_T2Hw9M2L8WyYG5M6MY5imj3UMG81RGqCcA9TkX-o-s739uDHGW9sKAroDXgShNygF_M3wbafJF-rZGyPqIZP2ix-p-eN04Q1xVz_cv8O5cL3uwarAXGTJsU0ZEwmKdz2_1JwpuEENbJnX5voPfQBOACSRv8BDPsNQC6sThqFqzgt_Ly2T8Kq3z8FA4zJyT0Mi9Y3YxR47lzMilYqPU2muJMu9CYoA\u0026h=z64gQsc7KzLHrGO6Wk7cV4f8HfqCKrblSXJ-O1gWr0g+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879086460\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0Ixc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QByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=mRFQoNzagtzcfZ606KNPdhC96VbkAOcac_XITR0P5rEHK2EvvlQVE2QvbnllEIbECRq0uErhWOc5nr_STTg52oLbkB6wR6aDt0GsE5Zz9etiFZh4oy2QwF4d_T2Hw9M2L8WyYG5M6MY5imj3UMG81RGqCcA9TkX-o-s739uDHGW9sKAroDXgShNygF_M3wbafJF-rZGyPqIZP2ix-p-eN04Q1xVz_cv8O5cL3uwarAXGTJsU0ZEwmKdz2_1JwpuEENbJnX5voPfQBOACSRv8BDPsNQC6sThqFqzgt_Ly2T8Kq3z8FA4zJyT0Mi9Y3YxR47lzMilYqPU2muJMu9CYoA\u0026h=z64gQsc7KzLHrGO6Wk7cV4f8HfqCKrblSXJ-O1gWr0g", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "3dc14df4-6f92-4b46-97fb-e7cb64ca1b73" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "51089018-2c76-4a55-91ee-b5dd68086816" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "51089018-2c76-4a55-91ee-b5dd68086816" ], + "x-ms-correlation-request-id": [ "51089018-2c76-4a55-91ee-b5dd68086816" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042633Z:51089018-2c76-4a55-91ee-b5dd68086816" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5D4A5B6A5E7749BA9AE0C5306BB4F38E Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:33Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "530" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9\",\"startTime\":\"2024-10-21T04:26:27.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-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AZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=mRFQoNzagtzcfZ606KNPdhC96VbkAOcac_XITR0P5rEHK2EvvlQVE2QvbnllEIbECRq0uErhWOc5nr_STTg52oLbkB6wR6aDt0GsE5Zz9etiFZh4oy2QwF4d_T2Hw9M2L8WyYG5M6MY5imj3UMG81RGqCcA9TkX-o-s739uDHGW9sKAroDXgShNygF_M3wbafJF-rZGyPqIZP2ix-p-eN04Q1xVz_cv8O5cL3uwarAXGTJsU0ZEwmKdz2_1JwpuEENbJnX5voPfQBOACSRv8BDPsNQC6sThqFqzgt_Ly2T8Kq3z8FA4zJyT0Mi9Y3YxR47lzMilYqPU2muJMu9CYoA\u0026h=z64gQsc7KzLHrGO6Wk7cV4f8HfqCKrblSXJ-O1gWr0g+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZX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BgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=mRFQoNzagtzcfZ606KNPdhC96VbkAOcac_XITR0P5rEHK2EvvlQVE2QvbnllEIbECRq0uErhWOc5nr_STTg52oLbkB6wR6aDt0GsE5Zz9etiFZh4oy2QwF4d_T2Hw9M2L8WyYG5M6MY5imj3UMG81RGqCcA9TkX-o-s739uDHGW9sKAroDXgShNygF_M3wbafJF-rZGyPqIZP2ix-p-eN04Q1xVz_cv8O5cL3uwarAXGTJsU0ZEwmKdz2_1JwpuEENbJnX5voPfQBOACSRv8BDPsNQC6sThqFqzgt_Ly2T8Kq3z8FA4zJyT0Mi9Y3YxR47lzMilYqPU2muJMu9CYoA\u0026h=z64gQsc7KzLHrGO6Wk7cV4f8HfqCKrblSXJ-O1gWr0g", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "3dc14df4-6f92-4b46-97fb-e7cb64ca1b73" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e1f54361-172b-440e-96f4-2cbe2b010af8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e1f54361-172b-440e-96f4-2cbe2b010af8" ], + "x-ms-correlation-request-id": [ "e1f54361-172b-440e-96f4-2cbe2b010af8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042703Z:e1f54361-172b-440e-96f4-2cbe2b010af8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 14608C71E296497281BEF9219AFC8A58 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:27:03Z" ], + "Date": [ "Mon, 21 Oct 2024 04:27:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9\",\"startTime\":\"2024-10-21T04:26:27.0000000Z\",\"endTime\":\"2024-10-21T04:26:34.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879242747\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2M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ox17bt8YVah4v9JJzn6-SDQ2VZyCjr2aMRn7SxcBjFKs9nX4FAmJB3XdkxqBPBd_IGyg1aDVQZAw2OjDhUTfp4acIaxrhlDHr2JxA3E07bXNytP0GmamisWngV-2LLcMB70eGhArTmoqe2UG74TKnYSiKPW3J8JUIC608I6qIX-p_V6Cp_v1-kvefbQ3PErcgLg9LWYqg1OHiVYI81-iVbK_UKerRPW0mH3y94_F5AjPupfA4pMu-2aJJYKWSt54iOwb-l4yVDeQAOPjqcoRYB8YOoKT-6-plcn4HJV5zDfdPFXeXQApWMY7Md_D8Z_O8PUbPRgg\u0026h=BhAQl-2zX6zWDVQ9a_uR9MEM5GqA83jR5P6pfuTJgNI+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879242747\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcL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ByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=drke4_yaenWDD0Ox17bt8YVah4v9JJzn6-SDQ2VZyCjr2aMRn7SxcBjFKs9nX4FAmJB3XdkxqBPBd_IGyg1aDVQZAw2OjDhUTfp4acIaxrhlDHr2JxA3E07bXNytP0GmamisWngV-2LLcMB70eGhArTmoqe2UG74TKnYSiKPW3J8JUIC608I6qIX-p_V6Cp_v1-kvefbQ3PErcgLg9LWYqg1OHiVYI81-iVbK_UKerRPW0mH3y94_F5AjPupfA4pMu-2aJJYKWSt54iOwb-l4yVDeQAOPjqcoRYB8YOoKT-6-plcn4HJV5zDfdPFXeXQApWMY7Md_D8Z_O8PUbPRgg\u0026h=BhAQl-2zX6zWDVQ9a_uR9MEM5GqA83jR5P6pfuTJgNI", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "3dc14df4-6f92-4b46-97fb-e7cb64ca1b73" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e5b97819-ac6d-4790-816c-d68b25856dfd" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e5b97819-ac6d-4790-816c-d68b25856dfd" ], + "x-ms-correlation-request-id": [ "e5b97819-ac6d-4790-816c-d68b25856dfd" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042704Z:e5b97819-ac6d-4790-816c-d68b25856dfd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 22CA37CB9341485786D09FE33FFB4226 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:27:04Z" ], + "Date": [ "Mon, 21 Oct 2024 04:27:03 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "0cc58510-e9ab-4623-b836-35bdd04a2961" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "4dde3b64-dbed-48e4-bf4e-d331290ad448" ], + "x-ms-correlation-request-id": [ "4dde3b64-dbed-48e4-bf4e-d331290ad448" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042704Z:4dde3b64-dbed-48e4-bf4e-d331290ad448" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0301421617504C7D8F85459FEB2A8D80 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:27:04Z" ], + "Date": [ "Mon, 21 Oct 2024 04:27:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "273" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Tests.ps1 new file mode 100644 index 000000000000..dbc5188844e6 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Tests.ps1 @@ -0,0 +1,47 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzDnsResolverDomainList')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzDnsResolverDomainList.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzDnsResolverDomainList' { + It 'Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname65"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + Remove-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName + + # ASSERT + {Get-AzDnsResolverDomainList -DnsResolverDomainListName $dnsResolverDomainListName -ResourceGroupName $resourceGroupName } | Should -Throw + } + + It 'Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname66"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + Get-AzDnsResolverDomainList -DnsResolverDomainListName $dnsResolverDomainListName -ResourceGroupName $resourceGroupName | Remove-AzDnsResolverDomainList + + # ASSERT + {Get-AzDnsResolverDomainList -DnsResolverDomainListName $dnsResolverDomainListName -ResourceGroupName $resourceGroupName } | Should -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Recording.json new file mode 100644 index 000000000000..c8dbf09718a1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Recording.json @@ -0,0 +1,728 @@ +{ + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=?api-version=2023-07-01-preview\u0026t=638650794461714551\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPg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srVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=M3kXqtR7QpoXqnDAttA8mtxf-vvRAqCdlPfdxIbN-NqdKkA1asBxGqyXzRMFmYFDzWr5LsbfBH1yJthnUmCxqDUTpcr0QVCC-1yJYMyKdi0r0MHaWpmk7FNpFZk4StxNFG_1HjfS5DD3arato9s-nw9jlO9MvSsFME-1iVLTOLIiS-UBRYZo0EWsSdo67lAAUtesG0_qJ_sabNfrE45pIS1MBvhdmFQXVlQ1BEoNo5wNvdoDB6IE5k0Yfn59yOwlK5B86dnGVyJNdZS6sfsx8a5-RLzBBB1OiUNB-tU2XuVcrRcowXoRJdMg4Wl_RhJutdxhTSfod9-d-Xd84W-rmw\u0026h=vE993snojbD82friOZeLd7fqlsSiA_MHhB8R9qqrBKU" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "3e5b0a34-528d-4782-9f6d-983135acd308" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=?api-version=2023-07-01-preview\u0026t=638650794461558390\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZp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n0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=dGum-NfMJ9K-S83VfI7el7y8YvNp1r4cDT68VM--xYDsJ0EcJ5S_5gxO7ZXyLWEx-ESa0EE87dDyzuNGmvhAy32cdm8tlq6SqB9qvpKOhE-KCpVBKJNVsPjPg1XFPgIV85uzINI1qf5oD2fFlM9Q5a0S0DmqDiAQCCOip9AL05VJ1nSFCr6vulJb2w6WC3jwgeB849kKnuWvYJoVTICl9uScT8WXrBukS8QO3eMVYXg_qsBSKmJHsobmMafEBILdZ17n4qfqkZvXwEVaeB8UyJKXVLjo8Wl999tfEbWMqmVRaQpAfTAdjE0qHC4vjJIMdCjaMyrn-itpSyWjP46-Mw\u0026h=7X80hGur_kJfHggNGYHpqcPlpEwFRdEaIdlO-Liq8F8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "3e5b0a34-528d-4782-9f6d-983135acd308" ], + "x-ms-correlation-request-id": [ "3e5b0a34-528d-4782-9f6d-983135acd308" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035046Z:3e5b0a34-528d-4782-9f6d-983135acd308" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 010AFD75F57C4E56B540F26BDA2E1802 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:50:44Z" ], + "Date": [ "Mon, 21 Oct 2024 03:50:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "557" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"6b0191a8-0000-0800-0000-6715cf960000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65\",\"name\":\"psdnsresolverpolicyname65\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T03:50:45.9683307Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T03:50:45.9683307Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=?api-version=2023-07-01-preview\u0026t=638650794461558390\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggE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OMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=dGum-NfMJ9K-S83VfI7el7y8YvNp1r4cDT68VM--xYDsJ0EcJ5S_5gxO7ZXyLWEx-ESa0EE87dDyzuNGmvhAy32cdm8tlq6SqB9qvpKOhE-KCpVBKJNVsPjPg1XFPgIV85uzINI1qf5oD2fFlM9Q5a0S0DmqDiAQCCOip9AL05VJ1nSFCr6vulJb2w6WC3jwgeB849kKnuWvYJoVTICl9uScT8WXrBukS8QO3eMVYXg_qsBSKmJHsobmMafEBILdZ17n4qfqkZvXwEVaeB8UyJKXVLjo8Wl999tfEbWMqmVRaQpAfTAdjE0qHC4vjJIMdCjaMyrn-itpSyWjP46-Mw\u0026h=7X80hGur_kJfHggNGYHpqcPlpEwFRdEaIdlO-Liq8F8+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=?api-version=2023-07-01-preview\u0026t=638650794461558390\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3lu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Y2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=dGum-NfMJ9K-S83VfI7el7y8YvNp1r4cDT68VM--xYDsJ0EcJ5S_5gxO7ZXyLWEx-ESa0EE87dDyzuNGmvhAy32cdm8tlq6SqB9qvpKOhE-KCpVBKJNVsPjPg1XFPgIV85uzINI1qf5oD2fFlM9Q5a0S0DmqDiAQCCOip9AL05VJ1nSFCr6vulJb2w6WC3jwgeB849kKnuWvYJoVTICl9uScT8WXrBukS8QO3eMVYXg_qsBSKmJHsobmMafEBILdZ17n4qfqkZvXwEVaeB8UyJKXVLjo8Wl999tfEbWMqmVRaQpAfTAdjE0qHC4vjJIMdCjaMyrn-itpSyWjP46-Mw\u0026h=7X80hGur_kJfHggNGYHpqcPlpEwFRdEaIdlO-Liq8F8", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "5439227a-c458-47a8-b210-eb95e03126d3" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "4eaae3e9-70cb-49f7-9cdd-009e6ccede0c" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "4eaae3e9-70cb-49f7-9cdd-009e6ccede0c" ], + "x-ms-correlation-request-id": [ "4eaae3e9-70cb-49f7-9cdd-009e6ccede0c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035051Z:4eaae3e9-70cb-49f7-9cdd-009e6ccede0c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5B00CD75AD684D209AAB08B0764DF135 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:50:51Z" ], + "Date": [ "Mon, 21 Oct 2024 03:50:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=\",\"startTime\":\"2024-10-21T03:50:46.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOper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", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=?api-version=2023-07-01-preview\u0026t=638650794461558390\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKw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pAfTAdjE0qHC4vjJIMdCjaMyrn-itpSyWjP46-Mw\u0026h=7X80hGur_kJfHggNGYHpqcPlpEwFRdEaIdlO-Liq8F8", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "5439227a-c458-47a8-b210-eb95e03126d3" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c835b292-3b4f-4618-aa98-50dfb8515c75" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c835b292-3b4f-4618-aa98-50dfb8515c75" ], + "x-ms-correlation-request-id": [ "c835b292-3b4f-4618-aa98-50dfb8515c75" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035121Z:c835b292-3b4f-4618-aa98-50dfb8515c75" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 539135CE6810431A8885B8BFF0DF84FB Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:21Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=\",\"startTime\":\"2024-10-21T03:50:46.0000000Z\",\"endTime\":\"2024-10-21T03:50:52.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "5439227a-c458-47a8-b210-eb95e03126d3" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "36d606c3-abb2-467e-9ab8-1d962387fad6" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "36d606c3-abb2-467e-9ab8-1d962387fad6" ], + "x-ms-correlation-request-id": [ "36d606c3-abb2-467e-9ab8-1d962387fad6" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035122Z:36d606c3-abb2-467e-9ab8-1d962387fad6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 402A57C147534751BD199BC12A64798B Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:21Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "592" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"299f7268-bd98-4521-93b9-e337e682c1ab\"},\"etag\":\"\\\"28000134-0000-0800-0000-6715cf9c0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65\",\"name\":\"psdnsresolverpolicyname65\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T03:50:45.9683307Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T03:50:45.9683307Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "845dfcc3-8d99-4d84-a77a-f08c1c3be73c" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828705526\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6d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Ty_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=lrM5rENaJYV5cMUTHF6DrjR7JOkn1aYYTGrsMz3dSPMCeMYSSgGHiwzJUTT1PCmkOJnPpf1lW3GnnXmUb4EVXWhFTqMbAnS3PzGwPBKrJ6ROIj0vHJf8PoGOj45bpHrkM9AFnLuumx6DRnos5rGx75Fl6tTzA5foqGZZCFSsSK0ZUXibg0yp0pxJ2pqQJjWmrlwPwhnjRf55Dk64Vx4WRla0zCUvxM1A--ypBDqu9d1hDHomXY4voz9WQ4zDgrZSLeyRkE-q0EIWk_7-ZWut-ZBkYRFYrm-NSRBQrvHnvOeLbihARDyY3t_jP8v42_yqii8WPjw0LKrAGqDRnJSVkA\u0026h=bOIwND--gGguveyQDuqgWeLlhCjFjs7K5LF7zO6DFww" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "df737f51-4a94-414a-9994-c263d5572994" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828549190\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgY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cNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=kOdDQ-VSAh7W8lrSrgi_HAE6vXBY5K4Vm-GqXSNVTwKSBAJhR3XVehOAFrNurtzbmJ8VXeBOT-3_YfFYlfYyKt0pBcKbJ0cc1UVbk87fLpLmQiaumCdQu_eeo-i0OTzofjIJAnG518-HhiwM4yCUI0g2IKfL6ALrYdPd0mToavt15peRGW29bxGATICgHkPIeJivcLVXOV4H5_jaS9jcA_YGx3PnhdPCZJ54ih94d_tMw9BlyRmcutas-aWEkQmYn88iMe4nN8i33sjdwFkiHL02adMh5gIsPyqTYbTbDk7bufRFaqX9WNCAhA6ALYuPtEWUtGku8oxV8G2D42J0EQ\u0026h=dE6D1xWSWC75rpnp_5ZiaUE0eHHevCoWmuBLxfs3QHE" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "df737f51-4a94-414a-9994-c263d5572994" ], + "x-ms-correlation-request-id": [ "df737f51-4a94-414a-9994-c263d5572994" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035122Z:df737f51-4a94-414a-9994-c263d5572994" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CC5E6DDA7E7D478786E10345D29C727D Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:22Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:22 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828549190\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mn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dQu_eeo-i0OTzofjIJAnG518-HhiwM4yCUI0g2IKfL6ALrYdPd0mToavt15peRGW29bxGATICgHkPIeJivcLVXOV4H5_jaS9jcA_YGx3PnhdPCZJ54ih94d_tMw9BlyRmcutas-aWEkQmYn88iMe4nN8i33sjdwFkiHL02adMh5gIsPyqTYbTbDk7bufRFaqX9WNCAhA6ALYuPtEWUtGku8oxV8G2D42J0EQ\u0026h=dE6D1xWSWC75rpnp_5ZiaUE0eHHevCoWmuBLxfs3QHE+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828549190\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzEL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Srgi_HAE6vXBY5K4Vm-GqXSNVTwKSBAJhR3XVehOAFrNurtzbmJ8VXeBOT-3_YfFYlfYyKt0pBcKbJ0cc1UVbk87fLpLmQiaumCdQu_eeo-i0OTzofjIJAnG518-HhiwM4yCUI0g2IKfL6ALrYdPd0mToavt15peRGW29bxGATICgHkPIeJivcLVXOV4H5_jaS9jcA_YGx3PnhdPCZJ54ih94d_tMw9BlyRmcutas-aWEkQmYn88iMe4nN8i33sjdwFkiHL02adMh5gIsPyqTYbTbDk7bufRFaqX9WNCAhA6ALYuPtEWUtGku8oxV8G2D42J0EQ\u0026h=dE6D1xWSWC75rpnp_5ZiaUE0eHHevCoWmuBLxfs3QHE", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "845dfcc3-8d99-4d84-a77a-f08c1c3be73c" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "9b525037-66e0-48ca-b9d1-2c0acac6bb3d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "9b525037-66e0-48ca-b9d1-2c0acac6bb3d" ], + "x-ms-correlation-request-id": [ "9b525037-66e0-48ca-b9d1-2c0acac6bb3d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035128Z:9b525037-66e0-48ca-b9d1-2c0acac6bb3d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 12786F71344E443F9F49150B61F3CF2B Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:27Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=\",\"startTime\":\"2024-10-21T03:51:22.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828549190\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZ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wYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=kOdDQ-VSAh7W8lrSrgi_HAE6vXBY5K4Vm-GqXSNVTwKSBAJhR3XVehOAFrNurtzbmJ8VXeBOT-3_YfFYlfYyKt0pBcKbJ0cc1UVbk87fLpLmQiaumCdQu_eeo-i0OTzofjIJAnG518-HhiwM4yCUI0g2IKfL6ALrYdPd0mToavt15peRGW29bxGATICgHkPIeJivcLVXOV4H5_jaS9jcA_YGx3PnhdPCZJ54ih94d_tMw9BlyRmcutas-aWEkQmYn88iMe4nN8i33sjdwFkiHL02adMh5gIsPyqTYbTbDk7bufRFaqX9WNCAhA6ALYuPtEWUtGku8oxV8G2D42J0EQ\u0026h=dE6D1xWSWC75rpnp_5ZiaUE0eHHevCoWmuBLxfs3QHE+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828549190\u0026c=MIIHpTC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QQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=kOdDQ-VSAh7W8lrSrgi_HAE6vXBY5K4Vm-GqXSNVTwKSBAJhR3XVehOAFrNurtzbmJ8VXeBOT-3_YfFYlfYyKt0pBcKbJ0cc1UVbk87fLpLmQiaumCdQu_eeo-i0OTzofjIJAnG518-HhiwM4yCUI0g2IKfL6ALrYdPd0mToavt15peRGW29bxGATICgHkPIeJivcLVXOV4H5_jaS9jcA_YGx3PnhdPCZJ54ih94d_tMw9BlyRmcutas-aWEkQmYn88iMe4nN8i33sjdwFkiHL02adMh5gIsPyqTYbTbDk7bufRFaqX9WNCAhA6ALYuPtEWUtGku8oxV8G2D42J0EQ\u0026h=dE6D1xWSWC75rpnp_5ZiaUE0eHHevCoWmuBLxfs3QHE", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "845dfcc3-8d99-4d84-a77a-f08c1c3be73c" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "b54f97bd-001a-4649-bedd-0928edaf22ed" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "b54f97bd-001a-4649-bedd-0928edaf22ed" ], + "x-ms-correlation-request-id": [ "b54f97bd-001a-4649-bedd-0928edaf22ed" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035158Z:b54f97bd-001a-4649-bedd-0928edaf22ed" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3DF5D327876D44F99B11CDA3D91F9D8F Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:58Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=\",\"startTime\":\"2024-10-21T03:51:22.0000000Z\",\"endTime\":\"2024-10-21T03:51:32.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828705526\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaar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Xibg0yp0pxJ2pqQJjWmrlwPwhnjRf55Dk64Vx4WRla0zCUvxM1A--ypBDqu9d1hDHomXY4voz9WQ4zDgrZSLeyRkE-q0EIWk_7-ZWut-ZBkYRFYrm-NSRBQrvHnvOeLbihARDyY3t_jP8v42_yqii8WPjw0LKrAGqDRnJSVkA\u0026h=bOIwND--gGguveyQDuqgWeLlhCjFjs7K5LF7zO6DFww+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828705526\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS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pf1lW3GnnXmUb4EVXWhFTqMbAnS3PzGwPBKrJ6ROIj0vHJf8PoGOj45bpHrkM9AFnLuumx6DRnos5rGx75Fl6tTzA5foqGZZCFSsSK0ZUXibg0yp0pxJ2pqQJjWmrlwPwhnjRf55Dk64Vx4WRla0zCUvxM1A--ypBDqu9d1hDHomXY4voz9WQ4zDgrZSLeyRkE-q0EIWk_7-ZWut-ZBkYRFYrm-NSRBQrvHnvOeLbihARDyY3t_jP8v42_yqii8WPjw0LKrAGqDRnJSVkA\u0026h=bOIwND--gGguveyQDuqgWeLlhCjFjs7K5LF7zO6DFww", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "845dfcc3-8d99-4d84-a77a-f08c1c3be73c" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "258b7965-fdd1-4dc0-aa23-0b52ac8f56fc" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "258b7965-fdd1-4dc0-aa23-0b52ac8f56fc" ], + "x-ms-correlation-request-id": [ "258b7965-fdd1-4dc0-aa23-0b52ac8f56fc" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035158Z:258b7965-fdd1-4dc0-aa23-0b52ac8f56fc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 560B56AC9CBF4657957FF4F9AF3D349B Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:58Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:58 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "bfe8fe20-1c98-4f80-b07d-44c3d502fdf4" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "3cfe056a-8f1d-4380-8a10-c80d8c0455a0" ], + "x-ms-correlation-request-id": [ "3cfe056a-8f1d-4380-8a10-c80d8c0455a0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035159Z:3cfe056a-8f1d-4380-8a10-c80d8c0455a0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7E7EDE7BE77C4F5A84978424D7959E98 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:58Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "266" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "6f776c8c-9ad5-4ad1-b61e-de49438440e5" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjJiZmZhOTItOGVjMC00ZGUwLTk5NjEtNjgwMGEwYzM1OTAzIn0=?api-version=2023-07-01-preview\u0026t=638650795201928611\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUI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TdBoqRJVgESBV2OiiZWXQ\u0026h=gXODItvGYXnLtHH1CymuOxpjPxUDnrk35QTNrMnYmxI" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "6f776c8c-9ad5-4ad1-b61e-de49438440e5" ], + "x-ms-correlation-request-id": [ "6f776c8c-9ad5-4ad1-b61e-de49438440e5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035200Z:6f776c8c-9ad5-4ad1-b61e-de49438440e5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A2F5B9596EAA4325B97FE840B17E496D Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:59Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "557" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"6b01e6ba-0000-0800-0000-6715cfe00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66\",\"name\":\"psdnsresolverpolicyname66\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T03:52:00.0053598Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T03:52:00.0053598Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft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": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjJiZmZhOTItOGVjMC00ZGUwLTk5NjEtNjgwMGEwYzM1OTAzIn0=?api-version=2023-07-01-preview\u0026t=638650795201928611\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAw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q5TeeZ0J3bfcfNZTdBoqRJVgESBV2OiiZWXQ\u0026h=gXODItvGYXnLtHH1CymuOxpjPxUDnrk35QTNrMnYmxI", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "53dc2a88-2276-4059-acc2-69da448d4fa1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "17874778-8bbe-4fb0-b2f8-93e1e207cb15" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "17874778-8bbe-4fb0-b2f8-93e1e207cb15" ], + "x-ms-correlation-request-id": [ "17874778-8bbe-4fb0-b2f8-93e1e207cb15" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035205Z:17874778-8bbe-4fb0-b2f8-93e1e207cb15" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9CD225B10E264016817101602AFA087F Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:05Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjJiZmZhOTItOGVjMC00ZGUwLTk5NjEtNjgwMGEwYzM1OTAzIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjJiZmZhOTItOGVjMC00ZGUwLTk5NjEtNjgwMGEwYzM1OTAzIn0=\",\"startTime\":\"2024-10-21T03:52:00.0000000Z\",\"endTime\":\"2024-10-21T03:52:02.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "53dc2a88-2276-4059-acc2-69da448d4fa1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "d6fb0577-2c4f-4aad-958d-609c41e4b68c" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "498" ], + "x-ms-request-id": [ "d6fb0577-2c4f-4aad-958d-609c41e4b68c" ], + "x-ms-correlation-request-id": [ "d6fb0577-2c4f-4aad-958d-609c41e4b68c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035205Z:d6fb0577-2c4f-4aad-958d-609c41e4b68c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A8338336606646058636AE6389E9C196 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:05Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "592" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"abdcdc8b-9b2d-4909-9e2e-34cf469e17c0\"},\"etag\":\"\\\"2800ce3d-0000-0800-0000-6715cfe20000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66\",\"name\":\"psdnsresolverpolicyname66\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T03:52:00.0053598Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T03:52:00.0053598Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "e1e0178e-5f01-4843-b20c-08dea2a0bf71" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "73ef8f43-a76c-4713-9972-522ceeb6e4d9" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "73ef8f43-a76c-4713-9972-522ceeb6e4d9" ], + "x-ms-correlation-request-id": [ "73ef8f43-a76c-4713-9972-522ceeb6e4d9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035205Z:73ef8f43-a76c-4713-9972-522ceeb6e4d9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 98C40D81419B4F3E9D5E6A2B75D37899 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:05Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "592" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"abdcdc8b-9b2d-4909-9e2e-34cf469e17c0\"},\"etag\":\"\\\"2800ce3d-0000-0800-0000-6715cfe20000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66\",\"name\":\"psdnsresolverpolicyname66\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T03:52:00.0053598Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T03:52:00.0053598Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "445d26bd-24df-4e51-9d42-b35d141d4be2" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273791629\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYT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=dpf4tHZ85516cH1V7n5O8z6riZPp1fvitBo4a6tyT5w" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "e1334737-c96d-4a4a-9a00-4975220fdb7b" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273635339\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAw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olc6p4UtkmE9MNp_lWHnJh_PyllMuH38oxZV68Mn7h_DdbQPTUAPVpjyPo5Dli6dgwJmS4_ZRM-hFLG2tWw16nJVlwhdWSBzD9NC0fIxcyTw\u0026h=IY0RxxOK-DhUlzfSlhN9Pt0AtsKT49HVE1d7VlEbkB0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "e1334737-c96d-4a4a-9a00-4975220fdb7b" ], + "x-ms-correlation-request-id": [ "e1334737-c96d-4a4a-9a00-4975220fdb7b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035207Z:e1334737-c96d-4a4a-9a00-4975220fdb7b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D8E4F245B4C5421FBDB151EA2D4D1DB0 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:06Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:06 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273635339\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMM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EBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=KVbEh1m3uJYZUgMRP3fKo05GsjTLtxwi-_AoF9K2W6aNDbRFVPVGsy8wdfP0e9Xztl9wKF3fmQXlfHYF7iJ9tum8gFrLccSUZwW3HS_NehQW2-NqOIpmcPU7aYj4DHKISYtail29at_1O_QAVbgYKqW_ITlbV7-ev0dBOs72S_8e-Utkq7Pw3WVdPGfY7rJXCa4eXsb5Bm4PUHsX7wjCPdIW5b8oonvX4AOeUEg269olc6p4UtkmE9MNp_lWHnJh_PyllMuH38oxZV68Mn7h_DdbQPTUAPVpjyPo5Dli6dgwJmS4_ZRM-hFLG2tWw16nJVlwhdWSBzD9NC0fIxcyTw\u0026h=IY0RxxOK-DhUlzfSlhN9Pt0AtsKT49HVE1d7VlEbkB0+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273635339\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_B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RQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=KVbEh1m3uJYZUgMRP3fKo05GsjTLtxwi-_AoF9K2W6aNDbRFVPVGsy8wdfP0e9Xztl9wKF3fmQXlfHYF7iJ9tum8gFrLccSUZwW3HS_NehQW2-NqOIpmcPU7aYj4DHKISYtail29at_1O_QAVbgYKqW_ITlbV7-ev0dBOs72S_8e-Utkq7Pw3WVdPGfY7rJXCa4eXsb5Bm4PUHsX7wjCPdIW5b8oonvX4AOeUEg269olc6p4UtkmE9MNp_lWHnJh_PyllMuH38oxZV68Mn7h_DdbQPTUAPVpjyPo5Dli6dgwJmS4_ZRM-hFLG2tWw16nJVlwhdWSBzD9NC0fIxcyTw\u0026h=IY0RxxOK-DhUlzfSlhN9Pt0AtsKT49HVE1d7VlEbkB0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "445d26bd-24df-4e51-9d42-b35d141d4be2" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "1e9cc2b0-3581-4f30-bb16-672024ae4359" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "1e9cc2b0-3581-4f30-bb16-672024ae4359" ], + "x-ms-correlation-request-id": [ "1e9cc2b0-3581-4f30-bb16-672024ae4359" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035212Z:1e9cc2b0-3581-4f30-bb16-672024ae4359" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FE46BAB154034749981C58B3CC4FE9DF Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:12Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=\",\"startTime\":\"2024-10-21T03:52:07.0000000Z\",\"endTime\":\"2024-10-21T03:52:12.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273791629\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYI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yFxmo0O7L8Ddr-xNKoTEJZnblmEhP-tvVkRx5uDiJ0lVhhI9cPOnFvi9yz09vjB55-A\u0026h=dpf4tHZ85516cH1V7n5O8z6riZPp1fvitBo4a6tyT5w+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273791629\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5US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r3Z50hq62CzbYIcg8NfmtsuoPbWUYm0hAwhJucyvy8ie0ZAtzLuKVgAhzVewKyFxmo0O7L8Ddr-xNKoTEJZnblmEhP-tvVkRx5uDiJ0lVhhI9cPOnFvi9yz09vjB55-A\u0026h=dpf4tHZ85516cH1V7n5O8z6riZPp1fvitBo4a6tyT5w", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "445d26bd-24df-4e51-9d42-b35d141d4be2" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f33ec3e7-f24e-4c4a-b93d-da3753ed313a" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f33ec3e7-f24e-4c4a-b93d-da3753ed313a" ], + "x-ms-correlation-request-id": [ "f33ec3e7-f24e-4c4a-b93d-da3753ed313a" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035212Z:f33ec3e7-f24e-4c4a-b93d-da3753ed313a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 14574FAC3F864AAABAE2EE60ECDC23A1 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:12Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:12 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "264b2f50-6dc1-49ff-90a0-73bb496812cf" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "16540580-6c06-4e60-ac5d-70f1a0418d23" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "16540580-6c06-4e60-ac5d-70f1a0418d23" ], + "x-ms-correlation-request-id": [ "16540580-6c06-4e60-ac5d-70f1a0418d23" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035213Z:16540580-6c06-4e60-ac5d-70f1a0418d23" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B67EB771437241ABB42151779E98C5EF Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:12Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "286" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"details\":null,\"code\":\"NotFound\",\"message\":\"DNS resolver policy not found in database. dnsResolverPolicyResourceId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/dnsResolverPolicies/psdnsresolverpolicyname66\",\"target\":null}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Tests.ps1 new file mode 100644 index 000000000000..39c1dad11884 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Tests.ps1 @@ -0,0 +1,47 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzDnsResolverPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzDnsResolverPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzDnsResolverPolicy' { + It 'Delete a DNS resolver policy by name, expected DNS resolver policy deleted' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname65"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + Remove-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + {Get-AzDnsResolverPolicy -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName } | Should -Throw + } + + It 'Delete a DNS resolver policy via identity, expected DNS resolver policy deleted' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname66"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + Get-AzDnsResolverPolicy -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName | Remove-AzDnsResolverPolicy + + # ASSERT + {Get-AzDnsResolverPolicy -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName } | Should -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Recording.json new file mode 100644 index 000000000000..43d4e4b48fc7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Recording.json @@ -0,0 +1,1278 @@ +{ + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-v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EQS5CkJxorpRZuo4TMedIwZ9gaz0zOqDKhC2PedbgJqMYDNZ9k4WoTDU62gdK0irbt4f7IfqJ6I8dMTRfBXmztll_my7lsW6dWFvpx_SrgL4NwW8EktlQEq_yg\u0026h=L21gihfBvJgVoDKjSxcbTa3p0deDQN3OMs9pNMgtGgY" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "0d2bc47d-bc72-4e0e-bb11-4ef42803f65e" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8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8BMTyhmCiuXF6__0KXLqz-pxWkKqeR42uijsfoTfvXj17TtTswEMrrz4xM_kngP14f0y6IQZroJXdKHemYI554LpxQ1iFBKvfy1cW8yRYnpx5f4MAtCWeDpZg4Y_TzDZdwXoDPHxIzVgAWc4zN_V4sAh70bQU5rUAyaewif_1VlZKKyU8X38i5e3f00dcv5nvabf8Uo90EmGX2WJ7dgMM8afK9AkslyJ8vICHKHgMJO9m9vA\u0026h=yT5CTQzZtKvrpOddqbea2HmysqlJ-X0BhhykrcUTUlY" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "0d2bc47d-bc72-4e0e-bb11-4ef42803f65e" ], + "x-ms-correlation-request-id": [ "0d2bc47d-bc72-4e0e-bb11-4ef42803f65e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053159Z:0d2bc47d-bc72-4e0e-bb11-4ef42803f65e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4059B255411B453CB1085F964FA9EA7E Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:31:58Z" ], + "Date": [ "Mon, 21 Oct 2024 05:31:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "580" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"72013c44-0000-0800-0000-6715e74f0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg\",\"name\":\"psdnsresolverpolicyforrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:23:05.3870984Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:31:59.670728Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqla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y1cW8yRYnpx5f4MAtCWeDpZg4Y_TzDZdwXoDPHxIzVgAWc4zN_V4sAh70bQU5rUAyaewif_1VlZKKyU8X38i5e3f00dcv5nvabf8Uo90EmGX2WJ7dgMM8afK9AkslyJ8vICHKHgMJO9m9vA\u0026h=yT5CTQzZtKvrpOddqbea2HmysqlJ-X0BhhykrcUTUlY+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ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foTfvXj17TtTswEMrrz4xM_kngP14f0y6IQZroJXdKHemYI554LpxQ1iFBKvfy1cW8yRYnpx5f4MAtCWeDpZg4Y_TzDZdwXoDPHxIzVgAWc4zN_V4sAh70bQU5rUAyaewif_1VlZKKyU8X38i5e3f00dcv5nvabf8Uo90EmGX2WJ7dgMM8afK9AkslyJ8vICHKHgMJO9m9vA\u0026h=yT5CTQzZtKvrpOddqbea2HmysqlJ-X0BhhykrcUTUlY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "fef9902b-4e19-4341-b9bb-934113789fdf" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c1a19ba8-0655-4bd5-b79b-1622fda155b9" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c1a19ba8-0655-4bd5-b79b-1622fda155b9" ], + "x-ms-correlation-request-id": [ "c1a19ba8-0655-4bd5-b79b-1622fda155b9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053205Z:c1a19ba8-0655-4bd5-b79b-1622fda155b9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A1FF4E9E1D5D4032A932C535D39E74D8 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:04Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=\",\"startTime\":\"2024-10-21T05:31:59.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGl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_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=BnC-iF4lV0Hx-eDmLLGt9WLDg3aCb5L8-Lez3Zc7XWHgBLMZ4WtnXs3oVmyiEzQJtErWKz7EnG2lT8qc-UPp512LypibZsxg-yrmof8BMTyhmCiuXF6__0KXLqz-pxWkKqeR42uijsfoTfvXj17TtTswEMrrz4xM_kngP14f0y6IQZroJXdKHemYI554LpxQ1iFBKvfy1cW8yRYnpx5f4MAtCWeDpZg4Y_TzDZdwXoDPHxIzVgAWc4zN_V4sAh70bQU5rUAyaewif_1VlZKKyU8X38i5e3f00dcv5nvabf8Uo90EmGX2WJ7dgMM8afK9AkslyJ8vICHKHgMJO9m9vA\u0026h=yT5CTQzZtKvrpOddqbea2HmysqlJ-X0BhhykrcUTUlY+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA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KrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=BnC-iF4lV0Hx-eDmLLGt9WLDg3aCb5L8-Lez3Zc7XWHgBLMZ4WtnXs3oVmyiEzQJtErWKz7EnG2lT8qc-UPp512LypibZsxg-yrmof8BMTyhmCiuXF6__0KXLqz-pxWkKqeR42uijsfoTfvXj17TtTswEMrrz4xM_kngP14f0y6IQZroJXdKHemYI554LpxQ1iFBKvfy1cW8yRYnpx5f4MAtCWeDpZg4Y_TzDZdwXoDPHxIzVgAWc4zN_V4sAh70bQU5rUAyaewif_1VlZKKyU8X38i5e3f00dcv5nvabf8Uo90EmGX2WJ7dgMM8afK9AkslyJ8vICHKHgMJO9m9vA\u0026h=yT5CTQzZtKvrpOddqbea2HmysqlJ-X0BhhykrcUTUlY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "fef9902b-4e19-4341-b9bb-934113789fdf" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "76e5f910-f786-4006-81ff-01d11182ca5c" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "76e5f910-f786-4006-81ff-01d11182ca5c" ], + "x-ms-correlation-request-id": [ "76e5f910-f786-4006-81ff-01d11182ca5c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053235Z:76e5f910-f786-4006-81ff-01d11182ca5c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A6E4D8377E554FDD87D69F9F1FFFA367 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:35Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=\",\"startTime\":\"2024-10-21T05:31:59.0000000Z\",\"endTime\":\"2024-10-21T05:32:07.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "fef9902b-4e19-4341-b9bb-934113789fdf" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "b1487352-415e-4fdd-be51-579b15bf8542" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "b1487352-415e-4fdd-be51-579b15bf8542" ], + "x-ms-correlation-request-id": [ "b1487352-415e-4fdd-be51-579b15bf8542" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053235Z:b1487352-415e-4fdd-be51-579b15bf8542" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3A28D2CE38604FDBA284157AF4C6958B Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:35Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "615" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e4554340-f899-4623-ac1c-739e2a9a0327\"},\"etag\":\"\\\"2b003e46-0000-0800-0000-6715e7570000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg\",\"name\":\"psdnsresolverpolicyforrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:23:05.3870984Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:31:59.670728Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations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Ga7eZz4xATUtnWk" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "ab5cabf7-48bc-4bfe-984c-b4bd03067007" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM1M2Q1M2Y5LTIyNmUtNDdkZi1hMTg2LWU0YzEwY2RjYTE1YSJ9?api-version=2023-07-01-preview\u0026t=638650855563899620\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOC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BiAuwgJF3ebtOwp8FCcAI8BLwd04ZvwyqM5qi8MQhIUMXXQE3jNezNdJgbHXm6bXBd67p_QDm2Ef6yl7W0UIKWOZg_vwlogRnKlYZXLDHFfEMLOCckthEJA_o39WLphhBQ\u0026h=LEAD4OCq37hgs3kAM9uBhofFL3WLoEDL10YOE2YIz00" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "ab5cabf7-48bc-4bfe-984c-b4bd03067007" ], + "x-ms-correlation-request-id": [ "ab5cabf7-48bc-4bfe-984c-b4bd03067007" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053236Z:ab5cabf7-48bc-4bfe-984c-b4bd03067007" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E549CD3967AA47C18362C59F5B4425F0 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:35Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "637" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7201554f-0000-0800-0000-6715e7740000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg\",\"name\":\"psdnsresolverdomainlistforrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:23:12.5940483Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:32:36.2337125Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM1M2Q1M2Y5LTIyNmUtNDdkZi1hMTg2LWU0YzEwY2RjYTE1YSJ9?api-version=2023-07-01-preview\u0026t=638650855563899620\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGC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Owp8FCcAI8BLwd04ZvwyqM5qi8MQhIUMXXQE3jNezNdJgbHXm6bXBd67p_QDm2Ef6yl7W0UIKWOZg_vwlogRnKlYZXLDHFfEMLOCckthEJA_o39WLphhBQ\u0026h=LEAD4OCq37hgs3kAM9uBhofFL3WLoEDL10YOE2YIz00+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM1M2Q1M2Y5LTIyNmUtNDdkZi1hMTg2LWU0YzEwY2RjYTE1YSJ9?api-version=2023-07-01-preview\u0026t=638650855563899620\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmK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YKSdrB8RW-U6W0s27GHiQg8JwDpwPaosthXQMOPxjnquZi3iBGTFXm5vvw3G--Uax81OMfP4r-1iYHsWIU1ZSZm8eXjZcPqF4BiAuwgJF3ebtOwp8FCcAI8BLwd04ZvwyqM5qi8MQhIUMXXQE3jNezNdJgbHXm6bXBd67p_QDm2Ef6yl7W0UIKWOZg_vwlogRnKlYZXLDHFfEMLOCckthEJA_o39WLphhBQ\u0026h=LEAD4OCq37hgs3kAM9uBhofFL3WLoEDL10YOE2YIz00", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "0c046603-ce05-4e23-acf6-9c5c39732cf4" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "ef17aa29-7011-4aca-bed5-96015b8a3318" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "ef17aa29-7011-4aca-bed5-96015b8a3318" ], + "x-ms-correlation-request-id": [ "ef17aa29-7011-4aca-bed5-96015b8a3318" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053241Z:ef17aa29-7011-4aca-bed5-96015b8a3318" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8CB7597170DF4668B0EF28F9F5C8F2B4 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:41Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM1M2Q1M2Y5LTIyNmUtNDdkZi1hMTg2LWU0YzEwY2RjYTE1YSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM1M2Q1M2Y5LTIyNmUtNDdkZi1hMTg2LWU0YzEwY2RjYTE1YSJ9\",\"startTime\":\"2024-10-21T05:32:36.0000000Z\",\"endTime\":\"2024-10-21T05:32:37.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "0c046603-ce05-4e23-acf6-9c5c39732cf4" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3a01c32b-f056-4176-892c-ab27f8d50fc3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3a01c32b-f056-4176-892c-ab27f8d50fc3" ], + "x-ms-correlation-request-id": [ "3a01c32b-f056-4176-892c-ab27f8d50fc3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053241Z:3a01c32b-f056-4176-892c-ab27f8d50fc3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2CA3DFE305704391824F92B5011EE685 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:41Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "672" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"07f265d3-7ad6-46a0-9af0-30e6a4b84c09\"},\"etag\":\"\\\"3e00821e-0000-0800-0000-6715e7750000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg\",\"name\":\"psdnsresolverdomainlistforrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:23:12.5940483Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:32:36.2337125Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "477" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolver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+ "x-ms-activity-id": [ "a369aa31-5432-4753-a5f7-aab0e476704a" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImM4NDRhNWQxLTdlYWItNDMxMC1iMDBhLWEzYmQ4MmE1NzI2OSJ9?api-version=2023-07-01-preview\u0026t=638650855633519020\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHA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lpi1EdNls9GPIxcp9DXc1JtrHXfzQ6YdmwD0cIOTGCWsYC4E0ncdYd2worwvo4nlCAmPXU7bctoLpRX7WYg\u0026h=96k7N-iz6qtmmIZl1ozaVLhhucRwwJL2YKQOXTru5c4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "a369aa31-5432-4753-a5f7-aab0e476704a" ], + "x-ms-correlation-request-id": [ "a369aa31-5432-4753-a5f7-aab0e476704a" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053243Z:a369aa31-5432-4753-a5f7-aab0e476704a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D725B699B3764E53A331CAA359973C2A Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:42Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "990" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2b005e4a-0000-0800-0000-6715e77b0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg\",\"name\":\"psdnssecurityrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:32:43.1644017Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:32:43.1644017Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImM4NDRhNWQxLTdlYWItNDMxMC1iMDBhLWEzYmQ4MmE1NzI2OSJ9?api-version=2023-07-01-preview\u0026t=638650855633519020\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbj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n2Rlh-FXpN95pKdlAGajYVPo3PXkdgaonPnNy-W8XAdufYnvFKqfueK51NQEVURggtFTrQSaKHMKZ3_QuYM31e70p9Irg6ozhfq0NfZh8WFIV6-SI06oAjuZVYPp6HD6P_HDQDPo27lI5G7qKinYGKT2BdQAYtJzRbDUtgoc3NW2TjBS4d75owqL00hN8GfvEa9jXPBlpi1EdNls9GPIxcp9DXc1JtrHXfzQ6YdmwD0cIOTGCWsYC4E0ncdYd2worwvo4nlCAmPXU7bctoLpRX7WYg\u0026h=96k7N-iz6qtmmIZl1ozaVLhhucRwwJL2YKQOXTru5c4+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImM4NDRhNWQxLTdlYWItNDMxMC1iMDBhLWEzYmQ4MmE1NzI2OSJ9?api-version=2023-07-01-preview\u0026t=638650855633519020\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0N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vOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=QO-E3-D1nZ9HBJFLcJPxYX_NILLj-63qaHKAmYxWYVbTKb_wQHGhyejosFjcn2Rlh-FXpN95pKdlAGajYVPo3PXkdgaonPnNy-W8XAdufYnvFKqfueK51NQEVURggtFTrQSaKHMKZ3_QuYM31e70p9Irg6ozhfq0NfZh8WFIV6-SI06oAjuZVYPp6HD6P_HDQDPo27lI5G7qKinYGKT2BdQAYtJzRbDUtgoc3NW2TjBS4d75owqL00hN8GfvEa9jXPBlpi1EdNls9GPIxcp9DXc1JtrHXfzQ6YdmwD0cIOTGCWsYC4E0ncdYd2worwvo4nlCAmPXU7bctoLpRX7WYg\u0026h=96k7N-iz6qtmmIZl1ozaVLhhucRwwJL2YKQOXTru5c4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "1f709f16-e33c-45bb-8c4c-496fd75ebdd6" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "46f96c96-7222-4a12-9e1f-e500669da4aa" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "46f96c96-7222-4a12-9e1f-e500669da4aa" ], + "x-ms-correlation-request-id": [ "46f96c96-7222-4a12-9e1f-e500669da4aa" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053248Z:46f96c96-7222-4a12-9e1f-e500669da4aa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 354A2B691C8640259A8442F53AAA6104 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:48Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImM4NDRhNWQxLTdlYWItNDMxMC1iMDBhLWEzYmQ4MmE1NzI2OSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImM4NDRhNWQxLTdlYWItNDMxMC1iMDBhLWEzYmQ4MmE1NzI2OSJ9\",\"startTime\":\"2024-10-21T05:32:43.0000000Z\",\"endTime\":\"2024-10-21T05:32:47.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "1f709f16-e33c-45bb-8c4c-496fd75ebdd6" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "1b31570d-c4f6-4c55-bf87-ca6db5570d40" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "1b31570d-c4f6-4c55-bf87-ca6db5570d40" ], + "x-ms-correlation-request-id": [ "1b31570d-c4f6-4c55-bf87-ca6db5570d40" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053248Z:1b31570d-c4f6-4c55-bf87-ca6db5570d40" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F17567F3048C44388786E196AD0D28B2 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:48Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0700b50a-0000-0800-0000-6715e77f0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg\",\"name\":\"psdnssecurityrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:32:43.1644017Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:32:43.1644017Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "81c67008-fc41-4ae8-9785-3a264e567622" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703764093\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn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fzGW6LzfJVHw9L-2aQtIigzgsiFakiLXbu9Di7v9lKGXEZ1TxD4d62kEyOvYlOPAEt3xV9eO-MB8sLwOJY7MJVDHNZSB6WIvPiUdQbOWLpZwn-DKzbFhfiyT43qYeIkrolhWPYjrH-C53xPCDq9y1GH3SlLjcnU_flls8uiaKO5KuADuZsPGCvLM92uWo84ER7qLoVp73fX5UF8OSJo-jQvlSQ2FTBj24YT7iGWe9bQV41_q8KOKPtKL3c6c3_BH0IGgHKZyr4zG9i-eFOkNoPlykw\u0026h=7qN91N2q-g0_rW6RJBPDgEDLOS-H_ThgrCxuphEfhAQ" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "1fcfc4f5-d01b-4db0-bba4-5fc091c5bf33" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703607881\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_Wb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ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=zRw67eS9Yvpnlxz4I_L85zaCP7litoyhhrYoytEX8QewCAlikYsFqhSWz3cFpw6vlOXjv8_C40LThlNF8x3ER3L__Atv08_YmLDnxDb9X5crkjniCXVmCW5DQEUCPaWNBodjFAwAzduVo4aKX1wOVB2PNWDcJYX5nDO2kYNmaxsK6GTr8WmPBDh1TlzJQ-4gezAPZS8DjBhzBMg6jtwcmzDKC2SxahZ5B7-j-Mvf1SYPB3Zg_N9_y9Pd-lioxCBi6IbSPOfjzr-EIQoOO1ovFUXSn70OQ2S_3j-sQaRNUKc280pqnwqZkJzM16Y2Hf_vvEggYu6z9r0DHyTJg8spJw\u0026h=Cbv09nhle1yi8gBohlg58FuePN_Xuw2bcZFcScheV9Q" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "1fcfc4f5-d01b-4db0-bba4-5fc091c5bf33" ], + "x-ms-correlation-request-id": [ "1fcfc4f5-d01b-4db0-bba4-5fc091c5bf33" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053250Z:1fcfc4f5-d01b-4db0-bba4-5fc091c5bf33" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9A46B23088DF41A19041BEC4FF24EE33 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:49Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:49 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703607881\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZv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DHyTJg8spJw\u0026h=Cbv09nhle1yi8gBohlg58FuePN_Xuw2bcZFcScheV9Q+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703607881\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQB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vf1SYPB3Zg_N9_y9Pd-lioxCBi6IbSPOfjzr-EIQoOO1ovFUXSn70OQ2S_3j-sQaRNUKc280pqnwqZkJzM16Y2Hf_vvEggYu6z9r0DHyTJg8spJw\u0026h=Cbv09nhle1yi8gBohlg58FuePN_Xuw2bcZFcScheV9Q", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "81c67008-fc41-4ae8-9785-3a264e567622" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "acaadb8d-42b7-4fde-8b80-62261bc92652" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "acaadb8d-42b7-4fde-8b80-62261bc92652" ], + "x-ms-correlation-request-id": [ "acaadb8d-42b7-4fde-8b80-62261bc92652" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053255Z:acaadb8d-42b7-4fde-8b80-62261bc92652" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1A7EF8B43C8848A4B9AAAA107C89682A Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:55Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "514" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9\",\"startTime\":\"2024-10-21T05:32:50.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703607881\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQY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ZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=zRw67eS9Yvpnlxz4I_L85zaCP7litoyhhrYoytEX8QewCAlikYsFqhSWz3cFpw6vlOXjv8_C40LThlNF8x3ER3L__Atv08_YmLDnxDb9X5crkjniCXVmCW5DQEUCPaWNBodjFAwAzduVo4aKX1wOVB2PNWDcJYX5nDO2kYNmaxsK6GTr8WmPBDh1TlzJQ-4gezAPZS8DjBhzBMg6jtwcmzDKC2SxahZ5B7-j-Mvf1SYPB3Zg_N9_y9Pd-lioxCBi6IbSPOfjzr-EIQoOO1ovFUXSn70OQ2S_3j-sQaRNUKc280pqnwqZkJzM16Y2Hf_vvEggYu6z9r0DHyTJg8spJw\u0026h=Cbv09nhle1yi8gBohlg58FuePN_Xuw2bcZFcScheV9Q+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703607881\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMj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zbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=zRw67eS9Yvpnlxz4I_L85zaCP7litoyhhrYoytEX8QewCAlikYsFqhSWz3cFpw6vlOXjv8_C40LThlNF8x3ER3L__Atv08_YmLDnxDb9X5crkjniCXVmCW5DQEUCPaWNBodjFAwAzduVo4aKX1wOVB2PNWDcJYX5nDO2kYNmaxsK6GTr8WmPBDh1TlzJQ-4gezAPZS8DjBhzBMg6jtwcmzDKC2SxahZ5B7-j-Mvf1SYPB3Zg_N9_y9Pd-lioxCBi6IbSPOfjzr-EIQoOO1ovFUXSn70OQ2S_3j-sQaRNUKc280pqnwqZkJzM16Y2Hf_vvEggYu6z9r0DHyTJg8spJw\u0026h=Cbv09nhle1yi8gBohlg58FuePN_Xuw2bcZFcScheV9Q", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "81c67008-fc41-4ae8-9785-3a264e567622" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "b1190385-c033-4624-bb21-e4ca875f366f" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "b1190385-c033-4624-bb21-e4ca875f366f" ], + "x-ms-correlation-request-id": [ "b1190385-c033-4624-bb21-e4ca875f366f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053326Z:b1190385-c033-4624-bb21-e4ca875f366f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: DB1F8F902B604F03B91C604C6028803B Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:25Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9\",\"startTime\":\"2024-10-21T05:32:50.0000000Z\",\"endTime\":\"2024-10-21T05:32:57.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703764093\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrB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JBPDgEDLOS-H_ThgrCxuphEfhAQ+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703764093\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCg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Vp73fX5UF8OSJo-jQvlSQ2FTBj24YT7iGWe9bQV41_q8KOKPtKL3c6c3_BH0IGgHKZyr4zG9i-eFOkNoPlykw\u0026h=7qN91N2q-g0_rW6RJBPDgEDLOS-H_ThgrCxuphEfhAQ", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "81c67008-fc41-4ae8-9785-3a264e567622" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "31f36d42-608a-4597-b449-6fd8a3cf6bc4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "31f36d42-608a-4597-b449-6fd8a3cf6bc4" ], + "x-ms-correlation-request-id": [ "31f36d42-608a-4597-b449-6fd8a3cf6bc4" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053326Z:31f36d42-608a-4597-b449-6fd8a3cf6bc4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4CF1D8865133481BB5F01FF035C81B6D Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:25 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "7ec872ff-bf60-4f66-aa02-39644421802d" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "c42ce2a8-a938-444b-86e0-7b05162c4f97" ], + "x-ms-correlation-request-id": [ "c42ce2a8-a938-444b-86e0-7b05162c4f97" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053326Z:c42ce2a8-a938-444b-86e0-7b05162c4f97" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 020F768E598E48E78D798906926A1218 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "324" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q2NDM0YmUtMGUzMC00MzRlLWFhNDQtZDJjMjM4NTIwNDkwIn0=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AtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=2-knqYUc5KOB1LXMlhM0YTnT39K5gevBCuqgLnm9azhr3ICOl0v_KLQ5B2SqREuhxDe0l9jOHX24fzcIIN2KcHISXwO0q35nLD5O-abBdoDslIaPALQwOduLt4o4aducyg7D2F6Dqy-JZRTw4sBLwNAp4LPR6QOu7zTDOyVjypCBSh_jdfoUST7NvUObj4WIP8V-GBQ2MLT_0oJaHYwGIjA6EcKqkD1JPdBqF6MGgUAqBARKSs-PhElnOqxPQg-4ES69V5eI3aTYgJRuzjz7HtzAbPOo507hV6umR3faMbnhCIrbPl09pYznpF9qmuUJmRp9_-OXwQGHIaP0iRj_OA\u0026h=sd04tyJ-TofQrX1qK1cRcmyuDhVMKGa51Nb82c4QI_0" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "fb880e84-e158-4134-a041-caf66d0e2bf0" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dn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aining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "fb880e84-e158-4134-a041-caf66d0e2bf0" ], + "x-ms-correlation-request-id": [ "fb880e84-e158-4134-a041-caf66d0e2bf0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053327Z:fb880e84-e158-4134-a041-caf66d0e2bf0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CE38815731CD4E1286665E2DA767E796 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"72011e60-0000-0800-0000-6715e7a70000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg\",\"name\":\"psdnsresolverpolicyforrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:24:05.2016485Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:27.0429429Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXN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AYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=a7DOm9yia-3wtTmSPEK6CdHDoSA9zJTADzqEZa2G-K9KXgbOu_gg9uwACHOF4oEwUz-IsNO_Jq4HXiX6NPCdl_a2fX_kqirQuhft4bacmc9jpgOvtnKen8uzGThLTyM_oN6ElthSoHGkAIkTxEE2Kdee5z3McKs_0t1xtKk7i0ivTtB9lmUkQYFxv4UvfHgXF1cOlnAJVnIhlH7iEwkuz8tWDv2TO5OByIi3P_PBAFp4K4LFri40L1wC_CckqV3J3mSXryOAbVAmnplzKd-4XeNmwKmmXgIok8ROcOE3IaLDqireHTp62tf3yci8-LUIPsrmH6xkEnwZaeVy2aTq7Q\u0026h=9dv9en074dByBzru3P2YfHKcNUtkZbarb9tJEHn0A0U+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q2NDM0YmUtMGUzMC00MzRlLWFhNDQtZDJjMjM4NTIwNDkwIn0=?api-version=2023-07-01-preview\u0026t=638650856071835662\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaB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cNUtkZbarb9tJEHn0A0U", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "e6aadeb7-3385-4db6-a7e1-e0d1083fa0c1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "7a15c274-1386-40dd-bd8c-0b8b5a7231ae" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "7a15c274-1386-40dd-bd8c-0b8b5a7231ae" ], + "x-ms-correlation-request-id": [ "7a15c274-1386-40dd-bd8c-0b8b5a7231ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053332Z:7a15c274-1386-40dd-bd8c-0b8b5a7231ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 433FCD30E1A14FC1887B22824BADC1D0 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:32Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q2NDM0YmUtMGUzMC00MzRlLWFhNDQtZDJjMjM4NTIwNDkwIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q2NDM0YmUtMGUzMC00MzRlLWFhNDQtZDJjMjM4NTIwNDkwIn0=\",\"startTime\":\"2024-10-21T05:33:27.0000000Z\",\"endTime\":\"2024-10-21T05:33:27.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "e6aadeb7-3385-4db6-a7e1-e0d1083fa0c1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "be8175c7-22e7-4f30-8f93-90bf4491c7da" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "be8175c7-22e7-4f30-8f93-90bf4491c7da" ], + "x-ms-correlation-request-id": [ "be8175c7-22e7-4f30-8f93-90bf4491c7da" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053332Z:be8175c7-22e7-4f30-8f93-90bf4491c7da" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 226813279A404D52BE4F3EA95D8DBEF7 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:32Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "616" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"acd07d09-8c10-4e51-b4a8-3c6297bf0414\"},\"etag\":\"\\\"2b008950-0000-0800-0000-6715e7a70000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg\",\"name\":\"psdnsresolverpolicyforrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:24:05.2016485Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:27.0429429Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9?api-version=2023-07-01-preview\u0026t=638650856131938851\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7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O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=YcEjDPWJRHthCTqtRCx_kAKtjM2w2j-jKZun92D3am7ZDjrsImZk0-G4CGMhrf6uVp3qjl4IW3UdsIWabbimYgstxZT8kn_wdN8nfkc3Lu6SPEh5wV3EsNyiVCKQU9guiNrdxZnqHJqLbSOdYKHzZlFpYDITg0nurUH283vVad5Q1ll71srMPqqxbXHj7I8sT7uhJ3Nm8xoKwGXxMLbWcJNXtuolXOo8ZgTBzZ_zeimZxz1-vVDUjWLh9mPY_vWCihKalt03yXrGensIYDgzxM4rHGc0irR1lcSPQc-LPTcnIH1lpJ-JfEX109s_-Bcj_HyT_MNszVc_6xLcWwBGIw\u0026h=RxK_XThEE-MWgrIYVayz3MmZTA3iNq55ROya5qE8Kx8" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "99388795-fe8b-4a79-99f0-6e20155945ae" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9?api-version=2023-07-01-preview\u0026t=638650856131938851\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAY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yukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=lYipQpnoNYLt_DoOUoT8FxLiQu2z1N1sOCjEVaEVRAYVgwGhqLGh8DdWRlgoaQethcuosev-PlaoYMpJBw85-Nwl1u9MNcx1SHgNG4h11AUA9Ih7WjzMtT_IUtWhvjAgHbmayQ-fiSxx6oaJD7dU88bgZjsq3JHd-ojMfq1XXKTGpADSoTGVQNaLDbd0HglEvZr2JNIXFUYAleu69F_GIhAkq941PIuIX_MRnAJAmuqsYadHJxp4mcpJXoYmdz1dDJgO938HeqQxOF6Fpuuu9k4W-nIOR88P8wi20mp98-__zpr6dcSFhhI5DqoYbeN3JLYHLYgaGvAkuOkUvnCoDQ\u0026h=JUSS7Z_Q_wf1OYd71tU62eVfwu4ROqiGcYnK9lcfpaU" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "99388795-fe8b-4a79-99f0-6e20155945ae" ], + "x-ms-correlation-request-id": [ "99388795-fe8b-4a79-99f0-6e20155945ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053333Z:99388795-fe8b-4a79-99f0-6e20155945ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CD0F04A7E17F4915945C4190A8D600A1 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:32Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "637" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7201ab61-0000-0800-0000-6715e7ad0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\",\"name\":\"psdnsresolverdomainlistforrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:24:12.8971749Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:33.1001251Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9?api-version=2023-07-01-preview\u0026t=638650856131938851\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc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UaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=lYipQpnoNYLt_DoOUoT8FxLiQu2z1N1sOCjEVaEVRAYVgwGhqLGh8DdWRlgoaQethcuosev-PlaoYMpJBw85-Nwl1u9MNcx1SHgNG4h11AUA9Ih7WjzMtT_IUtWhvjAgHbmayQ-fiSxx6oaJD7dU88bgZjsq3JHd-ojMfq1XXKTGpADSoTGVQNaLDbd0HglEvZr2JNIXFUYAleu69F_GIhAkq941PIuIX_MRnAJAmuqsYadHJxp4mcpJXoYmdz1dDJgO938HeqQxOF6Fpuuu9k4W-nIOR88P8wi20mp98-__zpr6dcSFhhI5DqoYbeN3JLYHLYgaGvAkuOkUvnCoDQ\u0026h=JUSS7Z_Q_wf1OYd71tU62eVfwu4ROqiGcYnK9lcfpaU+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9?api-version=2023-07-01-preview\u0026t=638650856131938851\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPy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BBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=lYipQpnoNYLt_DoOUoT8FxLiQu2z1N1sOCjEVaEVRAYVgwGhqLGh8DdWRlgoaQethcuosev-PlaoYMpJBw85-Nwl1u9MNcx1SHgNG4h11AUA9Ih7WjzMtT_IUtWhvjAgHbmayQ-fiSxx6oaJD7dU88bgZjsq3JHd-ojMfq1XXKTGpADSoTGVQNaLDbd0HglEvZr2JNIXFUYAleu69F_GIhAkq941PIuIX_MRnAJAmuqsYadHJxp4mcpJXoYmdz1dDJgO938HeqQxOF6Fpuuu9k4W-nIOR88P8wi20mp98-__zpr6dcSFhhI5DqoYbeN3JLYHLYgaGvAkuOkUvnCoDQ\u0026h=JUSS7Z_Q_wf1OYd71tU62eVfwu4ROqiGcYnK9lcfpaU", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "f89e35d1-f836-4d4f-b7f9-315bfd309f93" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "501c87d4-c9b0-4025-ad05-8888ccc3c76b" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "501c87d4-c9b0-4025-ad05-8888ccc3c76b" ], + "x-ms-correlation-request-id": [ "501c87d4-c9b0-4025-ad05-8888ccc3c76b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053338Z:501c87d4-c9b0-4025-ad05-8888ccc3c76b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3E70C70D392C4A74B58CF5270E77BA87 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:38Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9\",\"startTime\":\"2024-10-21T05:33:33.0000000Z\",\"endTime\":\"2024-10-21T05:33:37.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "f89e35d1-f836-4d4f-b7f9-315bfd309f93" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "2bb4ba38-364c-40d6-8c88-186719385e90" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "2bb4ba38-364c-40d6-8c88-186719385e90" ], + "x-ms-correlation-request-id": [ "2bb4ba38-364c-40d6-8c88-186719385e90" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053338Z:2bb4ba38-364c-40d6-8c88-186719385e90" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 448F659A3DCC4219A17668C05A3C1FC7 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:38Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "672" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a38224f0-8097-425d-9e11-5016b51cc4da\"},\"etag\":\"\\\"3e00c525-0000-0800-0000-6715e7b10000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\",\"name\":\"psdnsresolverdomainlistforrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:24:12.8971749Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:33.1001251Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "477" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9?api-version=2023-07-01-preview\u0026t=638650856207243151\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u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-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=8x34u3eoP5I9SS6Xznf16Ss7d7fX6ARjuHMI5zlduumnO0aA0cGukoV2rcL0NBE2j14Qu2i5Jd0vopse6EKm4557IoEn1p2Gk42FsU5IThtADnpx0hBx3DsTxszsrXF-Zs9OUND-l4Z7eFWn4Td1oMAvVaPjaAEhuRxrms-bbhQKM_E6F4f5MFhMsb8FS2ALonZE1-lJzl6pxTdgeO5W8lkIZ_ijChkQY7IahnIYU_iJn5QeUBlJ129CseB2M-l2lwHujs_QIXqXlevkbW-If-pjw8pg_tOx_qJIUsU_-vgYlBCOacWLUZ0J8e257gtTwEi8Sirx6QIQtCO1HOaVtQ\u0026h=gnmHH9kZ5_4FRAeYO_Y6dKgKXPoPZF4iQPZJxTo5gQU" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "7e18f45d-243d-47d2-83b9-9ab6af309c24" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9?api-version=2023-07-01-preview\u0026t=638650856206930623\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGl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AkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=ptX87XHDM-4JmIe_Qgns9pAqbXN4Lj_ZB74udsMyIvpv4zTiia5OJWAAHhlk5R-aOTd4Txh76K4otJ-9a6e2Q8h4VArjTnHilHWSOxvMIdGtaTdse4Xeuveo0zBaIwAwOIsjJ9jqpB86X1WQAr5sFe5MTJVA1v3PRJZI_IwSSkN2vAc4W1CD7Mr1uuCHWeDV4u-8iv5A5HA3bR3sLBMvF695Lyfvb-ES9FGBlvNefLTBz7thW4_E1FUh0z1TjNSVDqRkduhBc29EANkRpqpcmwThcgburPDdVbbzDspXP5fIEodNNpk3wX4B1dkCDQOu4KMN6ZQS1BOAq_Smnmw3WQ\u0026h=CFm0etFpC8nSwUNtlmJbBKsNQCzInZpvYRimxi4e0aI" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "7e18f45d-243d-47d2-83b9-9ab6af309c24" ], + "x-ms-correlation-request-id": [ "7e18f45d-243d-47d2-83b9-9ab6af309c24" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053340Z:7e18f45d-243d-47d2-83b9-9ab6af309c24" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FBD0BDFBC18F4A46BE2F32AD8223F43B Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:39Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "990" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2b000452-0000-0800-0000-6715e7b40000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg\",\"name\":\"psdnssecurityrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:33:40.4430487Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:40.4430487Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9?api-version=2023-07-01-preview\u0026t=638650856206930623\u0026c=MIIHpTCCBo2gAwIBAgITOgM6d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YBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=ptX87XHDM-4JmIe_Qgns9pAqbXN4Lj_ZB74udsMyIvpv4zTiia5OJWAAHhlk5R-aOTd4Txh76K4otJ-9a6e2Q8h4VArjTnHilHWSOxvMIdGtaTdse4Xeuveo0zBaIwAwOIsjJ9jqpB86X1WQAr5sFe5MTJVA1v3PRJZI_IwSSkN2vAc4W1CD7Mr1uuCHWeDV4u-8iv5A5HA3bR3sLBMvF695Lyfvb-ES9FGBlvNefLTBz7thW4_E1FUh0z1TjNSVDqRkduhBc29EANkRpqpcmwThcgburPDdVbbzDspXP5fIEodNNpk3wX4B1dkCDQOu4KMN6ZQS1BOAq_Smnmw3WQ\u0026h=CFm0etFpC8nSwUNtlmJbBKsNQCzInZpvYRimxi4e0aI+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGR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AAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=ptX87XHDM-4JmIe_Qgns9pAqbXN4Lj_ZB74udsMyIvpv4zTiia5OJWAAHhlk5R-aOTd4Txh76K4otJ-9a6e2Q8h4VArjTnHilHWSOxvMIdGtaTdse4Xeuveo0zBaIwAwOIsjJ9jqpB86X1WQAr5sFe5MTJVA1v3PRJZI_IwSSkN2vAc4W1CD7Mr1uuCHWeDV4u-8iv5A5HA3bR3sLBMvF695Lyfvb-ES9FGBlvNefLTBz7thW4_E1FUh0z1TjNSVDqRkduhBc29EANkRpqpcmwThcgburPDdVbbzDspXP5fIEodNNpk3wX4B1dkCDQOu4KMN6ZQS1BOAq_Smnmw3WQ\u0026h=CFm0etFpC8nSwUNtlmJbBKsNQCzInZpvYRimxi4e0aI", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "cddcf547-715b-45f5-8718-03f0a43bc9aa" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "15606442-6ab1-41fd-9435-0e2f4918d2e5" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "15606442-6ab1-41fd-9435-0e2f4918d2e5" ], + "x-ms-correlation-request-id": [ "15606442-6ab1-41fd-9435-0e2f4918d2e5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053345Z:15606442-6ab1-41fd-9435-0e2f4918d2e5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 93526F0420064333A2963E1A6D176D8E Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:45Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "514" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9\",\"startTime\":\"2024-10-21T05:33:40.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9?api-version=2023-07-01-preview\u0026t=638650856206930623\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi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VArjTnHilHWSOxvMIdGtaTdse4Xeuveo0zBaIwAwOIsjJ9jqpB86X1WQAr5sFe5MTJVA1v3PRJZI_IwSSkN2vAc4W1CD7Mr1uuCHWeDV4u-8iv5A5HA3bR3sLBMvF695Lyfvb-ES9FGBlvNefLTBz7thW4_E1FUh0z1TjNSVDqRkduhBc29EANkRpqpcmwThcgburPDdVbbzDspXP5fIEodNNpk3wX4B1dkCDQOu4KMN6ZQS1BOAq_Smnmw3WQ\u0026h=CFm0etFpC8nSwUNtlmJbBKsNQCzInZpvYRimxi4e0aI+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9?api-version=2023-07-01-preview\u0026t=638650856206930623\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK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81mGlzhZc09Q\u0026s=ptX87XHDM-4JmIe_Qgns9pAqbXN4Lj_ZB74udsMyIvpv4zTiia5OJWAAHhlk5R-aOTd4Txh76K4otJ-9a6e2Q8h4VArjTnHilHWSOxvMIdGtaTdse4Xeuveo0zBaIwAwOIsjJ9jqpB86X1WQAr5sFe5MTJVA1v3PRJZI_IwSSkN2vAc4W1CD7Mr1uuCHWeDV4u-8iv5A5HA3bR3sLBMvF695Lyfvb-ES9FGBlvNefLTBz7thW4_E1FUh0z1TjNSVDqRkduhBc29EANkRpqpcmwThcgburPDdVbbzDspXP5fIEodNNpk3wX4B1dkCDQOu4KMN6ZQS1BOAq_Smnmw3WQ\u0026h=CFm0etFpC8nSwUNtlmJbBKsNQCzInZpvYRimxi4e0aI", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "cddcf547-715b-45f5-8718-03f0a43bc9aa" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "9c916e5a-3a45-4b1f-b598-c75b564dd910" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "9c916e5a-3a45-4b1f-b598-c75b564dd910" ], + "x-ms-correlation-request-id": [ "9c916e5a-3a45-4b1f-b598-c75b564dd910" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053416Z:9c916e5a-3a45-4b1f-b598-c75b564dd910" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F9A787FEC79E4F848CB061EB1490F769 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:16Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9\",\"startTime\":\"2024-10-21T05:33:40.0000000Z\",\"endTime\":\"2024-10-21T05:33:47.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "cddcf547-715b-45f5-8718-03f0a43bc9aa" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "49ee8477-b32f-437c-84ec-cb20b69237c1" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "49ee8477-b32f-437c-84ec-cb20b69237c1" ], + "x-ms-correlation-request-id": [ "49ee8477-b32f-437c-84ec-cb20b69237c1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053416Z:49ee8477-b32f-437c-84ec-cb20b69237c1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 33A81F01241A409A9B8534333EA235F1 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:16Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0700720c-0000-0800-0000-6715e7bb0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg\",\"name\":\"psdnssecurityrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:33:40.4430487Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:40.4430487Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "b5038647-c517-465b-9d1c-f3d01767cb0f" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "329e8262-bb02-4b0f-92a6-f450ce34e8fe" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "329e8262-bb02-4b0f-92a6-f450ce34e8fe" ], + "x-ms-correlation-request-id": [ "329e8262-bb02-4b0f-92a6-f450ce34e8fe" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053417Z:329e8262-bb02-4b0f-92a6-f450ce34e8fe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0C075FE773D049B084AFE21ED3F66D4F Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:16Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0700720c-0000-0800-0000-6715e7bb0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg\",\"name\":\"psdnssecurityrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:33:40.4430487Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:40.4430487Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview+12": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "ec758eb8-f896-465a-a579-a82c97d7f381" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9?api-version=2023-07-01-preview\u0026t=638650856583183487\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwC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XnEBIP_3hcSej-K0dwfR9wPkvWGYi-2fvYIpoJX18d5w1rmtWRpSTk8fKN_LiBvc1_rHUMPfKluYQx044y6w0i8vA\u0026h=RvAd6ho6vt8Z3PNYTAX6yJbwqE5YCFDLrY3RMWHDOR4" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "7f223bf8-a0c2-40af-b6bd-f17167eb3177" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9?api-version=2023-07-01-preview\u0026t=638650856583027172\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PB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VBf9dNTqgpfC8icgepH5LVD5K6K209PoPBLDCQyasf2kHWI8WqdHzcohcBUDOzs78gXvVBXmxMJUFNJ0Hkbn1ajRseZiT0UhyLmT8qhMip0NT-6EH-w1mGLhgKN8zivtJ1MTE2SWM7bnLGivAcGTTuIUIESj8lzOouRWjVe4YKGU05BfhqhgBqHKgcwCWIvkyblJ557Hs1oUuIkub8gVks_jwudTHSlp7fcVShdT5cIEVoVOHNgxXQA\u0026h=dmW4afTfilKZ-xBfypsRZINdReTXWps9FIun8bB2-hQ" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "7f223bf8-a0c2-40af-b6bd-f17167eb3177" ], + "x-ms-correlation-request-id": [ "7f223bf8-a0c2-40af-b6bd-f17167eb3177" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053418Z:7f223bf8-a0c2-40af-b6bd-f17167eb3177" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 33EB3D25FD394ACDB29088A4D5EFC05A Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:17Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:17 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMi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UANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=7c4KDorm7zbKL4OI7VbSWr8d5xsTnoRKQC2C34BgLi8gEKY6ARkzmP6dI8alpFTR_IbqFabq9dygzk_ALG-pMNLNmvUVUruVBf9dNTqgpfC8icgepH5LVD5K6K209PoPBLDCQyasf2kHWI8WqdHzcohcBUDOzs78gXvVBXmxMJUFNJ0Hkbn1ajRseZiT0UhyLmT8qhMip0NT-6EH-w1mGLhgKN8zivtJ1MTE2SWM7bnLGivAcGTTuIUIESj8lzOouRWjVe4YKGU05BfhqhgBqHKgcwCWIvkyblJ557Hs1oUuIkub8gVks_jwudTHSlp7fcVShdT5cIEVoVOHNgxXQA\u0026h=dmW4afTfilKZ-xBfypsRZINdReTXWps9FIun8bB2-hQ+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2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gorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=7c4KDorm7zbKL4OI7VbSWr8d5xsTnoRKQC2C34BgLi8gEKY6ARkzmP6dI8alpFTR_IbqFabq9dygzk_ALG-pMNLNmvUVUruVBf9dNTqgpfC8icgepH5LVD5K6K209PoPBLDCQyasf2kHWI8WqdHzcohcBUDOzs78gXvVBXmxMJUFNJ0Hkbn1ajRseZiT0UhyLmT8qhMip0NT-6EH-w1mGLhgKN8zivtJ1MTE2SWM7bnLGivAcGTTuIUIESj8lzOouRWjVe4YKGU05BfhqhgBqHKgcwCWIvkyblJ557Hs1oUuIkub8gVks_jwudTHSlp7fcVShdT5cIEVoVOHNgxXQA\u0026h=dmW4afTfilKZ-xBfypsRZINdReTXWps9FIun8bB2-hQ", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "ec758eb8-f896-465a-a579-a82c97d7f381" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "116b1d01-d28d-4d00-89f0-72b6a1cf8e10" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "116b1d01-d28d-4d00-89f0-72b6a1cf8e10" ], + "x-ms-correlation-request-id": [ "116b1d01-d28d-4d00-89f0-72b6a1cf8e10" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053423Z:116b1d01-d28d-4d00-89f0-72b6a1cf8e10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4F30D1E6457549E19A0C1EC4D8E98BB8 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:23Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9\",\"startTime\":\"2024-10-21T05:34:18.0000000Z\",\"endTime\":\"2024-10-21T05:34:19.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9?api-version=2023-07-01-preview\u0026t=638650856583183487\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MU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UuPsRuGxCVrq_Eo6tgCP-LbDNG12J5oOOmpTd8mLNIcgmdMAq17dRGdgEcQOSrsF-W0gNMnEskf3_xfqlEKxLb_XVuRJpQxZnxge6vEpzEgjEd3g5xMOKFv4GlrfgKEFXZrjeNXQqCH_MfxvVXrKRSvaIgJA5Xh247usuT6v1dSB4IbhUdYLLHxGuIkncVwfr11xS7ivt_dwDNxJhrUawPlybVyRUqiUR5TVf_u_Pg4t3kIrrXnEBIP_3hcSej-K0dwfR9wPkvWGYi-2fvYIpoJX18d5w1rmtWRpSTk8fKN_LiBvc1_rHUMPfKluYQx044y6w0i8vA\u0026h=RvAd6ho6vt8Z3PNYTAX6yJbwqE5YCFDLrY3RMWHDOR4+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9?api-version=2023-07-01-preview\u0026t=638650856583183487\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLI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Q5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=5T3DHTAZ-bY7UuPsRuGxCVrq_Eo6tgCP-LbDNG12J5oOOmpTd8mLNIcgmdMAq17dRGdgEcQOSrsF-W0gNMnEskf3_xfqlEKxLb_XVuRJpQxZnxge6vEpzEgjEd3g5xMOKFv4GlrfgKEFXZrjeNXQqCH_MfxvVXrKRSvaIgJA5Xh247usuT6v1dSB4IbhUdYLLHxGuIkncVwfr11xS7ivt_dwDNxJhrUawPlybVyRUqiUR5TVf_u_Pg4t3kIrrXnEBIP_3hcSej-K0dwfR9wPkvWGYi-2fvYIpoJX18d5w1rmtWRpSTk8fKN_LiBvc1_rHUMPfKluYQx044y6w0i8vA\u0026h=RvAd6ho6vt8Z3PNYTAX6yJbwqE5YCFDLrY3RMWHDOR4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "ec758eb8-f896-465a-a579-a82c97d7f381" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "19e0d9ec-e100-49a1-b7be-89fe2f951b02" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "19e0d9ec-e100-49a1-b7be-89fe2f951b02" ], + "x-ms-correlation-request-id": [ "19e0d9ec-e100-49a1-b7be-89fe2f951b02" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053424Z:19e0d9ec-e100-49a1-b7be-89fe2f951b02" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A97EA27612E341E1BEF03EDF660527BD Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:23Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:23 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "7238be96-8b05-432d-b480-f88b9e8a775d" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "ffc3c349-6966-4386-852d-5e1fc9c403c5" ], + "x-ms-correlation-request-id": [ "ffc3c349-6966-4386-852d-5e1fc9c403c5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053424Z:ffc3c349-6966-4386-852d-5e1fc9c403c5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 52951C8AE5AD4E19AD244A93CE75C66E Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:24Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "324" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..b481560947d8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 @@ -0,0 +1,53 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzDnsResolverPolicyDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzDnsResolverPolicyDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzDnsResolverPolicyDnsSecurityRule' { + It 'Delete a DNS security rule by name, expected DNS security rule deleted' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename8y8cdzg"; + $dnsSecurityRuleName = "psdnssecurityrulename8y8cdzg"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename8y8cdzg"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ACT + Remove-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + {Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -DnsSecurityRuleName $dnsSecurityRuleName -ResourceGroupName $resourceGroupName } | Should -Throw + } + + It 'Delete a DNS security rule via identity, expected DNS security rule deleted' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename0j9ujzg"; + $dnsSecurityRuleName = "psdnssecurityrulename0j9ujzg"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename0j9ujzg"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ACT + Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -DnsSecurityRuleName $dnsSecurityRuleName -ResourceGroupName $resourceGroupName | Remove-AzDnsResolverPolicyDnsSecurityRule + + # ASSERT + {Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -DnsSecurityRuleName $dnsSecurityRuleName -ResourceGroupName $resourceGroupName } | Should -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Recording.json new file mode 100644 index 000000000000..c93d6380c6ac --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Recording.json @@ -0,0 +1,982 @@ +{ + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "ad142a37-ad42-4fd6-951e-b86c650120a1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZjFlNGJhYzEtNDE2YS00M2E2LWI3OGEtNWQ0NDNhNjNhOTA3In0=?api-version=2023-07-01-preview\u0026t=638650874053722463\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDE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fPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=EaxOpXBhyttFpxY2F6h7vkqeFpZbsZp-e4P3wtVVUoIR1EngJUkPCM5mkISNNg-QudA4S8IJhG3hPqD3Fl9BBN5-CRit3YFBE_xUAooNNgH0uKhwVFunhkmqQ5HFYT3d1a23GSXuWm0SO24V3mDoPOcu5YI41lYb4k2h-V8Ea1c-rnLRs49ff-ZRRAg4VToDYXX4Wb4AOHCP5DFYz0DVUWhz1SZmvXCKhR4-tVl6nd7WGnX-5eLNIXXeMwmG-JvL4FCR6RY-z9pl5lrM8ur1yENLKRJwB0aCU7TP3QuzPlqjzZ785fQZqqfwQ2ewEQi7HDFDgISkl9Of-pbxN9Q-FA\u0026h=1Bmq4qAs_Z7n0cFAwGfdNci-sVUQIUHTTr4Vq8U2GtE" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "ad142a37-ad42-4fd6-951e-b86c650120a1" ], + "x-ms-correlation-request-id": [ "ad142a37-ad42-4fd6-951e-b86c650120a1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060325Z:ad142a37-ad42-4fd6-951e-b86c650120a1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A476FE77980D4BC1B01136C0794D2E5F Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:03:23Z" ], + "Date": [ "Mon, 21 Oct 2024 06:03:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"7401596e-0000-0800-0000-6715eead0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa\",\"name\":\"psdnsresolverpolicyforlinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:03:25.1379211Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:03:25.1379211Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZjFlNGJhYzEtNDE2YS00M2E2LWI3OGEtNWQ0NDNhNjNhOTA3In0=?api-version=2023-07-01-preview\u0026t=638650874053722463\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5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RilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=EaxOpXBhyttFpxY2F6h7vkqeFpZbsZp-e4P3wtVVUoIR1EngJUkPCM5mkISNNg-QudA4S8IJhG3hPqD3Fl9BBN5-CRit3YFBE_xUAooNNgH0uKhwVFunhkmqQ5HFYT3d1a23GSXuWm0SO24V3mDoPOcu5YI41lYb4k2h-V8Ea1c-rnLRs49ff-ZRRAg4VToDYXX4Wb4AOHCP5DFYz0DVUWhz1SZmvXCKhR4-tVl6nd7WGnX-5eLNIXXeMwmG-JvL4FCR6RY-z9pl5lrM8ur1yENLKRJwB0aCU7TP3QuzPlqjzZ785fQZqqfwQ2ewEQi7HDFDgISkl9Of-pbxN9Q-FA\u0026h=1Bmq4qAs_Z7n0cFAwGfdNci-sVUQIUHTTr4Vq8U2GtE+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZjFlNGJhYzEtNDE2YS00M2E2LWI3OGEtNWQ0NDNhNjNhOTA3In0=?api-version=2023-07-01-preview\u0026t=638650874053722463\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEg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So98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=EaxOpXBhyttFpxY2F6h7vkqeFpZbsZp-e4P3wtVVUoIR1EngJUkPCM5mkISNNg-QudA4S8IJhG3hPqD3Fl9BBN5-CRit3YFBE_xUAooNNgH0uKhwVFunhkmqQ5HFYT3d1a23GSXuWm0SO24V3mDoPOcu5YI41lYb4k2h-V8Ea1c-rnLRs49ff-ZRRAg4VToDYXX4Wb4AOHCP5DFYz0DVUWhz1SZmvXCKhR4-tVl6nd7WGnX-5eLNIXXeMwmG-JvL4FCR6RY-z9pl5lrM8ur1yENLKRJwB0aCU7TP3QuzPlqjzZ785fQZqqfwQ2ewEQi7HDFDgISkl9Of-pbxN9Q-FA\u0026h=1Bmq4qAs_Z7n0cFAwGfdNci-sVUQIUHTTr4Vq8U2GtE", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "9810f2fb-2361-4225-a6f9-523e03d6977e" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "4f14b205-86e0-4ebb-b65b-07e5b2cb7f80" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "4f14b205-86e0-4ebb-b65b-07e5b2cb7f80" ], + "x-ms-correlation-request-id": [ "4f14b205-86e0-4ebb-b65b-07e5b2cb7f80" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060330Z:4f14b205-86e0-4ebb-b65b-07e5b2cb7f80" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0E3C34A9D3754E7CBD1C269CB2F1CC2C Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:03:30Z" ], + "Date": [ "Mon, 21 Oct 2024 06:03:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZjFlNGJhYzEtNDE2YS00M2E2LWI3OGEtNWQ0NDNhNjNhOTA3In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZjFlNGJhYzEtNDE2YS00M2E2LWI3OGEtNWQ0NDNhNjNhOTA3In0=\",\"startTime\":\"2024-10-21T06:03:25.0000000Z\",\"endTime\":\"2024-10-21T06:03:28.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "9810f2fb-2361-4225-a6f9-523e03d6977e" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "716e121d-c123-4643-b936-ba8ad118b03c" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "716e121d-c123-4643-b936-ba8ad118b03c" ], + "x-ms-correlation-request-id": [ "716e121d-c123-4643-b936-ba8ad118b03c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060331Z:716e121d-c123-4643-b936-ba8ad118b03c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B48AF6267C4941F387E8D58867A0A0ED Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:03:30Z" ], + "Date": [ "Mon, 21 Oct 2024 06:03:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "616" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d90c2581-d528-43a6-889d-68006d59baf4\"},\"etag\":\"\\\"2c00503b-0000-0800-0000-6715eeb00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa\",\"name\":\"psdnsresolverpolicyforlinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:03:25.1379211Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:03:25.1379211Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "279" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "5a9761b4-cab0-4585-9dfd-55b554011bc8" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9?api-version=2023-07-01-preview\u0026t=638650874126849931\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXY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WLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=RDwlfgsMdp5ebdb-kzN8af-uLVw6qC-ZW4RSRrEGlDPW3m7eNBm_1ck9_05DRXKcMMRHLPZ-K6E4kgbjKPsRyPY8bWVmD_prhAZJ0z-F8nhggEFmVewxmjxCkq4oMSgWzAaOEm4xpjVS333YWLPnuBi1VeFQDyx-XwsHcdbg2kxAACOYrslLWC_aK01ATZdcjGuQwMRs_Omd0Zvr5EmZ1uKYIrgi5AKC61SntlYM7L5NEMSWaSv1WNTJUT3f0Ufvb4NiVUf_EvYXm8yEdwld6RD1XqzQCotMzdplLire97II-FvH9Cdva-hqzgM57fA79vdxmzaJrbHhFKFabLTciA\u0026h=fLp4Uwe5kB6WJgiCiBqWwEzlqq99kbY4dJkOIQZmvSA" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "5a9761b4-cab0-4585-9dfd-55b554011bc8" ], + "x-ms-correlation-request-id": [ "5a9761b4-cab0-4585-9dfd-55b554011bc8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060332Z:5a9761b4-cab0-4585-9dfd-55b554011bc8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B53BEE1347F04C75AB6D88E89B45AC1B Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:03:31Z" ], + "Date": [ "Mon, 21 Oct 2024 06:03:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "835" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"},\"provisioningState\":\"Creating\"},\"etag\":\"\\\"2c00b43b-0000-0800-0000-6715eeb40000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\",\"name\":\"psdnsresolverpolicylinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:03:32.481867Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:03:32.481867Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9?api-version=2023-07-01-preview\u0026t=638650874126849931\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZp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n0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=RDwlfgsMdp5ebdb-kzN8af-uLVw6qC-ZW4RSRrEGlDPW3m7eNBm_1ck9_05DRXKcMMRHLPZ-K6E4kgbjKPsRyPY8bWVmD_prhAZJ0z-F8nhggEFmVewxmjxCkq4oMSgWzAaOEm4xpjVS333YWLPnuBi1VeFQDyx-XwsHcdbg2kxAACOYrslLWC_aK01ATZdcjGuQwMRs_Omd0Zvr5EmZ1uKYIrgi5AKC61SntlYM7L5NEMSWaSv1WNTJUT3f0Ufvb4NiVUf_EvYXm8yEdwld6RD1XqzQCotMzdplLire97II-FvH9Cdva-hqzgM57fA79vdxmzaJrbHhFKFabLTciA\u0026h=fLp4Uwe5kB6WJgiCiBqWwEzlqq99kbY4dJkOIQZmvSA+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9?api-version=2023-07-01-preview\u0026t=638650874126849931\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUk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AzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=RDwlfgsMdp5ebdb-kzN8af-uLVw6qC-ZW4RSRrEGlDPW3m7eNBm_1ck9_05DRXKcMMRHLPZ-K6E4kgbjKPsRyPY8bWVmD_prhAZJ0z-F8nhggEFmVewxmjxCkq4oMSgWzAaOEm4xpjVS333YWLPnuBi1VeFQDyx-XwsHcdbg2kxAACOYrslLWC_aK01ATZdcjGuQwMRs_Omd0Zvr5EmZ1uKYIrgi5AKC61SntlYM7L5NEMSWaSv1WNTJUT3f0Ufvb4NiVUf_EvYXm8yEdwld6RD1XqzQCotMzdplLire97II-FvH9Cdva-hqzgM57fA79vdxmzaJrbHhFKFabLTciA\u0026h=fLp4Uwe5kB6WJgiCiBqWwEzlqq99kbY4dJkOIQZmvSA", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "ae44dbcd-b6bb-47bc-86d3-8667a7597216" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a279a35d-20b8-4083-82be-db7a2d9f7869" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a279a35d-20b8-4083-82be-db7a2d9f7869" ], + "x-ms-correlation-request-id": [ "a279a35d-20b8-4083-82be-db7a2d9f7869" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060337Z:a279a35d-20b8-4083-82be-db7a2d9f7869" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C149032A1C5C42B3AD732F260EC0BFB2 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:03:37Z" ], + "Date": [ "Mon, 21 Oct 2024 06:03:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "530" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9\",\"startTime\":\"2024-10-21T06:03:32.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9?api-version=2023-07-01-preview\u0026t=638650874126849931\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDY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fA79vdxmzaJrbHhFKFabLTciA\u0026h=fLp4Uwe5kB6WJgiCiBqWwEzlqq99kbY4dJkOIQZmvSA+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9?api-version=2023-07-01-preview\u0026t=638650874126849931\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaO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0Zvr5EmZ1uKYIrgi5AKC61SntlYM7L5NEMSWaSv1WNTJUT3f0Ufvb4NiVUf_EvYXm8yEdwld6RD1XqzQCotMzdplLire97II-FvH9Cdva-hqzgM57fA79vdxmzaJrbHhFKFabLTciA\u0026h=fLp4Uwe5kB6WJgiCiBqWwEzlqq99kbY4dJkOIQZmvSA", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "ae44dbcd-b6bb-47bc-86d3-8667a7597216" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8df41a11-7606-4e4f-b580-9203a8f32e2e" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "8df41a11-7606-4e4f-b580-9203a8f32e2e" ], + "x-ms-correlation-request-id": [ "8df41a11-7606-4e4f-b580-9203a8f32e2e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060408Z:8df41a11-7606-4e4f-b580-9203a8f32e2e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7548A4D940344F709EA1A915AFDA0684 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:08Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9\",\"startTime\":\"2024-10-21T06:03:32.0000000Z\",\"endTime\":\"2024-10-21T06:03:39.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "ae44dbcd-b6bb-47bc-86d3-8667a7597216" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e20c44ea-4257-4f45-9508-752e59f73463" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e20c44ea-4257-4f45-9508-752e59f73463" ], + "x-ms-correlation-request-id": [ "e20c44ea-4257-4f45-9508-752e59f73463" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060408Z:e20c44ea-4257-4f45-9508-752e59f73463" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F128BC0A3375443798EF424FDF24EA22 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:08Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "836" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00763c-0000-0800-0000-6715eebb0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\",\"name\":\"psdnsresolverpolicylinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:03:32.481867Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:03:32.481867Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "2ccc1c73-9dac-4de0-b863-dc7cd5381906" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations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": [ "27338a51-9d3e-4fc3-b200-09437f7da494" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9?api-version=2023-07-01-preview\u0026t=638650874501388503\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBB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N9yMNhn0XPwNf93HDUAfuzqc8O-oXb5RqoFg\u0026h=6EyNOZwokp1748uWcKBJx4YiDk6dUpD3gIUqOLKxRzY" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "27338a51-9d3e-4fc3-b200-09437f7da494" ], + "x-ms-correlation-request-id": [ "27338a51-9d3e-4fc3-b200-09437f7da494" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060410Z:27338a51-9d3e-4fc3-b200-09437f7da494" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0193FAA089A84DE59CF5A7D911AFA55E Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:09Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:09 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9?api-version=2023-07-01-preview\u0026t=638650874501388503\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1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4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=eRDbl4zLIUZ7Ao89EJkfXIS2i4LZNBu3nAEipci0ev_1GBT9R6sUiNBcHfD6MW42lS7_agYxgku8JSts_jT8yZskaf7OWPhABnhgHAz4walJDJGaej1o17-zx-I-YHH0VNqq7lcDql3EH9_tJAx9sx0pks-8Xy94IyWqZskUhFo9nQamw-UBmksj-NsSdMQaw7OuCDnxVbxO-5KVmO2LkjzSBbVNxh5YPCkqwZHUGZDRoJlZLIVjiJKFHuuSKW7Qds0y1qaWqIABP-sWy0mSkto_MoHKe44Ad17XRKJA-4ALaJh31aN9yMNhn0XPwNf93HDUAfuzqc8O-oXb5RqoFg\u0026h=6EyNOZwokp1748uWcKBJx4YiDk6dUpD3gIUqOLKxRzY+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9?api-version=2023-07-01-preview\u0026t=638650874501388503\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPy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Z4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=eRDbl4zLIUZ7Ao89EJkfXIS2i4LZNBu3nAEipci0ev_1GBT9R6sUiNBcHfD6MW42lS7_agYxgku8JSts_jT8yZskaf7OWPhABnhgHAz4walJDJGaej1o17-zx-I-YHH0VNqq7lcDql3EH9_tJAx9sx0pks-8Xy94IyWqZskUhFo9nQamw-UBmksj-NsSdMQaw7OuCDnxVbxO-5KVmO2LkjzSBbVNxh5YPCkqwZHUGZDRoJlZLIVjiJKFHuuSKW7Qds0y1qaWqIABP-sWy0mSkto_MoHKe44Ad17XRKJA-4ALaJh31aN9yMNhn0XPwNf93HDUAfuzqc8O-oXb5RqoFg\u0026h=6EyNOZwokp1748uWcKBJx4YiDk6dUpD3gIUqOLKxRzY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "2ccc1c73-9dac-4de0-b863-dc7cd5381906" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "96f160d3-adc8-4f7f-9431-193577cfe713" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "96f160d3-adc8-4f7f-9431-193577cfe713" ], + "x-ms-correlation-request-id": [ "96f160d3-adc8-4f7f-9431-193577cfe713" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060415Z:96f160d3-adc8-4f7f-9431-193577cfe713" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E6743BD458B145B094FAB5902487AFE7 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:15Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9\",\"startTime\":\"2024-10-21T06:04:10.0000000Z\",\"endTime\":\"2024-10-21T06:04:11.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9?api-version=2023-07-01-preview\u0026t=638650874501544792\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBB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G2w0tj2XFtTgA\u0026h=cZh2oUxEMCxasbyV8Gd27lzgiGazCNSzhGmWiLW5Sg4+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9?api-version=2023-07-01-preview\u0026t=638650874501544792\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQ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2wSTMxgFQpMwuWu3obOsAkXd5l2zB-YiueDPHb--WMKg5ktMv3lv5ssX11CQAEZLY8RIpDDWXjf4T9AG2w0tj2XFtTgA\u0026h=cZh2oUxEMCxasbyV8Gd27lzgiGazCNSzhGmWiLW5Sg4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "2ccc1c73-9dac-4de0-b863-dc7cd5381906" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "ef366f60-2ca1-4513-ac3d-7748236ab494" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "ef366f60-2ca1-4513-ac3d-7748236ab494" ], + "x-ms-correlation-request-id": [ "ef366f60-2ca1-4513-ac3d-7748236ab494" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060415Z:ef366f60-2ca1-4513-ac3d-7748236ab494" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 911E6F97865A4E0A81BFA481D0CE2061 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:15Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:14 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "34c0af7d-5d29-4320-aeb8-d0572fe8fff4" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "35af6578-1d18-4053-8cf6-3f967730a55c" ], + "x-ms-correlation-request-id": [ "35af6578-1d18-4053-8cf6-3f967730a55c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060416Z:35af6578-1d18-4053-8cf6-3f967730a55c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FB764D92143748BAB210999B32F5C7B3 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:16Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "333" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "1b9f3922-6536-41b6-8bd3-981f2acd633e" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=?api-version=2023-07-01-preview\u0026t=638650874628026037\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4W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-lKML14SO-7Y0Tg" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "1b9f3922-6536-41b6-8bd3-981f2acd633e" ], + "x-ms-correlation-request-id": [ "1b9f3922-6536-41b6-8bd3-981f2acd633e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060422Z:1b9f3922-6536-41b6-8bd3-981f2acd633e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CF76B0D030F14817A5048CAFFAB94971 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:21Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"7401a880-0000-0800-0000-6715eee60000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35\",\"name\":\"psdnsresolverpolicyforlinkname353hj35\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:04:22.5994623Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:04:22.5994623Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25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HAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=NN6LAU4Yh4Lx0iUNhWCfpIVs6Uj6I977qfbVSKE_FwL_7i73Gt9azXX5N7O3FVxhiawUF7P2MtoammgSSDQAgq5AA3mCqJmqtbvr6l7qE4cTCWhP2KVHOjn9cla8xZxlx2SUIZb_CFslXcpnXAYDNBbfaJOKfVebjsKaQkb9oKKHC6HKRMP9Q4ayPgf9oJKZAn494ky-k5N8U1t5OEEnmcNpHFnn5YPuToxxkgEuTYbM8h8aj18fi4AEyioslAlpDMb09i5tsYVc10xhFMOmq3ioQgv_cz069H3g_j5EXPdg2C0HP1Rr8q6xgEZR5ywYLr71Aqm0hND7lc6Hr0M-NQ\u0026h=a4pJjtCe7xo5ANfqWFKO6sc3Wsr5-lKML14SO-7Y0Tg+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=?api-version=2023-07-01-preview\u0026t=638650874628026037\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBA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Base64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "d0bf172b-96f6-472d-841f-0935d338e297" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "98e336ff-190b-401d-b008-89417f3a27e7" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "98e336ff-190b-401d-b008-89417f3a27e7" ], + "x-ms-correlation-request-id": [ "98e336ff-190b-401d-b008-89417f3a27e7" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060428Z:98e336ff-190b-401d-b008-89417f3a27e7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9F90453B24AF436B95F0F61BC82BDC3D Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:27Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=\",\"startTime\":\"2024-10-21T06:04:22.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=?api-version=2023-07-01-preview\u0026t=638650874628026037\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qn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ammgSSDQAgq5AA3mCqJmqtbvr6l7qE4cTCWhP2KVHOjn9cla8xZxlx2SUIZb_CFslXcpnXAYDNBbfaJOKfVebjsKaQkb9oKKHC6HKRMP9Q4ayPgf9oJKZAn494ky-k5N8U1t5OEEnmcNpHFnn5YPuToxxkgEuTYbM8h8aj18fi4AEyioslAlpDMb09i5tsYVc10xhFMOmq3ioQgv_cz069H3g_j5EXPdg2C0HP1Rr8q6xgEZR5ywYLr71Aqm0hND7lc6Hr0M-NQ\u0026h=a4pJjtCe7xo5ANfqWFKO6sc3Wsr5-lKML14SO-7Y0Tg+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=?api-version=2023-07-01-preview\u0026t=638650874628026037\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2O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4Lx0iUNhWCfpIVs6Uj6I977qfbVSKE_FwL_7i73Gt9azXX5N7O3FVxhiawUF7P2MtoammgSSDQAgq5AA3mCqJmqtbvr6l7qE4cTCWhP2KVHOjn9cla8xZxlx2SUIZb_CFslXcpnXAYDNBbfaJOKfVebjsKaQkb9oKKHC6HKRMP9Q4ayPgf9oJKZAn494ky-k5N8U1t5OEEnmcNpHFnn5YPuToxxkgEuTYbM8h8aj18fi4AEyioslAlpDMb09i5tsYVc10xhFMOmq3ioQgv_cz069H3g_j5EXPdg2C0HP1Rr8q6xgEZR5ywYLr71Aqm0hND7lc6Hr0M-NQ\u0026h=a4pJjtCe7xo5ANfqWFKO6sc3Wsr5-lKML14SO-7Y0Tg", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "d0bf172b-96f6-472d-841f-0935d338e297" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3578e734-5e9b-4035-a615-a084f2050ab2" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3578e734-5e9b-4035-a615-a084f2050ab2" ], + "x-ms-correlation-request-id": [ "3578e734-5e9b-4035-a615-a084f2050ab2" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060458Z:3578e734-5e9b-4035-a615-a084f2050ab2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 43183FD8F893447A995A19232FAB308A Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:58Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=\",\"startTime\":\"2024-10-21T06:04:22.0000000Z\",\"endTime\":\"2024-10-21T06:04:28.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "d0bf172b-96f6-472d-841f-0935d338e297" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3e72874b-27c8-4dab-9958-bd0f258f1d13" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3e72874b-27c8-4dab-9958-bd0f258f1d13" ], + "x-ms-correlation-request-id": [ "3e72874b-27c8-4dab-9958-bd0f258f1d13" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060458Z:3e72874b-27c8-4dab-9958-bd0f258f1d13" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1F076CFBCA5F4596A1651FCE3AD79506 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:58Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "616" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"90e56c19-95e3-4a9a-bb13-59de918ef11a\"},\"etag\":\"\\\"2c000e44-0000-0800-0000-6715eeec0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35\",\"name\":\"psdnsresolverpolicyforlinkname353hj35\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:04:22.5994623Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:04:22.5994623Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname353hj35\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "279" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "bd9e8dae-5c0c-4d8c-ae7e-8f40ca123723" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImIxOTdlZjg5LWQ4NDUtNDNkNy05MjkyLWNiNTRiYTIwZDBjNCJ9?api-version=2023-07-01-preview\u0026t=638650875004160423\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgY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uWscJthnxrWRK2X1CtvzED9Zw9c2I8HlUfhJ2PFrWha_8CcJ129dCqZcpeFdMH8Z5YflyJ7JRmyEY41PBL7RQQ\u0026h=SOrD2fKzKSAsPlUOG3LdT3-dLUYIpc9Q1JYPCElIWpQ" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "bd9e8dae-5c0c-4d8c-ae7e-8f40ca123723" ], + "x-ms-correlation-request-id": [ "bd9e8dae-5c0c-4d8c-ae7e-8f40ca123723" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060500Z:bd9e8dae-5c0c-4d8c-ae7e-8f40ca123723" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B01DDDD3BF7347038DD445534CECAD5D Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:59Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "837" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname353hj35\"},\"provisioningState\":\"Creating\"},\"etag\":\"\\\"2c00de48-0000-0800-0000-6715ef0c0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35\",\"name\":\"psdnsresolverpolicylinkname353hj35\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:05:00.1035399Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:05:00.1035399Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImIxOTdlZjg5LWQ4NDUtNDNkNy05MjkyLWNiNTRiYTIwZDBjNCJ9?api-version=2023-07-01-preview\u0026t=638650875004160423\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSv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LuAkUP_kzzFsMuEvgWJNQPv_AL9G2eH9aDaDBE4oCuP1XNGoLv9vUiE2Q6fauD_q08EQ7AycXNjb2GAbiUjdYvv-9yNlUeH3dWSKb0XIx6tBQjgjXLldNMuWscJthnxrWRK2X1CtvzED9Zw9c2I8HlUfhJ2PFrWha_8CcJ129dCqZcpeFdMH8Z5YflyJ7JRmyEY41PBL7RQQ\u0026h=SOrD2fKzKSAsPlUOG3LdT3-dLUYIpc9Q1JYPCElIWpQ+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImIxOTdlZjg5LWQ4NDUtNDNkNy05MjkyLWNiNTRiYTIwZDBjNCJ9?api-version=2023-07-01-preview\u0026t=638650875004160423\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH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BKNd2F4UahH-LqauNnuChEfs7YOg9ElEGN6pVMIFLwP0-J5Vsz_wXK-qwLdVK0R5kCXzow-mv7Giaza4OUNgZ4bWopO0viAZXBxjnVsEXd0LYKN6JSk4m1MDLuAkUP_kzzFsMuEvgWJNQPv_AL9G2eH9aDaDBE4oCuP1XNGoLv9vUiE2Q6fauD_q08EQ7AycXNjb2GAbiUjdYvv-9yNlUeH3dWSKb0XIx6tBQjgjXLldNMuWscJthnxrWRK2X1CtvzED9Zw9c2I8HlUfhJ2PFrWha_8CcJ129dCqZcpeFdMH8Z5YflyJ7JRmyEY41PBL7RQQ\u0026h=SOrD2fKzKSAsPlUOG3LdT3-dLUYIpc9Q1JYPCElIWpQ", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "541e5ce8-d934-47cc-88c5-91c2ccec7bb8" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f65c683f-d36d-4521-930a-69d386aca59a" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f65c683f-d36d-4521-930a-69d386aca59a" ], + "x-ms-correlation-request-id": [ "f65c683f-d36d-4521-930a-69d386aca59a" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060505Z:f65c683f-d36d-4521-930a-69d386aca59a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 259406FAC3D843EEA4B64334D6BC50D3 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:05Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImIxOTdlZjg5LWQ4NDUtNDNkNy05MjkyLWNiNTRiYTIwZDBjNCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImIxOTdlZjg5LWQ4NDUtNDNkNy05MjkyLWNiNTRiYTIwZDBjNCJ9\",\"startTime\":\"2024-10-21T06:05:00.0000000Z\",\"endTime\":\"2024-10-21T06:05:02.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "541e5ce8-d934-47cc-88c5-91c2ccec7bb8" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8b04df55-7bce-4c16-9de1-bf3b0127927e" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "8b04df55-7bce-4c16-9de1-bf3b0127927e" ], + "x-ms-correlation-request-id": [ "8b04df55-7bce-4c16-9de1-bf3b0127927e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060505Z:8b04df55-7bce-4c16-9de1-bf3b0127927e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E618467FD82D4D77ABA6843B231B046B Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:05Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "838" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname353hj35\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c004e49-0000-0800-0000-6715ef0e0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35\",\"name\":\"psdnsresolverpolicylinkname353hj35\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:05:00.1035399Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:05:00.1035399Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "28045fcd-0ca0-43da-87d3-82f554f25b57" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "fe6d1357-802a-497b-aeeb-7124778b6d89" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "fe6d1357-802a-497b-aeeb-7124778b6d89" ], + "x-ms-correlation-request-id": [ "fe6d1357-802a-497b-aeeb-7124778b6d89" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060507Z:fe6d1357-802a-497b-aeeb-7124778b6d89" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7812C9A3A6E34927AAC1D6A3167DADA2 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:06Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "838" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname353hj35\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c004e49-0000-0800-0000-6715ef0e0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35\",\"name\":\"psdnsresolverpolicylinkname353hj35\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:05:00.1035399Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:05:00.1035399Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview+9": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "b1e9a4f3-04df-48d7-ba97-0968beaeca19" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVy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-95ee-0259639daf01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9?api-version=2023-07-01-preview\u0026t=638650875085067607\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQY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OyWqn7QskJ3i7srER1mToFVEbVZIkPJxOvP1FIe3yBbjC4RIb4y0PnL5mTjIDiAFINtMEA\u0026h=8IJ-TkuR0R91LZ5mwI8xm2BUJPBvAdNaMuKlQz4zf24" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "2de282dc-8fc8-41b6-95ee-0259639daf01" ], + "x-ms-correlation-request-id": [ "2de282dc-8fc8-41b6-95ee-0259639daf01" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060508Z:2de282dc-8fc8-41b6-95ee-0259639daf01" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2604A34EC23C43DDB812C7DFEFF31ED6 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:07Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:07 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9?api-version=2023-07-01-preview\u0026t=638650875085067607\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgY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cNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=UwYqKUbkiJ3gCHzxd0IRdLmZllUuhHmmikUSuILtfFx4laOmd9TGAvz4jUlfJIzsCJD5ab0Xjz8N9eY8AGifvEUdLn-LyttsELjIwmYH8MoO1Y31eM33IMabOzDK95FJ9iE3cgLi6llsl1jVvXiIYsrL3lH4Oz0ZsOhbCyNNkyW7TJ2wsxMBSrbnotxs-jkno1bT4WHR7qX4a-nCZkK1XFFZo57Pt5d8LSJioY4HgdVW1kDjAZfTLIoQHELzvwTL6lBSnNLZ_wjKsVOfOyWqn7QskJ3i7srER1mToFVEbVZIkPJxOvP1FIe3yBbjC4RIb4y0PnL5mTjIDiAFINtMEA\u0026h=8IJ-TkuR0R91LZ5mwI8xm2BUJPBvAdNaMuKlQz4zf24+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9?api-version=2023-07-01-preview\u0026t=638650875085067607\u0026c=MIIHpTCCBo2gAw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AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=UwYqKUbkiJ3gCHzxd0IRdLmZllUuhHmmikUSuILtfFx4laOmd9TGAvz4jUlfJIzsCJD5ab0Xjz8N9eY8AGifvEUdLn-LyttsELjIwmYH8MoO1Y31eM33IMabOzDK95FJ9iE3cgLi6llsl1jVvXiIYsrL3lH4Oz0ZsOhbCyNNkyW7TJ2wsxMBSrbnotxs-jkno1bT4WHR7qX4a-nCZkK1XFFZo57Pt5d8LSJioY4HgdVW1kDjAZfTLIoQHELzvwTL6lBSnNLZ_wjKsVOfOyWqn7QskJ3i7srER1mToFVEbVZIkPJxOvP1FIe3yBbjC4RIb4y0PnL5mTjIDiAFINtMEA\u0026h=8IJ-TkuR0R91LZ5mwI8xm2BUJPBvAdNaMuKlQz4zf24", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "b1e9a4f3-04df-48d7-ba97-0968beaeca19" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a66ccf53-2c18-4327-9dbc-1cdadfca1374" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a66ccf53-2c18-4327-9dbc-1cdadfca1374" ], + "x-ms-correlation-request-id": [ "a66ccf53-2c18-4327-9dbc-1cdadfca1374" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060513Z:a66ccf53-2c18-4327-9dbc-1cdadfca1374" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7545A103AD0940819E7396283211B15A Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:13Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9\",\"startTime\":\"2024-10-21T06:05:08.0000000Z\",\"endTime\":\"2024-10-21T06:05:09.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9?api-version=2023-07-01-preview\u0026t=638650875085223852\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTb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GANL7XpnDcTKSGxiq82XX8GgQiYfQTTEYYULB-Nf0xJV9wWJh7m1YoNBnQQQk9kRa_yqvYzLa3mIfjF2oDGiz8bn4F-8zQGcTWcCBLcnaOGGLPBnYcgpK1PRqUKLSqHlkebKfJ7VyCZxm8Dy7ltzGv717pqR9zti_F9WgHf6GridbQa2Ui9Ohj7Xr1S_ov86APvGh1RRWW1OkQNcZ8iw\u0026h=53ek2z2s0_RrU-9whyEfBszrO7oFOoQEClVkBxkjfAM+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9?api-version=2023-07-01-preview\u0026t=638650875085223852\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzEL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ZZfbEXHQcrPhGp5lbAhhECP5R5XL3XN52cyGdc_y8KEYQfgW_YSy8RlCwVXp-4wWRSwcXl0rx4vGkc_hCf837OeTvq0MvrBl29wb5l3l_jEDIBhENpGANL7XpnDcTKSGxiq82XX8GgQiYfQTTEYYULB-Nf0xJV9wWJh7m1YoNBnQQQk9kRa_yqvYzLa3mIfjF2oDGiz8bn4F-8zQGcTWcCBLcnaOGGLPBnYcgpK1PRqUKLSqHlkebKfJ7VyCZxm8Dy7ltzGv717pqR9zti_F9WgHf6GridbQa2Ui9Ohj7Xr1S_ov86APvGh1RRWW1OkQNcZ8iw\u0026h=53ek2z2s0_RrU-9whyEfBszrO7oFOoQEClVkBxkjfAM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "b1e9a4f3-04df-48d7-ba97-0968beaeca19" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "afac0834-7b97-4560-b6e0-9fcce1c009cd" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "afac0834-7b97-4560-b6e0-9fcce1c009cd" ], + "x-ms-correlation-request-id": [ "afac0834-7b97-4560-b6e0-9fcce1c009cd" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060514Z:afac0834-7b97-4560-b6e0-9fcce1c009cd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5EFFA351A2F1437CA202DB9B9A9C92FC Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:13Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:13 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "e0085466-2219-470e-9d17-4e1fc1f9a832" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "827f63c4-7932-4bb2-9414-52d4cd21100d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "827f63c4-7932-4bb2-9414-52d4cd21100d" ], + "x-ms-correlation-request-id": [ "827f63c4-7932-4bb2-9414-52d4cd21100d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060515Z:827f63c4-7932-4bb2-9414-52d4cd21100d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4FBEC840504B4368AD4A803C50951902 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:14Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "363" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"details\":null,\"code\":\"NotFound\",\"message\":\"DNS resolver policy link not found in database. dnsResolverPolicyLinkResourceId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworksLinks/psdnsresolverpolicylinkname353hj35\",\"target\":null}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 new file mode 100644 index 000000000000..68e75158fe88 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 @@ -0,0 +1,57 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzDnsResolverPolicyVirtualNetworkLink')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzDnsResolverPolicyVirtualNetworkLink.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzDnsResolverPolicyVirtualNetworkLink' { + It 'Deletes a dns resolver policy virtual network link' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinkname7sadjfa"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinkname7sadjfa"; + $virtualNetworkName = "psvirtualnetworkforlinkname7sadjfa"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $vnet.Id + + # ACT + $updatedDnsResolverPolicyLink = Remove-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + { Get-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName } | Should -Throw + } + + It 'Deletes a dns resolver policy virtual network link via identity' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinkname353hj35"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinkname353hj35"; + $virtualNetworkName = "psvirtualnetworkforlinkname353hj35"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $vnet.Id + + # ACT - ASSERT + Get-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName | Remove-AzDnsResolverPolicyVirtualNetworkLink + + # ASSERT + { Get-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName } | Should -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Recording.json new file mode 100644 index 000000000000..d1f1e4d7d797 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Recording.json @@ -0,0 +1,299 @@ +{ + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "8a9a1753-79d6-464c-962a-02a6021abc42" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNhMzg2NjkwLTBmNTgtNDFhMy1iZGJkLTdiZTY3MjgyNWYwOCJ9?api-version=2023-07-01-preview\u0026t=638650819019787410\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmd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rypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=lg3szzwMgUAmcq7cOrMdmB9cPDWOJaZCjAKvEE_DfaQJdEg_3LjwNW0xTsgpqJgI_jGcHf9qJ2Cu4tUNNaSZVTqfuvtm3LDfCUJbkVWV5ocX8lHO3PxZ8-QrnGkASUR4DCoCZb74q6VEe8bQdmfXY6Jm8i4TjWxBIbIBVkAI7WfhsIxDI6jfnVDmiK4jRx8_BCzZbdFivgtDNqLqh3t7J4fpHImzKJd9ff0S3QVXP5gCcNMWbmbkJCcAitO0o9UwLPwHEAyjgN2DxZnQGZoxHSyI0nv8zqpPCsFCD7ZMowHk1fzhFV01Uh23gZR2UZnGNxS1w3VgvIRNJfWBtp37uw\u0026h=RVLllkqNFoMw-vaVJ4JkTw2uewGc4vKJCXZ65lRxZU4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "8a9a1753-79d6-464c-962a-02a6021abc42" ], + "x-ms-correlation-request-id": [ "8a9a1753-79d6-464c-962a-02a6021abc42" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043141Z:8a9a1753-79d6-464c-962a-02a6021abc42" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 67A75CA599DD4189A0A6FB7BFE3EFB40 Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:31:40Z" ], + "Date": [ "Mon, 21 Oct 2024 04:31:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"6e01a449-0000-0800-0000-6715d92d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47\",\"name\":\"psdnsresolverdomainlistname47\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:31:41.7599826Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:31:41.7599826Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNhMzg2NjkwLTBmNTgtNDFhMy1iZGJkLTdiZTY3MjgyNWYwOCJ9?api-version=2023-07-01-preview\u0026t=638650819019787410\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNA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DzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=lg3szzwMgUAmcq7cOrMdmB9cPDWOJaZCjAKvEE_DfaQJdEg_3LjwNW0xTsgpqJgI_jGcHf9qJ2Cu4tUNNaSZVTqfuvtm3LDfCUJbkVWV5ocX8lHO3PxZ8-QrnGkASUR4DCoCZb74q6VEe8bQdmfXY6Jm8i4TjWxBIbIBVkAI7WfhsIxDI6jfnVDmiK4jRx8_BCzZbdFivgtDNqLqh3t7J4fpHImzKJd9ff0S3QVXP5gCcNMWbmbkJCcAitO0o9UwLPwHEAyjgN2DxZnQGZoxHSyI0nv8zqpPCsFCD7ZMowHk1fzhFV01Uh23gZR2UZnGNxS1w3VgvIRNJfWBtp37uw\u0026h=RVLllkqNFoMw-vaVJ4JkTw2uewGc4vKJCXZ65lRxZU4+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNhMzg2NjkwLTBmNTgtNDFhMy1iZGJkLTdiZTY3MjgyNWYwOCJ9?api-version=2023-07-01-preview\u0026t=638650819019787410\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJh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p_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=lg3szzwMgUAmcq7cOrMdmB9cPDWOJaZCjAKvEE_DfaQJdEg_3LjwNW0xTsgpqJgI_jGcHf9qJ2Cu4tUNNaSZVTqfuvtm3LDfCUJbkVWV5ocX8lHO3PxZ8-QrnGkASUR4DCoCZb74q6VEe8bQdmfXY6Jm8i4TjWxBIbIBVkAI7WfhsIxDI6jfnVDmiK4jRx8_BCzZbdFivgtDNqLqh3t7J4fpHImzKJd9ff0S3QVXP5gCcNMWbmbkJCcAitO0o9UwLPwHEAyjgN2DxZnQGZoxHSyI0nv8zqpPCsFCD7ZMowHk1fzhFV01Uh23gZR2UZnGNxS1w3VgvIRNJfWBtp37uw\u0026h=RVLllkqNFoMw-vaVJ4JkTw2uewGc4vKJCXZ65lRxZU4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "84d9a5bd-3b46-4ad1-aa0c-ff6bb5672c9c" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "910f4031-6401-4714-9dc1-6ab36974597d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "910f4031-6401-4714-9dc1-6ab36974597d" ], + "x-ms-correlation-request-id": [ "910f4031-6401-4714-9dc1-6ab36974597d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043147Z:910f4031-6401-4714-9dc1-6ab36974597d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7D5209896F7C481C8EDCE7EE59D9580D Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:31:47Z" ], + "Date": [ "Mon, 21 Oct 2024 04:31:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNhMzg2NjkwLTBmNTgtNDFhMy1iZGJkLTdiZTY3MjgyNWYwOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNhMzg2NjkwLTBmNTgtNDFhMy1iZGJkLTdiZTY3MjgyNWYwOCJ9\",\"startTime\":\"2024-10-21T04:31:41.0000000Z\",\"endTime\":\"2024-10-21T04:31:44.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "84d9a5bd-3b46-4ad1-aa0c-ff6bb5672c9c" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c844838f-ceb3-4ad5-954a-7830ff8d6bd8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c844838f-ceb3-4ad5-954a-7830ff8d6bd8" ], + "x-ms-correlation-request-id": [ "c844838f-ceb3-4ad5-954a-7830ff8d6bd8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043147Z:c844838f-ceb3-4ad5-954a-7830ff8d6bd8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D8D8FCFFF550468682770EEBA25A2B2B Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:31:47Z" ], + "Date": [ "Mon, 21 Oct 2024 04:31:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "648" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0fb5524f-fa60-4d55-846c-1170d79af35a\"},\"etag\":\"\\\"3c00ee32-0000-0800-0000-6715d9300000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47\",\"name\":\"psdnsresolverdomainlistname47\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:31:41.7599826Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:31:41.7599826Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview", + "Content": "{\r\n \"tags\": {\r\n \"keyyjvrh\": \"valueyjvrh\",\r\n \"key3a7bj\": \"value3a7bj\",\r\n \"keygxk01\": \"valuegxk01\",\r\n \"keyrjxgz\": \"valuerjxgz\",\r\n \"key57rne\": \"value57rne\",\r\n \"keyp7ocd\": \"valuep7ocd\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "207" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==?api-version=2023-07-01-preview\u0026t=638650819090191077\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxU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Wvicm35xaL8Lw924htEQeJ0KEIpcw\u0026h=TvJVWHY09V107BT3a7NOZTdqP_xpYIvXTooLaZXfd58" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "0742ebf7-eb32-432d-9eae-3723484fa27d" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==?api-version=2023-07-01-preview\u0026t=638650819090034417\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKI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Y-6SjNcEHzmW6BzmFgxLM8FTlrfLILNps6cdCvm3Z9g_pqo-eR_mAqAckjiZFd9_a67AY6CyF5i05nz9aTxdsAfpfqHhrYPYzAJ-KlockL8MfsYCrhNDVaxvt0xTI0Fg9oqxKHtZJm4NCo6XBM7QtEhWwX2svHig_nHxqNYy8m6Nb8okTUhoFO6Rg\u0026h=UGH3lHGrPHCv_3q2u317fq9t_BgLSbLff5vvaweScq8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "0742ebf7-eb32-432d-9eae-3723484fa27d" ], + "x-ms-correlation-request-id": [ "0742ebf7-eb32-432d-9eae-3723484fa27d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043149Z:0742ebf7-eb32-432d-9eae-3723484fa27d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 661C9CC12B1F4C4597D24C3035F94B43 Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:31:47Z" ], + "Date": [ "Mon, 21 Oct 2024 04:31:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==?api-version=2023-07-01-preview\u0026t=638650819090034417\u0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BkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=roJyaUSKyFrx0XJnwpoWcj7pBReIawR1Nh5Cj2fPEOO1bn8x-UITD9ht3NjchZV_IRTsEHP6R2G-ri-qHqGRQoTguJ9LFO8own1_oHzxdAKyYPF1wYyOOHT6_GdILUDbfl3KjWb2oIhPSW_QvEmbAX4TtvXWSY-6SjNcEHzmW6BzmFgxLM8FTlrfLILNps6cdCvm3Z9g_pqo-eR_mAqAckjiZFd9_a67AY6CyF5i05nz9aTxdsAfpfqHhrYPYzAJ-KlockL8MfsYCrhNDVaxvt0xTI0Fg9oqxKHtZJm4NCo6XBM7QtEhWwX2svHig_nHxqNYy8m6Nb8okTUhoFO6Rg\u0026h=UGH3lHGrPHCv_3q2u317fq9t_BgLSbLff5vvaweScq8+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5M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VgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=roJyaUSKyFrx0XJnwpoWcj7pBReIawR1Nh5Cj2fPEOO1bn8x-UITD9ht3NjchZV_IRTsEHP6R2G-ri-qHqGRQoTguJ9LFO8own1_oHzxdAKyYPF1wYyOOHT6_GdILUDbfl3KjWb2oIhPSW_QvEmbAX4TtvXWSY-6SjNcEHzmW6BzmFgxLM8FTlrfLILNps6cdCvm3Z9g_pqo-eR_mAqAckjiZFd9_a67AY6CyF5i05nz9aTxdsAfpfqHhrYPYzAJ-KlockL8MfsYCrhNDVaxvt0xTI0Fg9oqxKHtZJm4NCo6XBM7QtEhWwX2svHig_nHxqNYy8m6Nb8okTUhoFO6Rg\u0026h=UGH3lHGrPHCv_3q2u317fq9t_BgLSbLff5vvaweScq8", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "4625d4fe-f3ea-4139-ac37-2ff3068df72f" ], + "CommandName": [ "Update-AzDnsResolverDomainList" ], + "FullCommandName": [ "Update-AzDnsResolverDomainList_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c0bbbec4-833a-4410-857f-355fb9fab9b9" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c0bbbec4-833a-4410-857f-355fb9fab9b9" ], + "x-ms-correlation-request-id": [ "c0bbbec4-833a-4410-857f-355fb9fab9b9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043154Z:c0bbbec4-833a-4410-857f-355fb9fab9b9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2E498D6490AE40C59E2285C7329420B9 Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:31:54Z" ], + "Date": [ "Mon, 21 Oct 2024 04:31:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "530" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==\",\"startTime\":\"2024-10-21T04:31:48.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==?api-version=2023-07-01-preview\u0026t=638650819090034417\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9Qt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G-ri-qHqGRQoTguJ9LFO8own1_oHzxdAKyYPF1wYyOOHT6_GdILUDbfl3KjWb2oIhPSW_QvEmbAX4TtvXWSY-6SjNcEHzmW6BzmFgxLM8FTlrfLILNps6cdCvm3Z9g_pqo-eR_mAqAckjiZFd9_a67AY6CyF5i05nz9aTxdsAfpfqHhrYPYzAJ-KlockL8MfsYCrhNDVaxvt0xTI0Fg9oqxKHtZJm4NCo6XBM7QtEhWwX2svHig_nHxqNYy8m6Nb8okTUhoFO6Rg\u0026h=UGH3lHGrPHCv_3q2u317fq9t_BgLSbLff5vvaweScq8+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==?api-version=2023-07-01-preview\u0026t=638650819090034417\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNX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fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=roJyaUSKyFrx0XJnwpoWcj7pBReIawR1Nh5Cj2fPEOO1bn8x-UITD9ht3NjchZV_IRTsEHP6R2G-ri-qHqGRQoTguJ9LFO8own1_oHzxdAKyYPF1wYyOOHT6_GdILUDbfl3KjWb2oIhPSW_QvEmbAX4TtvXWSY-6SjNcEHzmW6BzmFgxLM8FTlrfLILNps6cdCvm3Z9g_pqo-eR_mAqAckjiZFd9_a67AY6CyF5i05nz9aTxdsAfpfqHhrYPYzAJ-KlockL8MfsYCrhNDVaxvt0xTI0Fg9oqxKHtZJm4NCo6XBM7QtEhWwX2svHig_nHxqNYy8m6Nb8okTUhoFO6Rg\u0026h=UGH3lHGrPHCv_3q2u317fq9t_BgLSbLff5vvaweScq8", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "4625d4fe-f3ea-4139-ac37-2ff3068df72f" ], + "CommandName": [ "Update-AzDnsResolverDomainList" ], + "FullCommandName": [ "Update-AzDnsResolverDomainList_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "9e2705c4-c64c-42d4-8a09-429f9f8509e6" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "9e2705c4-c64c-42d4-8a09-429f9f8509e6" ], + "x-ms-correlation-request-id": [ "9e2705c4-c64c-42d4-8a09-429f9f8509e6" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043224Z:9e2705c4-c64c-42d4-8a09-429f9f8509e6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0BE10524F47D454BB8880F3F60B62D97 Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:32:24Z" ], + "Date": [ "Mon, 21 Oct 2024 04:32:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==\",\"startTime\":\"2024-10-21T04:31:48.0000000Z\",\"endTime\":\"2024-10-21T04:31:54.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "4625d4fe-f3ea-4139-ac37-2ff3068df72f" ], + "CommandName": [ "Update-AzDnsResolverDomainList" ], + "FullCommandName": [ "Update-AzDnsResolverDomainList_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "eeb6df6b-3517-4b7c-8b3f-9b32f6956b7a" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "eeb6df6b-3517-4b7c-8b3f-9b32f6956b7a" ], + "x-ms-correlation-request-id": [ "eeb6df6b-3517-4b7c-8b3f-9b32f6956b7a" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043225Z:eeb6df6b-3517-4b7c-8b3f-9b32f6956b7a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E8850635D96B4194BFF7DEE931A5FBEC Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:32:24Z" ], + "Date": [ "Mon, 21 Oct 2024 04:32:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "801" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0fb5524f-fa60-4d55-846c-1170d79af35a\"},\"etag\":\"\\\"3c00d733-0000-0800-0000-6715d93a0000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyyjvrh\":\"valueyjvrh\",\"key3a7bj\":\"value3a7bj\",\"keygxk01\":\"valuegxk01\",\"keyrjxgz\":\"valuerjxgz\",\"key57rne\":\"value57rne\",\"keyp7ocd\":\"valuep7ocd\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47\",\"name\":\"psdnsresolverdomainlistname47\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:31:41.7599826Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:31:48.8159406Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Tests.ps1 new file mode 100644 index 000000000000..319dd25c4910 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzDnsResolverDomainList')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzDnsResolverDomainList.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzDnsResolverDomainList' { + It 'Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname47"; + $resourceGroupName = "powershell-test-rg-debug-update"; + $location = "westus2"; + + $originalDnsResolverDomainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + $tag = GetRandomHashtable -size 5 + + # ACT + $updatedDnsResolverDomainList = Update-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Tag $tag + + # ASSERT + $updatedDnsResolverDomainList | Should -BeSuccessfullyCreated + $updatedDnsResolverDomainList | Should -BeSameAsExpected -ExpectedValue $originalDnsResolverDomainList + $updatedDnsResolverDomainList.Tag.Count | Should -Be $tag.Count + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Recording.json new file mode 100644 index 000000000000..b9fcb8aeccc0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Recording.json @@ -0,0 +1,299 @@ +{ + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "fa638759-e72d-4667-8f11-c2121740a377" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=?api-version=2023-07-01-preview\u0026t=638650820062318700\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqs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7SwznUVsHrG2ruDM5GDAmIFRGr4_DaR5pYrheDIPgJqMxFOOP6bUIjtOyv3Qe1ILt1wAes4FsktvwfYDJNZSTpLxUJ71zQCynIhCxO4DAG5FSJG5SHaY0JYjIYyVGyfgbJ8IN8BzrbRij26Y0sVVerEbrMthFMH23RlqwnSKD--QyhbHDzS8F2FvZRMPhOaKWf2DQ\u0026h=GwKsmfmVut80EvyVAuJhXKPRp4WGXGpOY3UoOaUEWR4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "fa638759-e72d-4667-8f11-c2121740a377" ], + "x-ms-correlation-request-id": [ "fa638759-e72d-4667-8f11-c2121740a377" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043326Z:fa638759-e72d-4667-8f11-c2121740a377" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E66DC1096BDF4CE18FD9D9F089D43DFA Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:33:24Z" ], + "Date": [ "Mon, 21 Oct 2024 04:33:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "557" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"6e017069-0000-0800-0000-6715d9950000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47\",\"name\":\"psdnsresolverpolicyname47\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T04:33:25.9349866Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:33:25.9349866Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=?api-version=2023-07-01-preview\u0026t=638650820062318700\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgj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LxUJ71zQCynIhCxO4DAG5FSJG5SHaY0JYjIYyVGyfgbJ8IN8BzrbRij26Y0sVVerEbrMthFMH23RlqwnSKD--QyhbHDzS8F2FvZRMPhOaKWf2DQ\u0026h=GwKsmfmVut80EvyVAuJhXKPRp4WGXGpOY3UoOaUEWR4+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=?api-version=2023-07-01-preview\u0026t=638650820062318700\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjh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fL52w0qGbkImuRiZV7SwznUVsHrG2ruDM5GDAmIFRGr4_DaR5pYrheDIPgJqMxFOOP6bUIjtOyv3Qe1ILt1wAes4FsktvwfYDJNZSTpLxUJ71zQCynIhCxO4DAG5FSJG5SHaY0JYjIYyVGyfgbJ8IN8BzrbRij26Y0sVVerEbrMthFMH23RlqwnSKD--QyhbHDzS8F2FvZRMPhOaKWf2DQ\u0026h=GwKsmfmVut80EvyVAuJhXKPRp4WGXGpOY3UoOaUEWR4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "22080643-8e47-41a0-a9c5-b0ea5900560b" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a0dba0ba-e49d-4f4d-834b-0b785aab2893" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a0dba0ba-e49d-4f4d-834b-0b785aab2893" ], + "x-ms-correlation-request-id": [ "a0dba0ba-e49d-4f4d-834b-0b785aab2893" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043331Z:a0dba0ba-e49d-4f4d-834b-0b785aab2893" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CF7AEE15623D41E5A9DB58022B18DCE5 Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:33:31Z" ], + "Date": [ "Mon, 21 Oct 2024 04:33:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=\",\"startTime\":\"2024-10-21T04:33:26.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=?api-version=2023-07-01-preview\u0026t=638650820062318700\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc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UaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=1qaI7rXxRH0N4N7QxYpj_Rhr_9snLNdmoBPP-MrMfn-Z0i_DNt50Vpjh7KEe1246rP8yPvLN9420lSIcDPUa5YYCPfTPiUae9mPUysO4PIrLsZ363RDE93uzgLRJqFrlfL52w0qGbkImuRiZV7SwznUVsHrG2ruDM5GDAmIFRGr4_DaR5pYrheDIPgJqMxFOOP6bUIjtOyv3Qe1ILt1wAes4FsktvwfYDJNZSTpLxUJ71zQCynIhCxO4DAG5FSJG5SHaY0JYjIYyVGyfgbJ8IN8BzrbRij26Y0sVVerEbrMthFMH23RlqwnSKD--QyhbHDzS8F2FvZRMPhOaKWf2DQ\u0026h=GwKsmfmVut80EvyVAuJhXKPRp4WGXGpOY3UoOaUEWR4+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=?api-version=2023-07-01-preview\u0026t=638650820062318700\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1F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JKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=1qaI7rXxRH0N4N7QxYpj_Rhr_9snLNdmoBPP-MrMfn-Z0i_DNt50Vpjh7KEe1246rP8yPvLN9420lSIcDPUa5YYCPfTPiUae9mPUysO4PIrLsZ363RDE93uzgLRJqFrlfL52w0qGbkImuRiZV7SwznUVsHrG2ruDM5GDAmIFRGr4_DaR5pYrheDIPgJqMxFOOP6bUIjtOyv3Qe1ILt1wAes4FsktvwfYDJNZSTpLxUJ71zQCynIhCxO4DAG5FSJG5SHaY0JYjIYyVGyfgbJ8IN8BzrbRij26Y0sVVerEbrMthFMH23RlqwnSKD--QyhbHDzS8F2FvZRMPhOaKWf2DQ\u0026h=GwKsmfmVut80EvyVAuJhXKPRp4WGXGpOY3UoOaUEWR4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "22080643-8e47-41a0-a9c5-b0ea5900560b" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "03556c33-e090-4eef-8c58-f3cd4d402a68" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "03556c33-e090-4eef-8c58-f3cd4d402a68" ], + "x-ms-correlation-request-id": [ "03556c33-e090-4eef-8c58-f3cd4d402a68" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043401Z:03556c33-e090-4eef-8c58-f3cd4d402a68" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 468B1FBB40C34ED6A376449043957631 Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:34:01Z" ], + "Date": [ "Mon, 21 Oct 2024 04:34:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=\",\"startTime\":\"2024-10-21T04:33:26.0000000Z\",\"endTime\":\"2024-10-21T04:33:34.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "22080643-8e47-41a0-a9c5-b0ea5900560b" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "fb97f2ec-623b-4d4f-aacb-aea60a0258f1" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "fb97f2ec-623b-4d4f-aacb-aea60a0258f1" ], + "x-ms-correlation-request-id": [ "fb97f2ec-623b-4d4f-aacb-aea60a0258f1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043402Z:fb97f2ec-623b-4d4f-aacb-aea60a0258f1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 29D0C7E555924462BD5B3B239F6D5D6B Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:34:02Z" ], + "Date": [ "Mon, 21 Oct 2024 04:34:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "592" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3b203754-dd66-4da8-8249-8b09a70faad9\"},\"etag\":\"\\\"29005c82-0000-0800-0000-6715d99e0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47\",\"name\":\"psdnsresolverpolicyname47\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T04:33:25.9349866Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:33:25.9349866Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview", + "Content": "{\r\n \"tags\": {\r\n \"key8fu6p\": \"value8fu6p\",\r\n \"keynaxpz\": \"valuenaxpz\",\r\n \"key5mv9s\": \"value5mv9s\",\r\n \"keyd5xju\": \"valued5xju\",\r\n \"keytq72z\": \"valuetq72z\",\r\n \"key1usrc\": \"value1usrc\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "207" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3kiLCJPcGVyYXRpb25JZCI6IjhmNjhjMGRiLWRkYzItNGE5Zi1iMjM2LWNkZGVhOGYwNWRjMSJ9?api-version=2023-07-01-preview\u0026t=638650820434137311\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYI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3QsBbIB49oiI5DNZ-C6vTzA6z28n6Iq3LMS96JMufWbSLPJZRmHhZ8jlyGy0OvV5JTGnQyGVLpRRJuXcLkoTXqTGz21m6TxvA\u0026h=5S2TnWG0xjGPga8Do6tb4EzlbgWPcTxgShwN44o2YRY" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "18e78183-de9e-4188-a166-c679a04acaef" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3kiLCJPcGVyYXRpb25JZCI6IjhmNjhjMGRiLWRkYzItNGE5Zi1iMjM2LWNkZGVhOGYwNWRjMSJ9?api-version=2023-07-01-preview\u0026t=638650820433981017\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpC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JFMiTUGc1fM3AqR7p4m4rsaHI6Hlz7HtB_Xm-NzA05vX_V1S-_YRYtzErIdnX4jjLbpopg7aP-STgy3qz_HtgxD2l2WB5CoVcp6pJK8ewBC6znWplb31ltLus4kUct6T6eNzGXDb3XwYTm31FG-yOulLVGj4DqcdNSXCufHsUwRkXsuadsFLpzvoVxGEZ57rHEcocFIVBmVOO57tDzgHrKpua5ug8jqp0UTFXeLk6z3yqsm8Ze5Nw0GK2ug\u0026h=6mlS22TtIXyLxR24T7S0OthjR6PwmeHO9uEI7nsBjIg" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "18e78183-de9e-4188-a166-c679a04acaef" ], + "x-ms-correlation-request-id": [ "18e78183-de9e-4188-a166-c679a04acaef" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043403Z:18e78183-de9e-4188-a166-c679a04acaef" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1FD6D9553F944B559D1220D494CB56A8 Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:34:02Z" ], + "Date": [ "Mon, 21 Oct 2024 04:34:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3kiLCJPcGVyYXRpb25JZCI6IjhmNjhjMGRiLWRkYzItNGE5Zi1iMjM2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A0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=ECQx8Hiev7Y_f6IdAtOsdqnkRB3TWuafGDt4pgI1be9s7ITEqdGY8eI862qw4ugL4oTap_9piuEUiei7VcQAmKRLwToJFMiTUGc1fM3AqR7p4m4rsaHI6Hlz7HtB_Xm-NzA05vX_V1S-_YRYtzErIdnX4jjLbpopg7aP-STgy3qz_HtgxD2l2WB5CoVcp6pJK8ewBC6znWplb31ltLus4kUct6T6eNzGXDb3XwYTm31FG-yOulLVGj4DqcdNSXCufHsUwRkXsuadsFLpzvoVxGEZ57rHEcocFIVBmVOO57tDzgHrKpua5ug8jqp0UTFXeLk6z3yqsm8Ze5Nw0GK2ug\u0026h=6mlS22TtIXyLxR24T7S0OthjR6PwmeHO9uEI7nsBjIg+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXR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UwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=ECQx8Hiev7Y_f6IdAtOsdqnkRB3TWuafGDt4pgI1be9s7ITEqdGY8eI862qw4ugL4oTap_9piuEUiei7VcQAmKRLwToJFMiTUGc1fM3AqR7p4m4rsaHI6Hlz7HtB_Xm-NzA05vX_V1S-_YRYtzErIdnX4jjLbpopg7aP-STgy3qz_HtgxD2l2WB5CoVcp6pJK8ewBC6znWplb31ltLus4kUct6T6eNzGXDb3XwYTm31FG-yOulLVGj4DqcdNSXCufHsUwRkXsuadsFLpzvoVxGEZ57rHEcocFIVBmVOO57tDzgHrKpua5ug8jqp0UTFXeLk6z3yqsm8Ze5Nw0GK2ug\u0026h=6mlS22TtIXyLxR24T7S0OthjR6PwmeHO9uEI7nsBjIg", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "5e8ce337-83b0-4915-8bfb-e23945c7befb" ], + "CommandName": [ "Update-AzDnsResolverPolicy" ], + "FullCommandName": [ "Update-AzDnsResolverPolicy_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a8c776ab-6fe0-442e-aa38-228165dd7ba8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a8c776ab-6fe0-442e-aa38-228165dd7ba8" ], + "x-ms-correlation-request-id": [ "a8c776ab-6fe0-442e-aa38-228165dd7ba8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043408Z:a8c776ab-6fe0-442e-aa38-228165dd7ba8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6BEFB1142B32439A9A125776919E2CE1 Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:34:08Z" ], + "Date": [ "Mon, 21 Oct 2024 04:34:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3kiLCJPcGVyYXRpb25JZCI6IjhmNjhjMGRiLWRkYzItNGE5Zi1iMjM2LWNkZGVhOGYwNWRjMSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3kiLCJPcGVyYXRpb25JZCI6IjhmNjhjMGRiLWRkYzItNGE5Zi1iMjM2LWNkZGVhOGYwNWRjMSJ9\",\"startTime\":\"2024-10-21T04:34:03.0000000Z\",\"endTime\":\"2024-10-21T04:34:04.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "5e8ce337-83b0-4915-8bfb-e23945c7befb" ], + "CommandName": [ "Update-AzDnsResolverPolicy" ], + "FullCommandName": [ "Update-AzDnsResolverPolicy_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f20d1978-47fc-4716-a747-bdadf140fca8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f20d1978-47fc-4716-a747-bdadf140fca8" ], + "x-ms-correlation-request-id": [ "f20d1978-47fc-4716-a747-bdadf140fca8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043408Z:f20d1978-47fc-4716-a747-bdadf140fca8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5A05ED7904E24EC88AEAF50232CEBB33 Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:34:08Z" ], + "Date": [ "Mon, 21 Oct 2024 04:34:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "744" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3b203754-dd66-4da8-8249-8b09a70faad9\"},\"etag\":\"\\\"29005286-0000-0800-0000-6715d9bc0000\\\"\",\"location\":\"westus2\",\"tags\":{\"key8fu6p\":\"value8fu6p\",\"keynaxpz\":\"valuenaxpz\",\"key5mv9s\":\"value5mv9s\",\"keyd5xju\":\"valued5xju\",\"keytq72z\":\"valuetq72z\",\"key1usrc\":\"value1usrc\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47\",\"name\":\"psdnsresolverpolicyname47\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T04:33:25.9349866Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:34:03.241853Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Tests.ps1 new file mode 100644 index 000000000000..5aa66bfb1e05 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzDnsResolverPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzDnsResolverPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzDnsResolverPolicy' { + It 'Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname47"; + $resourceGroupName = "powershell-test-rg-debug-update"; + $location = "westus2"; + + $originalDnsResolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + $tag = GetRandomHashtable -size 5 + + # ACT + $updatedDnsResolverPolicy = Update-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Tag $tag + + # ASSERT + $updatedDnsResolverPolicy | Should -BeSuccessfullyCreated + $updatedDnsResolverPolicy | Should -BeSameAsExpected -ExpectedValue $originalDnsResolverPolicy + $updatedDnsResolverPolicy.Tag.Count | Should -Be $tag.Count + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Recording.json new file mode 100644 index 000000000000..70372bba6411 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Recording.json @@ -0,0 +1,639 @@ +{ + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5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KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=vTY_HFz5iFy-pLBI0EyOCzT62HMu1jy4-r5fyoOras7LmYPAOC-cTl3cBmLgjWTaSc4FZ9vyzQFNfVvY82aMXdUisdTUJ_04Zr4pamnRA4myNxo0GkAh89QXIPZnqy3FW5Mwg8DjuUhqSrY8_Um5ElFMbUWeIhQvYk2Qaf6XATiCk6TjPBPR4z_ldQANf9zdp4eV0s1rvdyMgJcH_J5pU9gXOnlpAXcsDF4e0pnkQCd70VdH4_p9RPQsBajixkC-hJbR7CkxhKqdBGLbW5O1eAX23-r12Zs-tKE024sgLj3VMZ6HXc5M9UWXxMGLxWawZJPJpwyGYZxd8nOUnL61Yg\u0026h=aPyXYNpU5F6i5gRn7zkCBhD_SQu-Vn5HzlzPiXSvagE" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "40aa1b54-f068-4505-8f2b-f9ff3d3f0b27" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZ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YIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=CEfYwIyO0BkBhEHvexCrXOzbeJs4Jf-KJqNddD39mlS_sWd0v7kE0LBCZSUrTBFzH4EXMQTqpLbsTNK8QA-RQAsVCpUNN1_c6i0b4DMSe0196lV3aWi1wSjVreUFnRspWlS9NxmJau7uAvozSLhVRaWHhmHJGUtdxbra0vmr9cT3-Igk-eJTdJV-lLJUmam5TspC-YdheIxnZ_tFgnoTE_vMIFuVTjdbQZ8z9-xcU0_KLjM1bUid0ZK3Gp_DXa4MNuqO2_PDRH0Os4_6RIqcsF_0NwaPXkgvPhHrMyKtSWfJ3Ig1hPDGjg-l8aa5UeI-Muz0G3ZKH2uhYqWDQ2QnCQ\u0026h=6L8RVBPlIzPZ9d8M2C_674wf4Hn7vcmhEhIsxhJ_8As" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "40aa1b54-f068-4505-8f2b-f9ff3d3f0b27" ], + "x-ms-correlation-request-id": [ "40aa1b54-f068-4505-8f2b-f9ff3d3f0b27" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053551Z:40aa1b54-f068-4505-8f2b-f9ff3d3f0b27" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1990F2E00CC74A5E90628A0D0DD0292B Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:35:50Z" ], + "Date": [ "Mon, 21 Oct 2024 05:35:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"72013f8a-0000-0800-0000-6715e8370000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg\",\"name\":\"psdnsresolverpolicyforrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:18:56.4474739Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:35:51.2392362Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUU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Fsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=CEfYwIyO0BkBhEHvexCrXOzbeJs4Jf-KJqNddD39mlS_sWd0v7kE0LBCZSUrTBFzH4EXMQTqpLbsTNK8QA-RQAsVCpUNN1_c6i0b4DMSe0196lV3aWi1wSjVreUFnRspWlS9NxmJau7uAvozSLhVRaWHhmHJGUtdxbra0vmr9cT3-Igk-eJTdJV-lLJUmam5TspC-YdheIxnZ_tFgnoTE_vMIFuVTjdbQZ8z9-xcU0_KLjM1bUid0ZK3Gp_DXa4MNuqO2_PDRH0Os4_6RIqcsF_0NwaPXkgvPhHrMyKtSWfJ3Ig1hPDGjg-l8aa5UeI-Muz0G3ZKH2uhYqWDQ2QnCQ\u0026h=6L8RVBPlIzPZ9d8M2C_674wf4Hn7vcmhEhIsxhJ_8As+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6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wYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=CEfYwIyO0BkBhEHvexCrXOzbeJs4Jf-KJqNddD39mlS_sWd0v7kE0LBCZSUrTBFzH4EXMQTqpLbsTNK8QA-RQAsVCpUNN1_c6i0b4DMSe0196lV3aWi1wSjVreUFnRspWlS9NxmJau7uAvozSLhVRaWHhmHJGUtdxbra0vmr9cT3-Igk-eJTdJV-lLJUmam5TspC-YdheIxnZ_tFgnoTE_vMIFuVTjdbQZ8z9-xcU0_KLjM1bUid0ZK3Gp_DXa4MNuqO2_PDRH0Os4_6RIqcsF_0NwaPXkgvPhHrMyKtSWfJ3Ig1hPDGjg-l8aa5UeI-Muz0G3ZKH2uhYqWDQ2QnCQ\u0026h=6L8RVBPlIzPZ9d8M2C_674wf4Hn7vcmhEhIsxhJ_8As", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "c8248510-b950-4f15-8018-db548a8d5537" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "956b5168-fa1d-44b3-a61f-a622df010dee" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "498" ], + "x-ms-request-id": [ "956b5168-fa1d-44b3-a61f-a622df010dee" ], + "x-ms-correlation-request-id": [ "956b5168-fa1d-44b3-a61f-a622df010dee" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053556Z:956b5168-fa1d-44b3-a61f-a622df010dee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 39BA6F450F4140FFA6D497DB7A580589 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:35:56Z" ], + "Date": [ "Mon, 21 Oct 2024 05:35:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=\",\"startTime\":\"2024-10-21T05:35:51.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQ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8z9-xcU0_KLjM1bUid0ZK3Gp_DXa4MNuqO2_PDRH0Os4_6RIqcsF_0NwaPXkgvPhHrMyKtSWfJ3Ig1hPDGjg-l8aa5UeI-Muz0G3ZKH2uhYqWDQ2QnCQ\u0026h=6L8RVBPlIzPZ9d8M2C_674wf4Hn7vcmhEhIsxhJ_8As+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv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Se0196lV3aWi1wSjVreUFnRspWlS9NxmJau7uAvozSLhVRaWHhmHJGUtdxbra0vmr9cT3-Igk-eJTdJV-lLJUmam5TspC-YdheIxnZ_tFgnoTE_vMIFuVTjdbQZ8z9-xcU0_KLjM1bUid0ZK3Gp_DXa4MNuqO2_PDRH0Os4_6RIqcsF_0NwaPXkgvPhHrMyKtSWfJ3Ig1hPDGjg-l8aa5UeI-Muz0G3ZKH2uhYqWDQ2QnCQ\u0026h=6L8RVBPlIzPZ9d8M2C_674wf4Hn7vcmhEhIsxhJ_8As", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "c8248510-b950-4f15-8018-db548a8d5537" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e9705f92-f401-4b79-b542-fd5f87dcdc18" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e9705f92-f401-4b79-b542-fd5f87dcdc18" ], + "x-ms-correlation-request-id": [ "e9705f92-f401-4b79-b542-fd5f87dcdc18" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053626Z:e9705f92-f401-4b79-b542-fd5f87dcdc18" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 902ECDD44FEC47F1B168E7FF8936A381 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=\",\"startTime\":\"2024-10-21T05:35:51.0000000Z\",\"endTime\":\"2024-10-21T05:35:57.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "c8248510-b950-4f15-8018-db548a8d5537" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "800df30c-433d-4dc4-8eff-532896e865c3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "800df30c-433d-4dc4-8eff-532896e865c3" ], + "x-ms-correlation-request-id": [ "800df30c-433d-4dc4-8eff-532896e865c3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053627Z:800df30c-433d-4dc4-8eff-532896e865c3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 27F982967BA441C082B6A0ADE78A2B10 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "616" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"02812d67-d7a0-47b9-8deb-c75f46ebb59f\"},\"etag\":\"\\\"2b000265-0000-0800-0000-6715e83d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg\",\"name\":\"psdnsresolverpolicyforrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:18:56.4474739Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:35:51.2392362Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4ZDYtNDA4OS1hNGEyLTY3N2RjYTFiZTRiMiJ9?api-version=2023-07-01-preview\u0026t=638650857884368667\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI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Qc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Lx3obD1yuA3Bv_HokopVtRUJd3Dd7OKQ1-ZhW-nYeLu36FzpNlkW0u0xigsZ2uOmZCRNCt72eCs5kK5W459r-6WmOy5pXYzT8QvGAsx3UZP0lMAI7jvWt49BaLDyXYYEjTg7nqNbluTvgVQMfbk9CO7P3BUMcsTXi2EKgIYE4-qg6bvkSEdtDoyTeBiApC0fsHpH7VduxDqAgwKu08U7PY744amXlbTlzD1OTs5W91lkN2m2QauImnhf56hPjzMvGYphtkeXgEoiQRrgIExDPZWh2zcOAgunu8PSH63cmRQibyVO_XwidklNtSGZ9cwL7RG7MOUYLRtVfsbQW0Xa5Q\u0026h=z7OSgN6MrWpFhzs2b30WI93CRLQ5-vRpecXoTt1JS7c" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "2b9bc967-7bf1-4421-a4d1-1d77fb97ab7d" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4ZDYtNDA4OS1hNGEyLTY3N2RjYTFiZTRiMiJ9?api-version=2023-07-01-preview\u0026t=638650857883899871\u0026c=MIIHpTCC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QBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=g4hKWE4Dljh6ZhtPwBJtn-1VmE7cMWyeN3eNrKXmelPSkzAGI0n_Fd84AYv8wYFO_HJinHpYnDjONL1oChCWsBxpUXlkc5uARjq4JUopzUH0cuUwwbjSwWpaKaK0sX1psVvCl0UISjKYao7lN5GVK5jAvZoGMki3A9lDFoxTABtbn4JglxB4Yh-jkhLYY0iFkONDtDnMGlNQ0avfwgt4CqYvxHilsu0_W0eHlDzb1eiB46v-X8arUcIA7U4B73dtoW2zvdEaqJ0jz38P4zDd4jBBx28sU7DLCyAigss016pOJODHPFtfOcyGzGlWJtngKv014qfQT4gKuJL7XHYnRw\u0026h=vbPgm_cKo_Ml-SGe_2QGME3YN_5oGiED7tytCANg9h4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "2b9bc967-7bf1-4421-a4d1-1d77fb97ab7d" ], + "x-ms-correlation-request-id": [ "2b9bc967-7bf1-4421-a4d1-1d77fb97ab7d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053628Z:2b9bc967-7bf1-4421-a4d1-1d77fb97ab7d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6DD9DA6DC8794AE89454C811ABF224C3 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:27Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "637" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7201cf93-0000-0800-0000-6715e85c0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\",\"name\":\"psdnsresolverdomainlistforrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:03.4480599Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:28.1868587Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4ZDYtNDA4OS1hNGEyLTY3N2RjYTFiZTRiMiJ9?api-version=2023-07-01-preview\u0026t=638650857883899871\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLG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AGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=g4hKWE4Dljh6ZhtPwBJtn-1VmE7cMWyeN3eNrKXmelPSkzAGI0n_Fd84AYv8wYFO_HJinHpYnDjONL1oChCWsBxpUXlkc5uARjq4JUopzUH0cuUwwbjSwWpaKaK0sX1psVvCl0UISjKYao7lN5GVK5jAvZoGMki3A9lDFoxTABtbn4JglxB4Yh-jkhLYY0iFkONDtDnMGlNQ0avfwgt4CqYvxHilsu0_W0eHlDzb1eiB46v-X8arUcIA7U4B73dtoW2zvdEaqJ0jz38P4zDd4jBBx28sU7DLCyAigss016pOJODHPFtfOcyGzGlWJtngKv014qfQT4gKuJL7XHYnRw\u0026h=vbPgm_cKo_Ml-SGe_2QGME3YN_5oGiED7tytCANg9h4+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4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AMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=g4hKWE4Dljh6ZhtPwBJtn-1VmE7cMWyeN3eNrKXmelPSkzAGI0n_Fd84AYv8wYFO_HJinHpYnDjONL1oChCWsBxpUXlkc5uARjq4JUopzUH0cuUwwbjSwWpaKaK0sX1psVvCl0UISjKYao7lN5GVK5jAvZoGMki3A9lDFoxTABtbn4JglxB4Yh-jkhLYY0iFkONDtDnMGlNQ0avfwgt4CqYvxHilsu0_W0eHlDzb1eiB46v-X8arUcIA7U4B73dtoW2zvdEaqJ0jz38P4zDd4jBBx28sU7DLCyAigss016pOJODHPFtfOcyGzGlWJtngKv014qfQT4gKuJL7XHYnRw\u0026h=vbPgm_cKo_Ml-SGe_2QGME3YN_5oGiED7tytCANg9h4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "0b0810fc-a279-4cc3-86c8-93d1efd4cd42" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3cc9e6c9-0d90-4287-8370-3d6acababe62" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3cc9e6c9-0d90-4287-8370-3d6acababe62" ], + "x-ms-correlation-request-id": [ "3cc9e6c9-0d90-4287-8370-3d6acababe62" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053633Z:3cc9e6c9-0d90-4287-8370-3d6acababe62" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EC48E9FB34E54D16AA6E75CF5A8507E5 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:33Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4ZDYtNDA4OS1hNGEyLTY3N2RjYTFiZTRiMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4ZDYtNDA4OS1hNGEyLTY3N2RjYTFiZTRiMiJ9\",\"startTime\":\"2024-10-21T05:36:28.0000000Z\",\"endTime\":\"2024-10-21T05:36:29.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "0b0810fc-a279-4cc3-86c8-93d1efd4cd42" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "2a618de0-8901-4f00-8ab8-76477c18f6da" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "2a618de0-8901-4f00-8ab8-76477c18f6da" ], + "x-ms-correlation-request-id": [ "2a618de0-8901-4f00-8ab8-76477c18f6da" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053634Z:2a618de0-8901-4f00-8ab8-76477c18f6da" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 120D4148A2E64C52A021D792251B7A07 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:34Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "672" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"485dd4bd-fcd4-4471-9732-fa1629bbb643\"},\"etag\":\"\\\"3e00ef3d-0000-0800-0000-6715e85d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\",\"name\":\"psdnsresolverdomainlistforrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:03.4480599Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:28.1868587Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "477" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImVhNjJjMTYwLTM4NzktNGExMS05YjI0LTM0M2ExZjk4MTg0YSJ9?api-version=2023-07-01-preview\u0026t=638650857952113957\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0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umGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=gzbMpKUZAOTqH2ZBgEI12dvy_zV5ASggMYtMl-hgZJQPYy3SmS9SMUwsOMys28hWdHpeQuVj6peaH7rsHOEng7Q66U6kPj4I03wVs0fZjpvPTjBGtMqblDYcXNprf83SL5q_G6Pf3DVSLckON_gih8EQSky1W7l24vQyTCzZW2SxLWGvcbP_Fcur4a3THa0HbuREobyhp9jWHj4Y9TIPAz05hcaVs8N1bXlMPECieEfWu87oue-3V6FeC4RCItAYNYl74aPgtDBppunDSzZ29TgwTi3fbvuvrwdqa7Iia0H7-0cEv2v8pW7q82ncEk5QAOfjNyyAVZt9JMWNkaI6Xw\u0026h=K-gKWJvof17j3YLYfQU64UGtmYQ6FIV7f-oO7sFHbTA" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "05c52c3c-10e9-48b7-8f91-f49c4e33395f" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImVhNjJjMTYwLTM4NzktNGExMS05YjI0LTM0M2ExZjk4MTg0YSJ9?api-version=2023-07-01-preview\u0026t=638650857951957687\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYD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wDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=12X3q_AR-1hn-h3gqX954frYBoOoQGRBp9rB8ygeLafBvbRl4Ls4r_GuFJsrUrKFjSusbw6a5XYMvBrBNhH2ZlpGfN_Cg8fROZeybI0lBuirCuU63WAUnnxkak7pZsfDBGin_59-EddqsyCWRYHa8N4tuqOUUumv1MAifqFp35gFZ7A-217zIg2MAWCEHbzcRtaOBYsEhI4anUIqcWPr2E03mXYZaap74qxz9VnMkw0CSaHt9fJD95zA7E5nm8BH18fWaOxFrTDOrQ7JwLnTAySHMkHXV5VoC5JwRnVk1mR_cZCrKFrO2couituouy6Sk6EUSydtSojVSVzTpFrybg\u0026h=Xthz9i9aT95yhOa2-wDS1VeT9N_LIKFHZ9k-pcAjApE" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "05c52c3c-10e9-48b7-8f91-f49c4e33395f" ], + "x-ms-correlation-request-id": [ "05c52c3c-10e9-48b7-8f91-f49c4e33395f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053635Z:05c52c3c-10e9-48b7-8f91-f49c4e33395f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6FF2203F4722421DBCFF94E715192D4C Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:34Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "990" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2b004569-0000-0800-0000-6715e8630000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg\",\"name\":\"psdnssecurityrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:11.0039319Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:35.0551451Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImVhNjJjMTYwLTM4NzktNGExMS05YjI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QA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=12X3q_AR-1hn-h3gqX954frYBoOoQGRBp9rB8ygeLafBvbRl4Ls4r_GuFJsrUrKFjSusbw6a5XYMvBrBNhH2ZlpGfN_Cg8fROZeybI0lBuirCuU63WAUnnxkak7pZsfDBGin_59-EddqsyCWRYHa8N4tuqOUUumv1MAifqFp35gFZ7A-217zIg2MAWCEHbzcRtaOBYsEhI4anUIqcWPr2E03mXYZaap74qxz9VnMkw0CSaHt9fJD95zA7E5nm8BH18fWaOxFrTDOrQ7JwLnTAySHMkHXV5VoC5JwRnVk1mR_cZCrKFrO2couituouy6Sk6EUSydtSojVSVzTpFrybg\u0026h=Xthz9i9aT95yhOa2-wDS1VeT9N_LIKFHZ9k-pcAjApE+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeX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wYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=12X3q_AR-1hn-h3gqX954frYBoOoQGRBp9rB8ygeLafBvbRl4Ls4r_GuFJsrUrKFjSusbw6a5XYMvBrBNhH2ZlpGfN_Cg8fROZeybI0lBuirCuU63WAUnnxkak7pZsfDBGin_59-EddqsyCWRYHa8N4tuqOUUumv1MAifqFp35gFZ7A-217zIg2MAWCEHbzcRtaOBYsEhI4anUIqcWPr2E03mXYZaap74qxz9VnMkw0CSaHt9fJD95zA7E5nm8BH18fWaOxFrTDOrQ7JwLnTAySHMkHXV5VoC5JwRnVk1mR_cZCrKFrO2couituouy6Sk6EUSydtSojVSVzTpFrybg\u0026h=Xthz9i9aT95yhOa2-wDS1VeT9N_LIKFHZ9k-pcAjApE", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "ca33164f-a203-4c19-85b6-9333f473d7f4" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "ad1708b7-5073-4b8b-bea1-eedcfb49d879" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "ad1708b7-5073-4b8b-bea1-eedcfb49d879" ], + "x-ms-correlation-request-id": [ "ad1708b7-5073-4b8b-bea1-eedcfb49d879" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053640Z:ad1708b7-5073-4b8b-bea1-eedcfb49d879" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 51ACC1F2DE764586BB6A32214440A238 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:40Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImVhNjJjMTYwLTM4NzktNGExMS05YjI0LTM0M2ExZjk4MTg0YSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImVhNjJjMTYwLTM4NzktNGExMS05YjI0LTM0M2ExZjk4MTg0YSJ9\",\"startTime\":\"2024-10-21T05:36:35.0000000Z\",\"endTime\":\"2024-10-21T05:36:37.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "ca33164f-a203-4c19-85b6-9333f473d7f4" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "bfb720ff-a929-4624-af98-d12953d75f25" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "bfb720ff-a929-4624-af98-d12953d75f25" ], + "x-ms-correlation-request-id": [ "bfb720ff-a929-4624-af98-d12953d75f25" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053640Z:bfb720ff-a929-4624-af98-d12953d75f25" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E8C245C115AC4A90AF7B7C5B05DE850B Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:40Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"07002610-0000-0800-0000-6715e8650000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg\",\"name\":\"psdnssecurityrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:11.0039319Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:35.0551451Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"priority\": 101\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "49" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==?api-version=2023-07-01-preview\u0026t=638650858017971487\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjB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JcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=PvHW-qVwsiLEr8UA0Vub0bzrjeuUPtvBZrmjQmcKC1olWhyF5UxwVA_R85LG1FWS6YGWmBeHtvmY5RDVozMY1VKwAlGcdIIJiVck6Q17IsLLTosX4ewhfPn7rD8TptxknOt2Lx2DtlzfX8NgLUvsr212Doi7n-UlI0k7mEaje1mufwuRDiclBO26xeuogmqz5EcgoYfRJj_GiD-EgvKZPdpBh4wIUybrbGX2ATRei2DXppLs91eOXfVi8twltF5BRI9nVULnY_hHFfs8NBcjV619O-puUgwt4tILfhQs3bMc-ODUsnJex5w6DTiwlLSN_sXWbN1FgoX0mlTeCGZ4Rg\u0026h=2Gu_ZmHhdyyWLIKKuWXLbwUXRHFILiKIoqwPnKYs3IE" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "dd365c57-6bab-42ee-9bcb-2be80481a1e4" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==?api-version=2023-07-01-preview\u0026t=638650858017815263\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMM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EBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=a4APMVcYOMdZlWCoTIvt9z55CCpwzY4I4l8t5LlOavuq9MYUkZdR1F3ggotxVeBHcYk5Nu1SrqqY_0Iz9wtrT6MuAai2M1UfLaDJL0MgY4IroB2xtF5fWRaLXtLR-25gM-jUPDWJfh7q6fvqWV4rRrqksBgyU-DSqjuNNIX1UZwqi5Bu2zZvgTbVuuVZ3GzSG_jeD5H8oPu7LZBxrCg0kP_tKft9ecL-ogRYuMFIlQNMV-_GyWW06UXTQwRsnwCFDxM3taEAsALKsFr5tx2LKhDQigQWlUfMBFzyVA7l3BM-F2Jq0P9T7DEujIHjbPp-WyqwIaayegBRUIDrfB_ywA\u0026h=-lQiBDHIXWOZIt8CsosZZ_Upl89VvaK9UGARhs4GRI0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "dd365c57-6bab-42ee-9bcb-2be80481a1e4" ], + "x-ms-correlation-request-id": [ "dd365c57-6bab-42ee-9bcb-2be80481a1e4" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053641Z:dd365c57-6bab-42ee-9bcb-2be80481a1e4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9379507E19354670AB228C87971B662F Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:41Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "59" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":null,\"etag\":null,\"location\":null,\"tags\":null}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==?api-version=2023-07-01-preview\u0026t=638650858017815263\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8Q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LaDJL0MgY4IroB2xtF5fWRaLXtLR-25gM-jUPDWJfh7q6fvqWV4rRrqksBgyU-DSqjuNNIX1UZwqi5Bu2zZvgTbVuuVZ3GzSG_jeD5H8oPu7LZBxrCg0kP_tKft9ecL-ogRYuMFIlQNMV-_GyWW06UXTQwRsnwCFDxM3taEAsALKsFr5tx2LKhDQigQWlUfMBFzyVA7l3BM-F2Jq0P9T7DEujIHjbPp-WyqwIaayegBRUIDrfB_ywA\u0026h=-lQiBDHIXWOZIt8CsosZZ_Upl89VvaK9UGARhs4GRI0+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==?api-version=2023-07-01-preview\u0026t=638650858017815263\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G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4l8t5LlOavuq9MYUkZdR1F3ggotxVeBHcYk5Nu1SrqqY_0Iz9wtrT6MuAai2M1UfLaDJL0MgY4IroB2xtF5fWRaLXtLR-25gM-jUPDWJfh7q6fvqWV4rRrqksBgyU-DSqjuNNIX1UZwqi5Bu2zZvgTbVuuVZ3GzSG_jeD5H8oPu7LZBxrCg0kP_tKft9ecL-ogRYuMFIlQNMV-_GyWW06UXTQwRsnwCFDxM3taEAsALKsFr5tx2LKhDQigQWlUfMBFzyVA7l3BM-F2Jq0P9T7DEujIHjbPp-WyqwIaayegBRUIDrfB_ywA\u0026h=-lQiBDHIXWOZIt8CsosZZ_Upl89VvaK9UGARhs4GRI0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "b69f392e-980c-4f29-b7c1-92a573b833d5" ], + "CommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "636d6822-125b-4cef-a249-2f58e460cec3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "636d6822-125b-4cef-a249-2f58e460cec3" ], + "x-ms-correlation-request-id": [ "636d6822-125b-4cef-a249-2f58e460cec3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053647Z:636d6822-125b-4cef-a249-2f58e460cec3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3FD094FFAB7D479F98CC7ED5DBE1EC6C Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:46Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "514" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==\",\"startTime\":\"2024-10-21T05:36:41.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==?api-version=2023-07-01-preview\u0026t=638650858017815263\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMR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qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=a4APMVcYOMdZlWCoTIvt9z55CCpwzY4I4l8t5LlOavuq9MYUkZdR1F3ggotxVeBHcYk5Nu1SrqqY_0Iz9wtrT6MuAai2M1UfLaDJL0MgY4IroB2xtF5fWRaLXtLR-25gM-jUPDWJfh7q6fvqWV4rRrqksBgyU-DSqjuNNIX1UZwqi5Bu2zZvgTbVuuVZ3GzSG_jeD5H8oPu7LZBxrCg0kP_tKft9ecL-ogRYuMFIlQNMV-_GyWW06UXTQwRsnwCFDxM3taEAsALKsFr5tx2LKhDQigQWlUfMBFzyVA7l3BM-F2Jq0P9T7DEujIHjbPp-WyqwIaayegBRUIDrfB_ywA\u0026h=-lQiBDHIXWOZIt8CsosZZ_Upl89VvaK9UGARhs4GRI0+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==?api-version=2023-07-01-preview\u0026t=638650858017815263\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0B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AQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=a4APMVcYOMdZlWCoTIvt9z55CCpwzY4I4l8t5LlOavuq9MYUkZdR1F3ggotxVeBHcYk5Nu1SrqqY_0Iz9wtrT6MuAai2M1UfLaDJL0MgY4IroB2xtF5fWRaLXtLR-25gM-jUPDWJfh7q6fvqWV4rRrqksBgyU-DSqjuNNIX1UZwqi5Bu2zZvgTbVuuVZ3GzSG_jeD5H8oPu7LZBxrCg0kP_tKft9ecL-ogRYuMFIlQNMV-_GyWW06UXTQwRsnwCFDxM3taEAsALKsFr5tx2LKhDQigQWlUfMBFzyVA7l3BM-F2Jq0P9T7DEujIHjbPp-WyqwIaayegBRUIDrfB_ywA\u0026h=-lQiBDHIXWOZIt8CsosZZ_Upl89VvaK9UGARhs4GRI0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "b69f392e-980c-4f29-b7c1-92a573b833d5" ], + "CommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a68efd3a-9f63-489b-8384-dd5840549f6d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a68efd3a-9f63-489b-8384-dd5840549f6d" ], + "x-ms-correlation-request-id": [ "a68efd3a-9f63-489b-8384-dd5840549f6d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053717Z:a68efd3a-9f63-489b-8384-dd5840549f6d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: BF0A02622EAD4CE5A154040086275BE6 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:37:17Z" ], + "Date": [ "Mon, 21 Oct 2024 05:37:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==\",\"startTime\":\"2024-10-21T05:36:41.0000000Z\",\"endTime\":\"2024-10-21T05:36:47.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "b69f392e-980c-4f29-b7c1-92a573b833d5" ], + "CommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c5d9eadc-b11d-4e0d-aaf0-b16945b2c451" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c5d9eadc-b11d-4e0d-aaf0-b16945b2c451" ], + "x-ms-correlation-request-id": [ "c5d9eadc-b11d-4e0d-aaf0-b16945b2c451" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053718Z:c5d9eadc-b11d-4e0d-aaf0-b16945b2c451" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5127657724104CFD9BD4B0C98BD3D11F Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:37:17Z" ], + "Date": [ "Mon, 21 Oct 2024 05:37:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":101,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"07003610-0000-0800-0000-6715e86f0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg\",\"name\":\"psdnssecurityrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:11.0039319Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:41.7190192Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "07c88218-3aed-4349-8fde-32283435582f" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "72ccde64-f60d-4d88-8392-ad0d577b0da6" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "72ccde64-f60d-4d88-8392-ad0d577b0da6" ], + "x-ms-correlation-request-id": [ "72ccde64-f60d-4d88-8392-ad0d577b0da6" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053718Z:72ccde64-f60d-4d88-8392-ad0d577b0da6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7AED8D958B614995BA8756D2D6768B44 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:37:18Z" ], + "Date": [ "Mon, 21 Oct 2024 05:37:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":101,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"07003610-0000-0800-0000-6715e86f0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg\",\"name\":\"psdnssecurityrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:11.0039319Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:41.7190192Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..a2e7059d6cd1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzDnsResolverPolicyDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzDnsResolverPolicyDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzDnsResolverPolicyDnsSecurityRule' { + It 'Updates a DNS Security Rule' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename5cd8dcg"; + $dnsSecurityRuleName = "psdnssecurityrulename5cd8dcg"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename5cd8dcg"; + $resourceGroupName = "powershell-test-rg-debug-update"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ACT + $securityRule = Update-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Priority 101 + + # ASSERT + $updatedSecurityRule = Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -DnsSecurityRuleName $dnsSecurityRuleName -ResourceGroupName $resourceGroupName + $securityRule.Priority | Should -Be 101 + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Recording.json new file mode 100644 index 000000000000..9e583cff0fef --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Recording.json @@ -0,0 +1,426 @@ +{ + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "a5b3dd25-1eee-4e2f-a993-35bf2db78812" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiO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BlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=vhNm5m7wI1QqCs8Vnc40whi6zRXGGQNFhansbvt28oQSD1VRT0IR7wFT0WGYhAIn3AW7WmdOwsxTZS4OG0Ghihfd9cX6EA8FUr21uXIzroiXp2o7hd0u-7pBCJytpTdU5wrd0y23l9cmNbfpLPwv-QFkWymSUWQG0BBx34FpUcEbGOZn0e2cZRCk3fI7J94Uwgaw7OKA6rM1dTPkY_2An15NSLvSmppd63rYvMmF1K8oreCiE4Rt-p4viJl_YSNYl_L8FQ_mnvnBEcdx9RYFCFsRGbEp8cYo8tLBmTCfSLb2gDiwxLuomV_mF67U-6SUu-nGe7pnqHSjp4ZGSlypqQ\u0026h=-gv51cYwzRdzR5lnBRfY3aVIL0Q0BHf6GzdIO5Jb_5w" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "a5b3dd25-1eee-4e2f-a993-35bf2db78812" ], + "x-ms-correlation-request-id": [ "a5b3dd25-1eee-4e2f-a993-35bf2db78812" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055426Z:a5b3dd25-1eee-4e2f-a993-35bf2db78812" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 473F178598334A92BF5CCEB634F5C941 Ref B: CO6AA3150220011 Ref C: 2024-10-21T05:54:25Z" ], + "Date": [ "Mon, 21 Oct 2024 05:54:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"73019ad0-0000-0800-0000-6715ec920000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh\",\"name\":\"psdnsresolverpolicyforlinknamef2rcmjh\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:54:26.6673266Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:54:26.6673266Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiOTMwZDc0MGUtNWNjZC00YjY2LWI3ZjYtMDg1OTE0OWZkZjY4In0=?api-version=2023-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kAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=vhNm5m7wI1QqCs8Vnc40whi6zRXGGQNFhansbvt28oQSD1VRT0IR7wFT0WGYhAIn3AW7WmdOwsxTZS4OG0Ghihfd9cX6EA8FUr21uXIzroiXp2o7hd0u-7pBCJytpTdU5wrd0y23l9cmNbfpLPwv-QFkWymSUWQG0BBx34FpUcEbGOZn0e2cZRCk3fI7J94Uwgaw7OKA6rM1dTPkY_2An15NSLvSmppd63rYvMmF1K8oreCiE4Rt-p4viJl_YSNYl_L8FQ_mnvnBEcdx9RYFCFsRGbEp8cYo8tLBmTCfSLb2gDiwxLuomV_mF67U-6SUu-nGe7pnqHSjp4ZGSlypqQ\u0026h=-gv51cYwzRdzR5lnBRfY3aVIL0Q0BHf6GzdIO5Jb_5w+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ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BmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=vhNm5m7wI1QqCs8Vnc40whi6zRXGGQNFhansbvt28oQSD1VRT0IR7wFT0WGYhAIn3AW7WmdOwsxTZS4OG0Ghihfd9cX6EA8FUr21uXIzroiXp2o7hd0u-7pBCJytpTdU5wrd0y23l9cmNbfpLPwv-QFkWymSUWQG0BBx34FpUcEbGOZn0e2cZRCk3fI7J94Uwgaw7OKA6rM1dTPkY_2An15NSLvSmppd63rYvMmF1K8oreCiE4Rt-p4viJl_YSNYl_L8FQ_mnvnBEcdx9RYFCFsRGbEp8cYo8tLBmTCfSLb2gDiwxLuomV_mF67U-6SUu-nGe7pnqHSjp4ZGSlypqQ\u0026h=-gv51cYwzRdzR5lnBRfY3aVIL0Q0BHf6GzdIO5Jb_5w", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "40388dd8-ace7-449d-9554-354112d62963" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "07fb1d3b-8ba2-4bc1-999e-93e62e503fb1" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "07fb1d3b-8ba2-4bc1-999e-93e62e503fb1" ], + "x-ms-correlation-request-id": [ "07fb1d3b-8ba2-4bc1-999e-93e62e503fb1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055432Z:07fb1d3b-8ba2-4bc1-999e-93e62e503fb1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D2331678F4F8424E8DD667953870C215 Ref B: CO6AA3150220011 Ref C: 2024-10-21T05:54:32Z" ], + "Date": [ "Mon, 21 Oct 2024 05:54:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiOTMwZDc0MGUtNWNjZC00YjY2LWI3ZjYtMDg1OTE0OWZkZjY4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiOTMwZDc0MGUtNWNjZC00YjY2LWI3ZjYtMDg1OTE0OWZkZjY4In0=\",\"startTime\":\"2024-10-21T05:54:26.0000000Z\",\"endTime\":\"2024-10-21T05:54:28.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "40388dd8-ace7-449d-9554-354112d62963" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "4618864f-727f-4484-a8cb-c929d34f7dca" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "4618864f-727f-4484-a8cb-c929d34f7dca" ], + "x-ms-correlation-request-id": [ "4618864f-727f-4484-a8cb-c929d34f7dca" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055432Z:4618864f-727f-4484-a8cb-c929d34f7dca" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0EDFAD4BCDFE4AE8B4856688DB83070F Ref B: CO6AA3150220011 Ref C: 2024-10-21T05:54:32Z" ], + "Date": [ "Mon, 21 Oct 2024 05:54:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "616" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b8917b4b-716f-432e-9af0-389dd5be9040\"},\"etag\":\"\\\"2b00f3f5-0000-0800-0000-6715ec940000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh\",\"name\":\"psdnsresolverpolicyforlinknamef2rcmjh\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:54:26.6673266Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:54:26.6673266Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknamef2rcmjh\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "279" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "d94ecc62-8ad4-47c7-aa96-e57c1288911d" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImExNjJhYjBmLTZlNTItNDExYi1hZmFlLTY4YWE0ZjhiNDFmOSJ9?api-version=2023-07-01-preview\u0026t=638650868743524154\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQ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UHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Jg_dCMW_pVk_yS5yX0oFtT9eR722yXOTiPectYRwONMdYjmkN-crrJifMXkxi47ofWGDTMCGmMUW_LQeH5UmOYESNW8feHkn8svj0XEyiE1JJx7McMxv-QW8sgAGJbw5qgLDlcwUaRv7xWArkL6iZ3CYZP9JBAREtANZ_BfLMcWIkcs2x2mOdVxo9y8kOCXA-pXPgL2Lzwtlnm_9kHblHQSoV6yYS5cXE6dUs9h2tMGIlzxzJ06JLUiYW4xPeOjbS78KMoIvQQ9BW_WDu7Sw865d_42ET93RZ1guSZSfEQWPDMmpHDT1Amx_KQ6lbUWUpv7PFs6INpWoVa0D-aeayw\u0026h=B9VdxpysRPijEE6S5I6ET7RmyWjIUwIPGKVH2CZ3Yd0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "d94ecc62-8ad4-47c7-aa96-e57c1288911d" ], + "x-ms-correlation-request-id": [ "d94ecc62-8ad4-47c7-aa96-e57c1288911d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055434Z:d94ecc62-8ad4-47c7-aa96-e57c1288911d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B0DF30F514C84E1AB0792F9E7CE42DDF Ref B: CO6AA3150220011 Ref C: 2024-10-21T05:54:33Z" ], + "Date": [ "Mon, 21 Oct 2024 05:54:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "837" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknamef2rcmjh\"},\"provisioningState\":\"Creating\"},\"etag\":\"\\\"2b009ff6-0000-0800-0000-6715ec9a0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh\",\"name\":\"psdnsresolverpolicylinknamef2rcmjh\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T05:54:34.1180348Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:54:34.1180348Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImExNjJhYjBmLTZlNTItNDExYi1hZmFlLTY4YWE0ZjhiNDFmOSJ9?api-version=2023-07-01-preview\u0026t=638650868743524154\u0026c=MIIHpTCCBo2g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d7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Jg_dCMW_pVk_yS5yX0oFtT9eR722yXOTiPectYRwONMdYjmkN-crrJifMXkxi47ofWGDTMCGmMUW_LQeH5UmOYESNW8feHkn8svj0XEyiE1JJx7McMxv-QW8sgAGJbw5qgLDlcwUaRv7xWArkL6iZ3CYZP9JBAREtANZ_BfLMcWIkcs2x2mOdVxo9y8kOCXA-pXPgL2Lzwtlnm_9kHblHQSoV6yYS5cXE6dUs9h2tMGIlzxzJ06JLUiYW4xPeOjbS78KMoIvQQ9BW_WDu7Sw865d_42ET93RZ1guSZSfEQWPDMmpHDT1Amx_KQ6lbUWUpv7PFs6INpWoVa0D-aeayw\u0026h=B9VdxpysRPijEE6S5I6ET7RmyWjIUwIPGKVH2CZ3Yd0+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyY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IwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Jg_dCMW_pVk_yS5yX0oFtT9eR722yXOTiPectYRwONMdYjmkN-crrJifMXkxi47ofWGDTMCGmMUW_LQeH5UmOYESNW8feHkn8svj0XEyiE1JJx7McMxv-QW8sgAGJbw5qgLDlcwUaRv7xWArkL6iZ3CYZP9JBAREtANZ_BfLMcWIkcs2x2mOdVxo9y8kOCXA-pXPgL2Lzwtlnm_9kHblHQSoV6yYS5cXE6dUs9h2tMGIlzxzJ06JLUiYW4xPeOjbS78KMoIvQQ9BW_WDu7Sw865d_42ET93RZ1guSZSfEQWPDMmpHDT1Amx_KQ6lbUWUpv7PFs6INpWoVa0D-aeayw\u0026h=B9VdxpysRPijEE6S5I6ET7RmyWjIUwIPGKVH2CZ3Yd0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "2a0d4365-4890-4931-9caf-ad9a7a76cf11" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "795201c7-bf5e-4ee8-8ee4-ff3a6ebbe705" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "795201c7-bf5e-4ee8-8ee4-ff3a6ebbe705" ], + "x-ms-correlation-request-id": [ "795201c7-bf5e-4ee8-8ee4-ff3a6ebbe705" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055439Z:795201c7-bf5e-4ee8-8ee4-ff3a6ebbe705" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0247F6F43E574808835E906FE6FE4116 Ref B: CO6AA3150220011 Ref C: 2024-10-21T05:54:39Z" ], + "Date": [ "Mon, 21 Oct 2024 05:54:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImExNjJhYjBmLTZlNTItNDExYi1hZmFlLTY4YWE0ZjhiNDFmOSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImExNjJhYjBmLTZlNTItNDExYi1hZmFlLTY4YWE0ZjhiNDFmOSJ9\",\"startTime\":\"2024-10-21T05:54:34.0000000Z\",\"endTime\":\"2024-10-21T05:54:39.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "2a0d4365-4890-4931-9caf-ad9a7a76cf11" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "05fdec95-d699-4292-89d0-314d42c661c8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "05fdec95-d699-4292-89d0-314d42c661c8" ], + "x-ms-correlation-request-id": [ "05fdec95-d699-4292-89d0-314d42c661c8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055440Z:05fdec95-d699-4292-89d0-314d42c661c8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EBC82165EE5E4F1998348B60A293141D Ref B: CO6AA3150220011 Ref C: 2024-10-21T05:54:40Z" ], + "Date": [ "Mon, 21 Oct 2024 05:54:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "838" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknamef2rcmjh\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2b003ff7-0000-0800-0000-6715ec9f0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh\",\"name\":\"psdnsresolverpolicylinknamef2rcmjh\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T05:54:34.1180348Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:54:34.1180348Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": "{\r\n \"tags\": {\r\n \"keydviom\": \"valuedviom\",\r\n \"keysm2xq\": \"valuesm2xq\",\r\n \"keym10kr\": \"valuem10kr\",\r\n \"key209l6\": \"value209l6\",\r\n \"keyi7svd\": \"valuei7svd\",\r\n \"key8a09x\": \"value8a09x\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "207" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiI3MjM1YWEzNi0wMTk5LTRlNjYtYmUxMi04Y2MwNWQwOWJkYWEifQ==?api-version=2023-07-01-preview\u0026t=638650868816483418\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU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7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=X7uZFDdGqX9xaLMuODAIvzaKSgFIFni_pvbIm8L3wpbnYK3OsQn20wz-66ej9frHSlTB-0Vk5urLLrii1-qDx4UTa-PPp_1BxsoUSzM0iZoO1toz4u6_h6cpj9xAHGQZOcCQ2npzU2PUg46fiTof0K1cF_qk0LvWZ9nIikiHoDS2oLbf8A5C1F4UwLqSm9TFJLRRb1i7sYqYsS0z_HnXrhjNlnk_CxLVIGLRDS4A8EuH2LeTIRQXNFSeKRxrtkd1w5ZWXIn3i6mTsgrtV65QgipPnaqFGchOVygzJN2RnDEyIt4a4iiHIl1YlnedRW9-Xa_ZIp5W1E3W-INf9BMl1Q\u0026h=vtbWhIUngw8ogCHWkaRCqphVPE1dViE8ZBs5kMyALS4" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "077b8359-251d-48af-b893-6c6e157b22a4" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiI3MjM1YWEzNi0wMTk5LTRlNjYtYmUxMi04Y2MwNWQwOWJkYWEifQ==?api-version=2023-07-01-pre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ZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=0nf4CBex-AaT1gjgg29E1KjMP6MIydlyqVulPkzRrDyXhSXf5cZi30ZOZJuptyFKT67W-LoMk848mVt1rn42Ob0hXfkui4U0YpzNHoKnyVHSm1ynpqwdSSv_sNPqX5y2pxn_WzCXcmwL3ftzDaX58CreW53m1w-2Dh0xh4nQKZU77FJu-0WH0VPt7QMZXnMJSFGaFokm0UgJBJrmcguEmo5IySTEJKj_pevbSJcUoul7B70KWFQLXb9CxTh3Hedm7OYBmhTsrCUxMymwqhGyneX1sat6yGWc3jwcI4kfvjXnXo3SvhHcBYmIScZg3Xzty5GQsw7JUW5NREOpxfhWiQ\u0026h=W5kL7VVYgtyPb-lHkZQ-GvjRx2-5gk_qtZZ1IS0bHB0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "077b8359-251d-48af-b893-6c6e157b22a4" ], + "x-ms-correlation-request-id": [ "077b8359-251d-48af-b893-6c6e157b22a4" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055441Z:077b8359-251d-48af-b893-6c6e157b22a4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9E2E271044614C01AA150CCC6C2E8B88 Ref B: CO6AA3150220011 Ref C: 2024-10-21T05:54:40Z" ], + "Date": [ "Mon, 21 Oct 2024 05:54:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiI3MjM1YWEzNi0wMTk5LTRlNjYtYmUxMi04Y2MwNWQwOWJkYWEifQ==?api-version=2023-07-01-preview\u0026t=638650868816171292\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPg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srVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=0nf4CBex-AaT1gjgg29E1KjMP6MIydlyqVulPkzRrDyXhSXf5cZi30ZOZJuptyFKT67W-LoMk848mVt1rn42Ob0hXfkui4U0YpzNHoKnyVHSm1ynpqwdSSv_sNPqX5y2pxn_WzCXcmwL3ftzDaX58CreW53m1w-2Dh0xh4nQKZU77FJu-0WH0VPt7QMZXnMJSFGaFokm0UgJBJrmcguEmo5IySTEJKj_pevbSJcUoul7B70KWFQLXb9CxTh3Hedm7OYBmhTsrCUxMymwqhGyneX1sat6yGWc3jwcI4kfvjXnXo3SvhHcBYmIScZg3Xzty5GQsw7JUW5NREOpxfhWiQ\u0026h=W5kL7VVYgtyPb-lHkZQ-GvjRx2-5gk_qtZZ1IS0bHB0+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiI3MjM1YWEzNi0wMTk5LTRlNjYtYmUxMi04Y2MwNWQwOWJkYWEifQ==?api-version=2023-07-01-preview\u0026t=638650868816171292\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJK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BPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=0nf4CBex-AaT1gjgg29E1KjMP6MIydlyqVulPkzRrDyXhSXf5cZi30ZOZJuptyFKT67W-LoMk848mVt1rn42Ob0hXfkui4U0YpzNHoKnyVHSm1ynpqwdSSv_sNPqX5y2pxn_WzCXcmwL3ftzDaX58CreW53m1w-2Dh0xh4nQKZU77FJu-0WH0VPt7QMZXnMJSFGaFokm0UgJBJrmcguEmo5IySTEJKj_pevbSJcUoul7B70KWFQLXb9CxTh3Hedm7OYBmhTsrCUxMymwqhGyneX1sat6yGWc3jwcI4kfvjXnXo3SvhHcBYmIScZg3Xzty5GQsw7JUW5NREOpxfhWiQ\u0026h=W5kL7VVYgtyPb-lHkZQ-GvjRx2-5gk_qtZZ1IS0bHB0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "8f2f804a-106b-4e3f-ac6c-84cf13ca9047" ], + "CommandName": [ "Update-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "ec9b4f71-16f8-4be1-abb2-0720c54c88a4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "ec9b4f71-16f8-4be1-abb2-0720c54c88a4" ], + "x-ms-correlation-request-id": [ "ec9b4f71-16f8-4be1-abb2-0720c54c88a4" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055446Z:ec9b4f71-16f8-4be1-abb2-0720c54c88a4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C3F290DED6EB4D1884811C32743C36AC Ref B: CO6AA3150220011 Ref C: 2024-10-21T05:54:46Z" ], + "Date": [ "Mon, 21 Oct 2024 05:54:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "530" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiI3MjM1YWEzNi0wMTk5LTRlNjYtYmUxMi04Y2MwNWQwOWJkYWEifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiI3MjM1YWEzNi0wMTk5LTRlNjYtYmUxMi04Y2MwNWQwOWJkYWEifQ==\",\"startTime\":\"2024-10-21T05:54:41.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xp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3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=0nf4CBex-AaT1gjgg29E1KjMP6MIydlyqVulPkzRrDyXhSXf5cZi30ZOZJuptyFKT67W-LoMk848mVt1rn42Ob0hXfkui4U0YpzNHoKnyVHSm1ynpqwdSSv_sNPqX5y2pxn_WzCXcmwL3ftzDaX58CreW53m1w-2Dh0xh4nQKZU77FJu-0WH0VPt7QMZXnMJSFGaFokm0UgJBJrmcguEmo5IySTEJKj_pevbSJcUoul7B70KWFQLXb9CxTh3Hedm7OYBmhTsrCUxMymwqhGyneX1sat6yGWc3jwcI4kfvjXnXo3SvhHcBYmIScZg3Xzty5GQsw7JUW5NREOpxfhWiQ\u0026h=W5kL7VVYgtyPb-lHkZQ-GvjRx2-5gk_qtZZ1IS0bHB0+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiI3MjM1YWEzNi0wMTk5LTRlNjYtYmUxMi04Y2MwNWQwOWJkYWEifQ==?api-version=2023-07-01-preview\u0026t=638650868816171292\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAW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b-lHkZQ-GvjRx2-5gk_qtZZ1IS0bHB0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "8f2f804a-106b-4e3f-ac6c-84cf13ca9047" ], + "CommandName": [ "Update-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3dc29b0c-4e50-4205-ac4a-689343843173" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3dc29b0c-4e50-4205-ac4a-689343843173" ], + "x-ms-correlation-request-id": [ "3dc29b0c-4e50-4205-ac4a-689343843173" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055517Z:3dc29b0c-4e50-4205-ac4a-689343843173" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C08FE488195C4DF092E476421C8C7A72 Ref B: CO6AA3150220011 Ref C: 2024-10-21T05:55:17Z" ], + "Date": [ "Mon, 21 Oct 2024 05:55:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiI3MjM1YWEzNi0wMTk5LTRlNjYtYmUxMi04Y2MwNWQwOWJkYWEifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiI3MjM1YWEzNi0wMTk5LTRlNjYtYmUxMi04Y2MwNWQwOWJkYWEifQ==\",\"startTime\":\"2024-10-21T05:54:41.0000000Z\",\"endTime\":\"2024-10-21T05:54:48.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "8f2f804a-106b-4e3f-ac6c-84cf13ca9047" ], + "CommandName": [ "Update-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "b122cb66-c7b9-4cf4-a69f-6f6d59bea0e9" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "b122cb66-c7b9-4cf4-a69f-6f6d59bea0e9" ], + "x-ms-correlation-request-id": [ "b122cb66-c7b9-4cf4-a69f-6f6d59bea0e9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055517Z:b122cb66-c7b9-4cf4-a69f-6f6d59bea0e9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 49E9DF89A4434D4C9A035C1D4B14D6B6 Ref B: CO6AA3150220011 Ref C: 2024-10-21T05:55:17Z" ], + "Date": [ "Mon, 21 Oct 2024 05:55:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "990" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknamef2rcmjh\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2b0015f8-0000-0800-0000-6715eca80000\\\"\",\"location\":\"westus2\",\"tags\":{\"keydviom\":\"valuedviom\",\"keysm2xq\":\"valuesm2xq\",\"keym10kr\":\"valuem10kr\",\"key209l6\":\"value209l6\",\"keyi7svd\":\"valuei7svd\",\"key8a09x\":\"value8a09x\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh\",\"name\":\"psdnsresolverpolicylinknamef2rcmjh\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T05:54:34.1180348Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:54:41.507732Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 new file mode 100644 index 000000000000..4dd6fbfe3fe1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 @@ -0,0 +1,38 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzDnsResolverPolicyVirtualNetworkLink')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzDnsResolverPolicyVirtualNetworkLink.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzDnsResolverPolicyVirtualNetworkLink' { + It 'Updates a DNS resolver policy virtual network link' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinknamef2rcmjh"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinknamef2rcmjh"; + $virtualNetworkName = "psvirtualnetworkforlinknamef2rcmjh"; + $resourceGroupName = "powershell-test-rg-debug-update"; + $location = "westus2"; + + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $vnet.Id + $tag = GetRandomHashtable -size 5 + + # ACT + $updatedDnsResolverPolicyLink = Update-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Tag $tag + + # ASSERT + $updatedDnsResolverPolicyLink.Tag.Count | Should -Be $tag.Count + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/env.json b/src/DnsResolver/DnsResolver.Autorest/test/env.json index 009af519a710..e6d66f047d1a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/env.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/env.json @@ -1,317 +1,15 @@ { - "VirtualNetworkId35": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname359g3hke", - "DnsResolverName30": "psdnsresolvername30vboj51", - "SubnetId55": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname55413bl6/subnets/pssubnetname55j3s2wq", - "VirtualNetworkId57": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname571hzlmg", - "DnsResolverName3": "psdnsresolvername37zfnsj", - "DnsResolverName8": "psdnsresolvername8yrgaj3", - "VirtualNetworkId68": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname684fw3ls", - "InboundEnpointName20": "psinboundendpointname20kf1lz2", - "DnsResolverName50": "psdnsresolvername508klpag", - "SubnetId59": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59qp7ds4/subnets/pssubnetname59xko201", - "VirtualNetworkId67": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname676knc32", - "InboundEnpointName16": "psinboundendpointname16c8yguh", - "InboundEnpointNamePrefix": "psinboundendpointname", - "SubscriptionId": "0e5a46b1-de0b-4ec3-a5d7-dda908b4e076", - "InboundEnpointName65": "psinboundendpointname65l7q0w9", - "DnsResolverName26": "psdnsresolvername26kwngvj", - "InboundEnpointName12": "psinboundendpointname12dy75oz", - "InboundEnpointName25": "psinboundendpointname25c751i3", - "VirtualNetworkId2": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24ojhxt", - "UnpairedVirtualNetwork4": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired41jagm5", - "InboundEnpointName0": "psinboundendpointname03g7850", - "DnsResolverName14": "psdnsresolvername14ec85zr", - "InboundEnpointName3": "psinboundendpointname3clsn34", - "InboundEnpointName24": "psinboundendpointname24a1wn3i", - "SubnetId69": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname69xszewq/subnets/pssubnetname69colmx0", - "DnsResolverName19": "psdnsresolvername19sxylrw", - "InboundEnpointName66": "psinboundendpointname66ltwz52", - "SubnetId39": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname3912z9df/subnets/pssubnetname39lidp4h", - "VirtualNetworkNamePrefix": "psvirtualnetworkname", - "DnsResolverName33": "psdnsresolvername33dyopcj", - "InboundEnpointName36": "psinboundendpointname36ln2fa1", - "VirtualNetworkId33": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname334cbs9q", - "InboundEnpointName10": "psinboundendpointname10wgoy4l", - "InboundEnpointName42": "psinboundendpointname42dkjh0y", - "InboundEnpointName30": "psinboundendpointname30pr4oyv", - "SubnetId19": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19dsvi43/subnets/pssubnetname19f39dwe", - "DnsResolverName59": "psdnsresolvername59a8d3fx", - "DnsResolverName6": "psdnsresolvername6o6fy84", - "InboundEnpointName56": "psinboundendpointname56gnsodi", - "SubnetId64": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname64n7vazg/subnets/pssubnetname64b2jd4y", - "MalformedVirtualNetworkErrorMessage": "Resource ID is not a valid virtual network resource ID", - "SubnetId47": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47m5yn27/subnets/pssubnetname479hdczu", - "InboundEnpointName37": "psinboundendpointname374fg3db", - "InboundEnpointName1": "psinboundendpointname14c0bdl", - "VirtualNetworkId37": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname37v20gm6", - "InboundEnpointName17": "psinboundendpointname17ordng0", - "DnsResolverName32": "psdnsresolvername32ycukis", - "InboundEnpointName28": "psinboundendpointname28cwdu98", - "InboundEnpointName22": "psinboundendpointname22sica2r", - "VirtualNetworkId20": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20pa30vi", - "VirtualNetworkId51": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname51psruyg", - "UnpairedVirtualNetwork8": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired8v4xey3", - "SubnetId17": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17pgtly6/subnets/pssubnetname17xkbapf", - "InboundEnpointName34": "psinboundendpointname34k51l2j", - "InboundEnpointName38": "psinboundendpointname38luke3p", - "SubnetId60": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname60krwyjf/subnets/pssubnetname608t065z", - "VirtualNetworkId50": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname506pefvo", - "VirtualNetworkId52": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname520zrscv", - "InboundEnpointName7": "psinboundendpointname7kvreym", - "DnsResolverName20": "psdnsresolvername20yhdk8u", - "SubnetId10": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1036ftul/subnets/pssubnetname10v91s4r", - "UnpairedVirtualNetwork0": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired03nd5bs", - "VirtualNetworkId58": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname58abifpx", - "DnsResolverName0": "psdnsresolvername0g2v4ik", - "VirtualNetworkId62": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62g6fukz", - "DnsResolverNameForInboundEndpointGet": "psdnsresolvername60689vyn", - "NRP_SIMULATOR_URI": "https://westus2.test.azuremresolver.net:9002", - "InboundEnpointName15": "psinboundendpointname1519fek4", - "DnsResolverName40": "psdnsresolvername40fp6ej5", - "SubnetId18": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18iz4deq/subnets/pssubnetname1830wa1d", - "InboundEnpointName47": "psinboundendpointname47ce78js", - "DnsResolverName47": "psdnsresolvername47a75h8j", - "SubnetId67": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname676knc32/subnets/pssubnetname67dxjb3s", - "DnsResolverName60": "psdnsresolvername60689vyn", - "InboundEnpointName35": "psinboundendpointname35zvam60", - "SubnetId54": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname549j710n/subnets/pssubnetname54b4smxn", - "InboundEnpointName5": "psinboundendpointname5nr3ecm", - "DnsResolverName68": "psdnsresolvername68xeflq6", - "DnsResolverName21": "psdnsresolvername218siqe5", - "DnsResolverName35": "psdnsresolvername350e6rg5", - "SubnetId25": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname25bev7sw/subnets/pssubnetname25vrj741", - "VirtualNetworkId43": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43douipm", - "SubnetId57": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname571hzlmg/subnets/pssubnetname57y5qpd7", - "SubnetId58": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname58abifpx/subnets/pssubnetname582juvpr", - "SubnetId38": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname38l38410/subnets/pssubnetname38p89tg6", - "SubnetId45": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45ugefqp/subnets/pssubnetname45udefx3", - "InboundEnpointName68": "psinboundendpointname6858c94h", - "DnsResolverName45": "psdnsresolvername45z7t1ye", - "DnsResolverName54": "psdnsresolvername54ayxdc0", - "UnpairedVirtualNetwork10": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired104ug1wq", - "VirtualNetworkId40": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40wk6lt4", - "DnsResolverName39": "psdnsresolvername39q0ba3z", - "SubnetId66": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname66bej6la/subnets/pssubnetname66mrvd93", - "SubnetId33": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname334cbs9q/subnets/pssubnetname33qp19ct", - "DnsResolverName27": "psdnsresolvername27jr3iwn", - "DnsResolverName63": "psdnsresolvername63z1svwu", - "VirtualNetworkId17": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17pgtly6", - "VirtualNetworkId9": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname9agzxuh", - "InboundEnpointName53": "psinboundendpointname53myizkw", - "DnsResolverName51": "psdnsresolvername51ki8ber", - "InboundEndpointNamePrefixForGet0": "inboundEndpointNameForGetd5pa8u", - "SubnetId70": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname70faz718/subnets/pssubnetname70fo52ql", - "VirtualNetworkId24": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2445yewv", - "DnsResolverName24": "psdnsresolvername24lpsfze", - "UnpairedVirtualNetwork1": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired1ig46cl", - "UnpairedVirtualNetwork7": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired7748dnu", - "SubnetId68": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname684fw3ls/subnets/pssubnetname68tvg8pq", - "SubnetId40": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40wk6lt4/subnets/pssubnetname40yazj2w", - "VirtualNetworkId48": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48w3dqo5", - "InboundEnpointName45": "psinboundendpointname45q1yvab", - "SubnetId26": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname261af732/subnets/pssubnetname261hlfkw", - "VirtualNetworkId59": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59qp7ds4", - "SubnetId32": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname322s1aud/subnets/pssubnetname323n7bvs", - "VirtualNetworkId13": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname13oij9fb", - "LocationForVirtualNetwork": "westus2", - "InboundEnpointName51": "psinboundendpointname512dwr19", - "VirtualNetworkId32": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname322s1aud", - "InboundEnpointName57": "psinboundendpointname57fcd9ty", - "SubnetId1": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1ery48g/subnets/pssubnetname14jkq6n", - "VirtualNetworkId29": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname296o0y8b", - "VirtualNetworkId12": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname12swtid0", - "DnsResolverName53": "psdnsresolvername53odhkxa", - "SubnetId44": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44g0tcmj/subnets/pssubnetname4485erfd", "ResourceLocation": "westus2", - "VirtualNetworkId11": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname11fn65bt", - "SubnetId5": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname5i1otx7/subnets/pssubnetname5lysa9u", - "InboundEnpointName50": "psinboundendpointname50wyxiln", - "SubnetId36": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname36bvwz7g/subnets/pssubnetname366jp5lz", - "InboundEnpointName29": "psinboundendpointname293mzwrj", - "DnsResolverName41": "psdnsresolvername41nbofa2", - "VirtualNetworkId39": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname3912z9df", - "VirtualNetworkId28": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28sqf4a7", - "SubnetId4": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4bnjorz/subnets/pssubnetname4gvhk80", - "DnsResolverName49": "psdnsresolvername4974yioa", - "InboundEnpointName52": "psinboundendpointname528vyzt7", - "VirtualNetworkId27": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname27l71npa", - "SubnetId51": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname51psruyg/subnets/pssubnetname512kwi6y", - "DnsResolverName28": "psdnsresolvername28govsmy", - "SubnetId61": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname618n3twp/subnets/pssubnetname61rzmco0", - "UnpairedVirtualNetwork9": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired9x3rov0", - "InboundEnpointName69": "psinboundendpointname690q2d36", - "VirtualNetworkId45": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45ugefqp", - "VirtualNetworkId1": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1ery48g", - "InboundEnpointName8": "psinboundendpointname8xvum4g", - "InboundEndpointNamePrefixForGet": "inboundEndpointNameForGet", - "DnsResolverName69": "psdnsresolvername69w26in4", - "DnsResolverName13": "psdnsresolvername1332dkwr", - "VirtualNetworkId6": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname6i064d2", - "DnsResolverName1": "psdnsresolvername1tp8o5f", - "InboundEnpointName49": "psinboundendpointname496d3ug9", - "SubnetId12": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname12swtid0/subnets/pssubnetname12lcymvj", - "InboundEnpointName6": "psinboundendpointname65m7qxu", - "InboundEnpointName18": "psinboundendpointname1807sogp", - "VirtualNetworkId26": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname261af732", - "VirtualNetworkId66": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname66bej6la", - "SubnetId35": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname359g3hke/subnets/pssubnetname35eawdry", - "VirtualNetworkId8": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname8mvb5qf", - "SubnetId20": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20pa30vi/subnets/pssubnetname20v76g4i", - "VirtualNetworkId18": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18iz4deq", - "SubnetId30": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname302mr9nh/subnets/pssubnetname305utljx", - "VirtualNetworkId47": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47m5yn27", - "VirtualNetworkId63": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname637w1hft", - "DnsResolverName29": "psdnsresolvername29ywmn5s", - "SubnetId42": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42msk8ix/subnets/pssubnetname42jrs9p7", - "InboundEndpointNamePrefixForGet1": "inboundEndpointNameForGetkcra69", - "DnsResolverName44": "psdnsresolvername444vsqwi", - "VirtualNetworkId0": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0rfj6iu", - "InboundEnpointName67": "psinboundendpointname671wkma8", - "SubnetId14": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname145jz3i1/subnets/pssubnetname14qfz0nk", - "DnsResolverName38": "psdnsresolvername38vefq5j", - "DnsResolverName52": "psdnsresolvername52ki8yh1", - "SubnetId24": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2445yewv/subnets/pssubnetname24ux2sin", - "InboundEnpointName60": "psinboundendpointname60m83rck", - "VirtualNetworkId49": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname49mnpu8k", - "InboundEnpointName9": "psinboundendpointname9lhc5ed", - "SubnetId37": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname37v20gm6/subnets/pssubnetname37j9upso", - "DnsResolverName9": "psdnsresolvername9zr38p4", - "VirtualNetworkId69": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname69xszewq", - "VirtualNetworkId14": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname145jz3i1", - "SubnetId56": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname566h0jia/subnets/pssubnetname563vt0ow", - "VirtualNetworkId65": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname65hsrmb1", - "InboundEnpointName26": "psinboundendpointname26q4cr38", - "VirtualNetworkId56": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname566h0jia", - "InboundEnpointName33": "psinboundendpointname33j5tunb", - "InboundEnpointName43": "psinboundendpointname43ulwasm", - "DnsResolverName70": "psdnsresolvername70lju81t", - "SubnetId63": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname637w1hft/subnets/pssubnetname637j0hol", - "InboundEnpointName32": "psinboundendpointname325gn49l", - "DnsResolverName22": "psdnsresolvername2278mvg2", - "DnsResolverName36": "psdnsresolvername366eajnv", - "SubnetId11": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname11fn65bt/subnets/pssubnetname119im2ad", - "InboundEnpointName21": "psinboundendpointname211kgvdb", - "DnsResolverName46": "psdnsresolvername46oepgkt", - "VirtualNetworkId16": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16mf3i1g", - "DnsResolverName15": "psdnsresolvername15m89hg2", - "SubnetId22": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22y01d6w/subnets/pssubnetname226u7f4y", - "VirtualNetworkId60": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname60krwyjf", - "VirtualNetworkId25": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname25bev7sw", - "InboundEnpointName23": "psinboundendpointname23ylz984", - "DnsResolverName62": "psdnsresolvername62xj5ywr", - "VirtualNetworkId61": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname618n3twp", - "SubnetId9": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname9agzxuh/subnets/pssubnetname9uy63on", - "SubnetId15": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15rkzqo1/subnets/pssubnetname1530vhb4", - "Tenant": "f686d426-8d16-42db-81b7-ab578e110ccd", - "VirtualNetworkId36": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname36bvwz7g", - "InboundEnpointName58": "psinboundendpointname58i05po8", - "UnpairedVirtualNetwork6": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired68fedpr", - "SubnetId3": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname3h4x6lw/subnets/pssubnetname3g78fix", - "DnsResolverName37": "psdnsresolvername37y5fql1", - "VirtualNetworkId46": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46zbwa0t", - "InboundEndpointNamePrefix": "psinboundendpointname", - "DnsResolverName10": "psdnsresolvername109grnzq", - "DnsResolverName12": "psdnsresolvername12haeznl", - "SubnetId2": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24ojhxt/subnets/pssubnetname2se6t27", - "SubnetId0": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0rfj6iu/subnets/pssubnetname0j7xq9b", - "InboundEnpointName41": "psinboundendpointname41vyujft", - "SubnetId62": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62g6fukz/subnets/pssubnetname627rodkz", - "NumberOfInboundEndpointForGet": 3, - "VirtualNetworkId42": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42msk8ix", - "DnsResolverName7": "psdnsresolvername7wmfh2u", - "InboundEnpointName48": "psinboundendpointname48r2ojh5", - "SubnetId53": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname530qtmgb/subnets/pssubnetname53wi1rmn", - "InboundEnpointName2": "psinboundendpointname2zeq6u0", - "InboundEnpointName39": "psinboundendpointname396t5qew", - "SubnetId7": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname7qn1su4/subnets/pssubnetname7r5hog8", - "DnsResolverName56": "psdnsresolvername56shjpzf", - "VirtualNetworkId7": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname7qn1su4", - "DnsResolverName2": "psdnsresolvername2n2utpl", - "SubnetId31": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31q0aui9/subnets/pssubnetname31fr7dnp", - "DnsResolverName42": "psdnsresolvername42f1xos9", - "DnsResolverName17": "psdnsresolvername17oe08rd", - "DnsResolverName34": "psdnsresolvername34gf4ukd", - "VirtualNetworkId30": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname302mr9nh", - "VirtualNetworkId3": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname3h4x6lw", - "InboundEnpointName40": "psinboundendpointname4039fi0l", - "VirtualNetworkId54": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname549j710n", - "VirtualNetworkId19": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19dsvi43", - "InboundEnpointName31": "psinboundendpointname31j0pnqa", - "DnsResolverName5": "psdnsresolvername5lfvn16", - "InboundEnpointName4": "psinboundendpointname4m23xve", - "VirtualNetworkId23": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23qfz1n0", - "SubnetId23": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23qfz1n0/subnets/pssubnetname23b04wdk", - "SubnetId28": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28sqf4a7/subnets/pssubnetname28vm06ro", - "SubnetId8": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname8mvb5qf/subnets/pssubnetname8x0p1ci", - "InboundEnpointName64": "psinboundendpointname64lo4p2m", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "MalformedVirtualNetworkErrorMessage": "Resource ID is not a valid virtual network resource ID", + "ResourceGroupName": "powershelldnsresolvertestrgktn1pw", + "SubscriptionId": "91ab65d2-c73f-4768-89d0-b061815f258b", "DnsResolverNamePrefix": "psdnsresolvername", - "DnsResolverName31": "psdnsresolvername31eld1wp", - "InboundEnpointName70": "psinboundendpointname705sz2ya", - "DnsResolverName67": "psdnsresolvername67zk0fmo", - "InboundEndpointNamePrefixForGet2": "inboundEndpointNameForGetob83qr", - "SubnetId52": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname520zrscv/subnets/pssubnetname52qs79uf", - "VirtualNetworkId38": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname38l38410", - "VirtualNetworkId70": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname70faz718", - "VirtualNetworkId41": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41len0wo", - "InboundEnpointName61": "psinboundendpointname61fv08ol", - "VirtualNetworkId44": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44g0tcmj", - "VirtualNetworkId34": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname34kb3xpc", - "DnsResolverName66": "psdnsresolvername66gj93i5", - "InboundEnpointName63": "psinboundendpointname63ly08j1", - "SubnetId41": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41len0wo/subnets/pssubnetname41u8is3x", - "SubnetNamePrefix": "pssubnetname", - "InboundEnpointName11": "psinboundendpointname117ey5wb", - "SubnetId65": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname65hsrmb1/subnets/pssubnetname65xy356o", - "SubnetId50": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname506pefvo/subnets/pssubnetname50um5wip", - "SubnetId34": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname34kb3xpc/subnets/pssubnetname34xlo6fi", - "VirtualNetworkId15": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15rkzqo1", - "AddressPrefix": "40.121.0.0/16", - "DnsResolverName18": "psdnsresolvername182rfzon", - "InboundEnpointName55": "psinboundendpointname55pvocmx", - "SubnetId21": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21mwye30/subnets/pssubnetname21v134e2", - "SubnetId16": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16mf3i1g/subnets/pssubnetname16rcqfkt", - "UnpairedVirtualNetwork2": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired2scuvpa", - "InboundEnpointName62": "psinboundendpointname62abcjrs", - "DnsResolverName43": "psdnsresolvername43ws6r24", - "SubnetId27": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname27l71npa/subnets/pssubnetname277ye0u9", - "InboundEnpointName19": "psinboundendpointname19wqt12z", - "DnsResolverName11": "psdnsresolvername11y26fis", - "DnsResolverName16": "psdnsresolvername16yv20os", - "DnsResolverName64": "psdnsresolvername64xlmb6r", - "InboundEnpointName13": "psinboundendpointname13d0jh27", - "SubnetId6": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname6i064d2/subnets/pssubnetname64ukyl3", - "DnsResolverName4": "psdnsresolvername49g0av1", - "VirtualNetworkId4": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4bnjorz", - "InboundEnpointName46": "psinboundendpointname46w4ksfm", - "SubnetId43": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43douipm/subnets/pssubnetname43rpycw4", - "UnpairedVirtualNetwork5": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired5w4jc9d", - "DnsResolverName25": "psdnsresolvername25w5e2yx", - "SubnetId49": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname49mnpu8k/subnets/pssubnetname499ogduh", - "VirtualNetworkId31": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31q0aui9", - "SubnetId29": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname296o0y8b/subnets/pssubnetname29utg5d3", - "VirtualNetworkId55": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname55413bl6", - "DnsResolverName58": "psdnsresolvername58kmfas5", - "DnsResolverName48": "psdnsresolvername487l8tka", - "VirtualNetworkId10": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1036ftul", - "InboundEnpointName27": "psinboundendpointname27xbaj9c", - "InboundEnpointName54": "psinboundendpointname54oebr7k", - "DnsResolverName57": "psdnsresolvername57084gxj", - "SubnetId13": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname13oij9fb/subnets/pssubnetname136ntuz1", - "VirtualNetworkId64": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname64n7vazg", + "VirtualNetworkNamePrefix": "psvirtualnetworkname", "SuccessProvisioningState": "Succeeded", - "InboundEnpointName14": "psinboundendpointname14rg1tji", - "DnsResolverName61": "psdnsresolvername61mxn1oi", - "InboundEnpointName59": "psinboundendpointname59jnys87", - "DnsResolverName55": "psdnsresolvername55cvt1ra", - "VirtualNetworkId22": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22y01d6w", - "InboundEnpointName44": "psinboundendpointname44f4eb5w", - "ResourceGroupName": "powershell-test-rg", - "SubnetId48": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48w3dqo5/subnets/pssubnetname48bqr4ud", - "DnsResolverName65": "psdnsresolvername65wvrh9x", - "VirtualNetworkId21": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21mwye30", - "VirtualNetworkId53": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname530qtmgb", - "SubnetId46": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46zbwa0t/subnets/pssubnetname46ry5et3", - "VirtualNetworkId5": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname5i1otx7", - "UnpairedVirtualNetwork3": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired3by902u", - "DnsResolverName23": "psdnsresolvername23bon8m1" + "InboundEnpointNamePrefix": "psinboundendpointname", + "LocationForVirtualNetwork": "westus2", + "SubnetNamePrefix": "pssubnetname", + "InboundEndpointNamePrefix": "psinboundendpointname", + "AddressPrefix": "40.121.0.0/16" } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/loadEnv.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/loadEnv.ps1 index 6a7c385c6b7d..d2166fb535d4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/loadEnv.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/test/loadEnv.ps1 @@ -1,16 +1,8 @@ # ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- $envFile = 'env.json' if ($TestMode -eq 'live') { diff --git a/src/DnsResolver/DnsResolver.Autorest/test/localEnv.json b/src/DnsResolver/DnsResolver.Autorest/test/localEnv.json deleted file mode 100644 index e87538a320aa..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/test/localEnv.json +++ /dev/null @@ -1,306 +0,0 @@ -{ - "InboundEnpointName51": "psinboundendpointname517xu1km", - "NRP_SIMULATOR_URI": "https://eastus2.test.azuremresolver.net:9002", - "DnsResolverName21": "psdnsresolvername21ghsc97", - "DnsResolverName63": "psdnsresolvername63gi3cxs", - "DnsResolverName36": "psdnsresolvername36z26hs5", - "SubnetId34": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname34h9a8zc/subnets/pssubnetname34n15cze", - "DnsResolverName37": "psdnsresolvername37e7guhj", - "VirtualNetworkNamePrefix": "psvirtualnetworkname", - "SubnetId48": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48tqzly6/subnets/pssubnetname485fxv1a", - "DnsResolverName22": "psdnsresolvername224nkhve", - "AddressPrefix": "40.121.0.0/16", - "VirtualNetworkId57": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57a2bg79", - "VirtualNetworkId46": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname465reqi1", - "SubnetId53": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname53zdp3i7/subnets/pssubnetname53ax3kjs", - "DnsResolverNamePrefix": "psdnsresolvername", - "DnsResolverName68": "psdnsresolvername68e0lrux", - "DnsResolverName16": "psdnsresolvername16xkf1g9", - "InboundEnpointName24": "psinboundendpointname24yf7zlx", - "SubnetId41": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41uo246f/subnets/pssubnetname41roa807", - "DnsResolverName23": "psdnsresolvername232svq3r", - "DnsResolverName41": "psdnsresolvername411bjz2i", - "SubnetId23": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23d24bl5/subnets/pssubnetname237mjenz", - "InboundEnpointName57": "psinboundendpointname57f2cz6b", - "SubnetId1": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1s8z4jm/subnets/pssubnetname1qd6r28", - "VirtualNetworkId49": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname49tdblh9", - "InboundEnpointNamePrefix": "psinboundendpointname", - "DnsResolverName3": "psdnsresolvername3bavxjd", - "VirtualNetworkId61": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname61a3vlie", - "InboundEnpointName62": "psinboundendpointname627i9qob", - "DnsResolverName66": "psdnsresolvername66q9hi7v", - "DnsResolverName19": "psdnsresolvername19zeyqtp", - "DnsResolverName0": "psdnsresolvername0zo2di4", - "VirtualNetworkId12": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname12p8ea6g", - "SubnetId28": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28bsk2q9/subnets/pssubnetname284wlvm9", - "VirtualNetworkId64": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname64yj4ihb", - "VirtualNetworkId14": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname14rn6fhj", - "SubnetId51": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname51zx0mky/subnets/pssubnetname51ew0b97", - "DnsResolverName65": "psdnsresolvername65uka54b", - "SubnetId26": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname26cpyfrv/subnets/pssubnetname26c825dp", - "DnsResolverName67": "psdnsresolvername67cdv2xe", - "InboundEnpointName23": "psinboundendpointname23nhfgwv", - "VirtualNetworkId33": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname333sj6lu", - "InboundEnpointName55": "psinboundendpointname5523w68j", - "InboundEnpointName67": "psinboundendpointname67cpi3qk", - "DnsResolverName51": "psdnsresolvername514jy7ri", - "SuccessProvisioningState": "Succeeded", - "DnsResolverName60": "psdnsresolvername60yp9xsd", - "VirtualNetworkId42": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42r94dl3", - "VirtualNetworkId67": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname67rykhif", - "DnsResolverName11": "psdnsresolvername11oayx67", - "InboundEnpointName40": "psinboundendpointname40gyi2wz", - "VirtualNetworkId24": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2431m8dh", - "InboundEnpointName54": "psinboundendpointname546m25uc", - "DnsResolverName30": "psdnsresolvername30a6w9fv", - "DnsResolverName10": "psdnsresolvername108ment3", - "SubnetId8": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname8jkdo7z/subnets/pssubnetname8om85ve", - "InboundEnpointName53": "psinboundendpointname53cm86ao", - "InboundEnpointName21": "psinboundendpointname21gkt94b", - "VirtualNetworkId54": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname546j5na7", - "VirtualNetworkId6": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname68ld7tm", - "InboundEnpointName11": "psinboundendpointname11t53yid", - "DnsResolverName40": "psdnsresolvername40sm9tgn", - "InboundEnpointName36": "psinboundendpointname364hf5r3", - "SubnetId2": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2c7bwqj/subnets/pssubnetname218dqky", - "InboundEnpointName46": "psinboundendpointname46ei8kw7", - "SubnetId50": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50re1dom/subnets/pssubnetname50hnti7c", - "SubnetId61": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname61a3vlie/subnets/pssubnetname61uh46qf", - "VirtualNetworkId52": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname52gz370y", - "SubnetId65": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname65spr471/subnets/pssubnetname65k2yfai", - "VirtualNetworkId34": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname34h9a8zc", - "SubnetId38": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname38d2ogwc/subnets/pssubnetname38t8x9q0", - "InboundEnpointName25": "psinboundendpointname25e5aqlk", - "DnsResolverName64": "psdnsresolvername64wqtxph", - "VirtualNetworkId53": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname53zdp3i7", - "VirtualNetworkId18": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18j4z0rw", - "DnsResolverName14": "psdnsresolvername146upq1f", - "DnsResolverName27": "psdnsresolvername278uyif5", - "SubnetId58": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname58pe3yc7/subnets/pssubnetname58xg8tev", - "DnsResolverName35": "psdnsresolvername35pcs4r5", - "VirtualNetworkId26": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname26cpyfrv", - "DnsResolverName62": "psdnsresolvername62c02xfq", - "VirtualNetworkId17": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17wjo1u9", - "VirtualNetworkId23": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23d24bl5", - "VirtualNetworkId45": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45sktc49", - "InboundEnpointName18": "psinboundendpointname18ogc3it", - "DnsResolverName46": "psdnsresolvername46mferw3", - "SubnetId52": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname52gz370y/subnets/pssubnetname5247nsqa", - "InboundEnpointName68": "psinboundendpointname688dqzuc", - "InboundEnpointName37": "psinboundendpointname370tlnrh", - "SubnetId3": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname328d4rt/subnets/pssubnetname3x4gotz", - "SubnetId55": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname5521tioe/subnets/pssubnetname55x1d4q2", - "InboundEnpointName45": "psinboundendpointname45ivh2xb", - "InboundEnpointName14": "psinboundendpointname14kzsq73", - "InboundEnpointName41": "psinboundendpointname41rw4a65", - "SubnetId60": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname60izcphd/subnets/pssubnetname60syrija", - "DnsResolverNameForInboundEndpointGet": "psdnsresolvername60yp9xsd", - "DnsResolverName17": "psdnsresolvername177wdnvc", - "SubnetId66": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname66j12m6w/subnets/pssubnetname66bu2p7w", - "SubnetId56": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname56cs9i4w/subnets/pssubnetname56q40r8x", - "VirtualNetworkId0": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0dk5ary", - "DnsResolverName45": "psdnsresolvername458boamd", - "InboundEnpointName61": "psinboundendpointname616ckq0j", - "VirtualNetworkId16": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16garti2", - "InboundEnpointName12": "psinboundendpointname122ejdus", - "InboundEnpointName60": "psinboundendpointname60xzio7u", - "VirtualNetworkId22": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22j87mrb", - "InboundEnpointName44": "psinboundendpointname44omi16u", - "SubnetId69": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname69dma3se/subnets/pssubnetname694vyrzm", - "SubnetId42": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42r94dl3/subnets/pssubnetname42l3yg2k", - "VirtualNetworkId3": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname328d4rt", - "InboundEnpointName13": "psinboundendpointname13j2acmb", - "DnsResolverName15": "psdnsresolvername15bdw1jh", - "InboundEndpointNamePrefixForGet": "inboundEndpointNameForGet", - "SubnetId11": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname11idan0c/subnets/pssubnetname11tnsby6", - "DnsResolverName53": "psdnsresolvername5318pjum", - "InboundEnpointName48": "psinboundendpointname480j9dl6", - "LocationForVirtualNetwork": "westus2", - "SubnetId33": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname333sj6lu/subnets/pssubnetname33y7l1nv", - "VirtualNetworkId48": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48tqzly6", - "ResourceGroupName": "powershelldnsresolvertestrg90enl5", - "SubnetId5": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57t2a3b/subnets/pssubnetname5za1f0y", - "VirtualNetworkId11": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname11idan0c", - "SubnetId54": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname546j5na7/subnets/pssubnetname54pg28iz", - "DnsResolverName56": "psdnsresolvername56otdfga", - "DnsResolverName70": "psdnsresolvername70opuvqj", - "DnsResolverName48": "psdnsresolvername48bh6epv", - "VirtualNetworkId36": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname36p0v95r", - "InboundEnpointName0": "psinboundendpointname0z1h68w", - "SubnetId24": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2431m8dh/subnets/pssubnetname243bs1nc", - "DnsResolverName24": "psdnsresolvername24fa3d1s", - "DnsResolverName1": "psdnsresolvername113gqfk", - "VirtualNetworkId68": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname68v2q7un", - "InboundEnpointName32": "psinboundendpointname323fbkh0", - "VirtualNetworkId55": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname5521tioe", - "VirtualNetworkId62": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62f0b7lv", - "SubnetId10": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname10pm12u6/subnets/pssubnetname105djtpr", - "SubnetId40": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40sld1ek/subnets/pssubnetname407legdt", - "InboundEnpointName15": "psinboundendpointname1582puzs", - "DnsResolverName26": "psdnsresolvername269f6d7s", - "SubnetId9": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname9jmx14h/subnets/pssubnetname997qj4u", - "SubnetId7": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname7ebkyg1/subnets/pssubnetname7c8h7mg", - "InboundEnpointName16": "psinboundendpointname16h0yksc", - "InboundEndpointNamePrefixForGet2": "inboundEndpointNameForGetlgwuna", - "SubnetId44": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44fong13/subnets/pssubnetname44i3klf4", - "SubnetId20": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20ueaf6m/subnets/pssubnetname20jx5sbm", - "VirtualNetworkId9": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname9jmx14h", - "MalformedVirtualNetworkErrorMessage": "Resource ID is not a valid virtual network resource ID", - "DnsResolverName58": "psdnsresolvername5852dwlj", - "InboundEnpointName6": "psinboundendpointname6zlhirg", - "DnsResolverName6": "psdnsresolvername60nlkxp", - "VirtualNetworkId69": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname69dma3se", - "SubscriptionId": "ea40042d-63d8-4d02-9261-fb31450e6c67", - "VirtualNetworkId8": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname8jkdo7z", - "VirtualNetworkId30": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30cjb4l2", - "InboundEnpointName26": "psinboundendpointname26k9j2om", - "InboundEnpointName17": "psinboundendpointname17t1jpoe", - "SubnetNamePrefix": "pssubnetname", - "DnsResolverName5": "psdnsresolvername57c6gsa", - "VirtualNetworkId10": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname10pm12u6", - "Tenant": "f686d426-8d16-42db-81b7-ab578e110ccd", - "DnsResolverName43": "psdnsresolvername43ljzrpw", - "InboundEnpointName34": "psinboundendpointname347bz6mp", - "InboundEnpointName35": "psinboundendpointname35l1rovx", - "InboundEnpointName66": "psinboundendpointname662m1ldo", - "InboundEnpointName33": "psinboundendpointname33qhw1l0", - "SubnetId57": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57a2bg79/subnets/pssubnetname578kvbwc", - "SubnetId17": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17wjo1u9/subnets/pssubnetname17nvsofc", - "VirtualNetworkId31": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31bd72sc", - "DnsResolverName55": "psdnsresolvername55k5i62b", - "VirtualNetworkId29": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29hxjuol", - "InboundEnpointName22": "psinboundendpointname22dz0ah2", - "VirtualNetworkId39": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39zyp0ts", - "InboundEnpointName59": "psinboundendpointname59knpo4e", - "VirtualNetworkId4": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4cf5eqy", - "InboundEnpointName27": "psinboundendpointname273hxcbn", - "DnsResolverName31": "psdnsresolvername31vby9dc", - "InboundEnpointName31": "psinboundendpointname31ongdw4", - "SubnetId21": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21s76nij/subnets/pssubnetname2110knq5", - "VirtualNetworkId21": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21s76nij", - "DnsResolverName57": "psdnsresolvername57w1i26t", - "VirtualNetworkId37": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname37bpaj1o", - "VirtualNetworkId43": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43zxk74g", - "InboundEnpointName28": "psinboundendpointname28j28wn5", - "VirtualNetworkId50": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50re1dom", - "SubnetId15": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15ugkiqc/subnets/pssubnetname154cjla2", - "DnsResolverName54": "psdnsresolvername54lhqfix", - "DnsResolverName8": "psdnsresolvername8hl6v1i", - "InboundEnpointName49": "psinboundendpointname49124jyv", - "DnsResolverName29": "psdnsresolvername29a4b7z9", - "InboundEnpointName63": "psinboundendpointname636bhrpe", - "VirtualNetworkId20": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20ueaf6m", - "InboundEnpointName50": "psinboundendpointname501xtmqh", - "VirtualNetworkId15": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15ugkiqc", - "DnsResolverName34": "psdnsresolvername34zfp9nx", - "SubnetId46": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname465reqi1/subnets/pssubnetname46hyzix7", - "InboundEnpointName9": "psinboundendpointname9lenwgi", - "DnsResolverName59": "psdnsresolvername59ke0azh", - "SubnetId37": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname37bpaj1o/subnets/pssubnetname370blsyh", - "SubnetId68": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname68v2q7un/subnets/pssubnetname68myairl", - "InboundEndpointNamePrefixForGet0": "inboundEndpointNameForGetr7foq9", - "InboundEnpointName2": "psinboundendpointname2gf3rcv", - "VirtualNetworkId5": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57t2a3b", - "VirtualNetworkId40": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40sld1ek", - "DnsResolverName2": "psdnsresolvername2vl5i0j", - "VirtualNetworkId58": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname58pe3yc7", - "VirtualNetworkId25": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname25i3rzxq", - "SubnetId19": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19nqf1dy/subnets/pssubnetname1920aw65", - "SubnetId45": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45sktc49/subnets/pssubnetname45q7k4d0", - "InboundEnpointName20": "psinboundendpointname20cvxpny", - "NumberOfInboundEndpointForGet": 3, - "InboundEnpointName52": "psinboundendpointname528n6re2", - "DnsResolverName49": "psdnsresolvername49icuv05", - "DnsResolverName28": "psdnsresolvername289zj10n", - "InboundEnpointName56": "psinboundendpointname56iel2u4", - "SubnetId59": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59v8wkde/subnets/pssubnetname59r6jmcp", - "DnsResolverName44": "psdnsresolvername44ircth7", - "InboundEnpointName38": "psinboundendpointname38te7c32", - "VirtualNetworkId13": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname13kr8d0e", - "DnsResolverName32": "psdnsresolvername324wtj1u", - "SubnetId29": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29hxjuol/subnets/pssubnetname298e65al", - "InboundEnpointName30": "psinboundendpointname304jz5u3", - "InboundEnpointName8": "psinboundendpointname8iu015w", - "SubnetId39": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39zyp0ts/subnets/pssubnetname39wbn30x", - "DnsResolverName69": "psdnsresolvername69p5k3sr", - "InboundEnpointName10": "psinboundendpointname10u5lxjg", - "InboundEnpointName64": "psinboundendpointname64ihmcq1", - "DnsResolverName18": "psdnsresolvername18w6ujeb", - "InboundEnpointName65": "psinboundendpointname65fai35u", - "VirtualNetworkId32": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname325ogwmh", - "SubnetId31": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31bd72sc/subnets/pssubnetname311y8dix", - "SubnetId22": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22j87mrb/subnets/pssubnetname22g4mnki", - "VirtualNetworkId19": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19nqf1dy", - "VirtualNetworkId27": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname27rqwvt6", - "SubnetId6": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname68ld7tm/subnets/pssubnetname6ht67id", - "InboundEndpointNamePrefixForGet1": "inboundEndpointNameForGet4e0wyc", - "DnsResolverName7": "psdnsresolvername7j2fehw", - "SubnetId30": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30cjb4l2/subnets/pssubnetname30vat6p2", - "DnsResolverName38": "psdnsresolvername38b43q7j", - "DnsResolverName13": "psdnsresolvername13ul4maj", - "VirtualNetworkId41": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41uo246f", - "DnsResolverName4": "psdnsresolvername4h6e15u", - "DnsResolverName20": "psdnsresolvername208w0z4a", - "InboundEnpointName7": "psinboundendpointname7mfl98u", - "DnsResolverName9": "psdnsresolvername9zquahj", - "InboundEnpointName19": "psinboundendpointname196wknuc", - "InboundEnpointName70": "psinboundendpointname70dxiatz", - "SubnetId67": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname67rykhif/subnets/pssubnetname67dex3j6", - "InboundEnpointName1": "psinboundendpointname1njy0p8", - "InboundEnpointName43": "psinboundendpointname43l4e59m", - "SubnetId13": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname13kr8d0e/subnets/pssubnetname131ew4ju", - "InboundEnpointName4": "psinboundendpointname426xaq3", - "SubnetId62": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62f0b7lv/subnets/pssubnetname62x5gjbk", - "SubnetId70": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname709brgtv/subnets/pssubnetname70knpuzq", - "InboundEnpointName42": "psinboundendpointname4235vr2h", - "VirtualNetworkId60": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname60izcphd", - "DnsResolverName12": "psdnsresolvername12w8ix62", - "DnsResolverName39": "psdnsresolvername39tqgwj7", - "VirtualNetworkId38": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname38d2ogwc", - "DnsResolverName61": "psdnsresolvername612uakqw", - "VirtualNetworkId2": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2c7bwqj", - "InboundEnpointName69": "psinboundendpointname69zsp1du", - "ResourceLocation": "eastus2", - "DnsResolverName47": "psdnsresolvername47ep6cgl", - "SubnetId12": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname12p8ea6g/subnets/pssubnetname12dks0ie", - "SubnetId32": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname325ogwmh/subnets/pssubnetname329lycek", - "SubnetId4": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4cf5eqy/subnets/pssubnetname430o29s", - "SubnetId16": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16garti2/subnets/pssubnetname16gol43x", - "SubnetId63": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname63egwvk6/subnets/pssubnetname63kxsuzb", - "DnsResolverName33": "psdnsresolvername33opy4uv", - "SubnetId49": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname49tdblh9/subnets/pssubnetname49nhp4a0", - "DnsResolverName42": "psdnsresolvername42483rlh", - "InboundEnpointName58": "psinboundendpointname5809c5e4", - "SubnetId14": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname14rn6fhj/subnets/pssubnetname14e6qzh2", - "SubnetId0": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0dk5ary/subnets/pssubnetname0fl1hze", - "VirtualNetworkId28": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28bsk2q9", - "InboundEnpointName5": "psinboundendpointname5kfn0md", - "SubnetId35": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname35w5iz2y/subnets/pssubnetname35jple60", - "VirtualNetworkId56": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname56cs9i4w", - "VirtualNetworkId70": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname709brgtv", - "VirtualNetworkId65": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname65spr471", - "VirtualNetworkId47": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47e87x3j", - "DnsResolverName25": "psdnsresolvername25izd91l", - "InboundEnpointName3": "psinboundendpointname33qhkc1", - "VirtualNetworkId66": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname66j12m6w", - "VirtualNetworkId1": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1s8z4jm", - "VirtualNetworkId59": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59v8wkde", - "SubnetId64": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname64yj4ihb/subnets/pssubnetname64u6h8mk", - "SubnetId43": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43zxk74g/subnets/pssubnetname43qfr128", - "VirtualNetworkId44": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44fong13", - "VirtualNetworkId35": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname35w5iz2y", - "InboundEnpointName29": "psinboundendpointname29bfndwh", - "VirtualNetworkId63": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname63egwvk6", - "DnsResolverName52": "psdnsresolvername52tplhjz", - "VirtualNetworkId7": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname7ebkyg1", - "VirtualNetworkId51": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname51zx0mky", - "SubnetId36": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname36p0v95r/subnets/pssubnetname36d3zlf0", - "InboundEnpointName39": "psinboundendpointname397vdesp", - "InboundEnpointName47": "psinboundendpointname47b407mp", - "InboundEndpointNamePrefix": "psinboundendpointname", - "SubnetId25": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname25i3rzxq/subnets/pssubnetname25o7c6wn", - "SubnetId18": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18j4z0rw/subnets/pssubnetname18ic5zdg", - "SubnetId27": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname27rqwvt6/subnets/pssubnetname272bjv8p", - "SubnetId47": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47e87x3j/subnets/pssubnetname47r12bdy", - "DnsResolverName50": "psdnsresolvername5076w59g" -} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/utils.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/utils.ps1 index e64d36e6cb51..16d70971b313 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/utils.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/test/utils.ps1 @@ -33,7 +33,8 @@ function setupEnv() { # as default. You could change them if needed. Import-Module -Name Az.Resources - Select-AzSubscription -SubscriptionObject (Get-AzSubscription -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67) + # ITE Validation + Select-AzSubscription -SubscriptionObject (Get-AzSubscription -SubscriptionId 91ab65d2-c73f-4768-89d0-b061815f258b) Register-AzResourceProvider -ProviderNamespace Microsoft.Network @@ -47,7 +48,7 @@ function setupEnv() { write-host "creating test resource group..." $resourceGroupName = "powershelldnsresolvertestrg" + (RandomString -allChars $false -len 6) - New-AzResourceGroup -Name $resourceGroupName -Location eastus2 -SubscriptionId $subscriptionId + New-AzResourceGroup -Name $resourceGroupName -Location westus2 -SubscriptionId $subscriptionId $env.Add("ResourceGroupName", $resourceGroupName) $null = $env.Add("DnsResolverNamePrefix", "psdnsresolvername"); @@ -58,7 +59,7 @@ function setupEnv() { $null = $env.Add("SuccessProvisioningState", "Succeeded"); - $null = $env.Add("ResourceLocation", "eastus2"); + $null = $env.Add("ResourceLocation", "westus2"); $null = $env.Add("MalformedVirtualNetworkErrorMessage", "Resource ID is not a valid virtual network resource ID"); $null = $env.Add("AddressPrefix", "40.121.0.0/16"); $null = $env.Add("LocationForVirtualNetwork", "westus2"); @@ -78,50 +79,50 @@ function setupEnv() { # Patch IE - 46 - 49 # Get IE 50 - 60 # Remove IE 61 - 62 - $dnsResolverNameEnvKeyPrefix = "DnsResolverName" - $virtualNetworkIdEnvKeyPrefix = "VirtualNetworkId" - $subnetIdEnvKeyPrefix = "SubnetId" - $inboundEndpointNameEnvKeyPrefix = "InboundEnpointName" - For($i=0; $i -le 70; $i++){ - $dnsResolverNameEnvKey = $dnsResolverNameEnvKeyPrefix + $i - $dnsResolverName = $env.DnsResolverNamePrefix + $i + (RandomString -allChars $false -len 6) - $null = $env.Add($dnsResolverNameEnvKey, $dnsResolverName); - - $inboundEndpointNameEnvKey = $inboundEndpointNameEnvKeyPrefix + $i - $inboundEndpointName = $env.InboundEnpointNamePrefix + $i + (RandomString -allChars $false -len 6) - $null = $env.Add($inboundEndpointNameEnvKey, $inboundEndpointName); - - $virtualNetworkIdEnvKey = $virtualNetworkIdEnvKeyPrefix + $i - $virtualNetworkName = $env.VirtualNetworkNamePrefix + $i + (RandomString -allChars $false -len 6) - $virtualNetworkId = (CreateVirtualNetwork -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName).id - $null = $env.Add($virtualNetworkIdEnvKey, $virtualNetworkId); - - $subnetIdEnvKey = $subnetIdEnvKeyPrefix + $i - $subnetName = $env.SubnetNamePrefix + $i + (RandomString -allChars $false -len 6) - $subnetId = (CreateSubnet -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName -SubnetName $subnetName).id - $null = $env.Add($subnetIdEnvKey, $subnetId); - } - - # - $dnsResolverName = $env.DnsResolverName60 - $virtualNetworkId = $env.VirtualNetworkId60 - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $env.ResourceGroupName -VirtualNetworkId $virtualNetworkId -Location $env.ResourceLocation -SubscriptionId $env.SubscriptionId - $virtualNetworkName = ExtractArmResourceName -ResourceId $virtualNetworkId - $numberOfInboundEndpointForGet = 3 - $inboundEndpointNamePrefixForGet = "inboundEndpointNameForGet" - $null = $env.Add("NumberOfInboundEndpointForGet", $numberOfInboundEndpointForGet); - $null = $env.Add("DnsResolverNameForInboundEndpointGet", $dnsResolverName); - $null = $env.Add("InboundEndpointNamePrefixForGet", $inboundEndpointNamePrefixForGet); - For($i=0; $i -lt $numberOfInboundEndpointForGet; $i++){ - $subnetName = "subnetNameForGet" + (RandomString -allChars $false -len 6) - $subnetid = (CreateSubnet -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName -SubnetName $subnetName).id - $privateIp = RandomIp - $inboundEndpointName = "inboundEndpointNameForGet" + (RandomString -allChars $false -len 6) - $null = $env.Add("InboundEndpointNamePrefixForGet" + $i, $inboundEndpointName); - $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress $privateIp -PrivateIPAllocationMethod Static -SubnetId $subnetid - write-host "creating test Inbound Endpoint for get ...name = " + $inboundEndpointName - # New-AzDnsResolverInboundEndpoint -DnsResolverName $dnsResolverName -Name $inboundEndpointName -ResourceGroupName $env.ResourceGroupName -IPConfiguration $ipConfiguration -SubscriptionId $env.SubscriptionId - } + # $dnsResolverNameEnvKeyPrefix = "DnsResolverName" + # $virtualNetworkIdEnvKeyPrefix = "VirtualNetworkId" + # $subnetIdEnvKeyPrefix = "SubnetId" + # $inboundEndpointNameEnvKeyPrefix = "InboundEnpointName" + # For($i=0; $i -le 70; $i++){ + # $dnsResolverNameEnvKey = $dnsResolverNameEnvKeyPrefix + $i + # $dnsResolverName = $env.DnsResolverNamePrefix + $i + (RandomString -allChars $false -len 6) + # $null = $env.Add($dnsResolverNameEnvKey, $dnsResolverName); + + # $inboundEndpointNameEnvKey = $inboundEndpointNameEnvKeyPrefix + $i + # $inboundEndpointName = $env.InboundEnpointNamePrefix + $i + (RandomString -allChars $false -len 6) + # $null = $env.Add($inboundEndpointNameEnvKey, $inboundEndpointName); + + # $virtualNetworkIdEnvKey = $virtualNetworkIdEnvKeyPrefix + $i + # $virtualNetworkName = $env.VirtualNetworkNamePrefix + $i + (RandomString -allChars $false -len 6) + # $virtualNetworkId = (CreateVirtualNetwork -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName).id + # $null = $env.Add($virtualNetworkIdEnvKey, $virtualNetworkId); + + # $subnetIdEnvKey = $subnetIdEnvKeyPrefix + $i + # $subnetName = $env.SubnetNamePrefix + $i + (RandomString -allChars $false -len 6) + # $subnetId = (CreateSubnet -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName -SubnetName $subnetName).id + # $null = $env.Add($subnetIdEnvKey, $subnetId); + # } + + # # + # $dnsResolverName = $env.DnsResolverName60 + # $virtualNetworkId = $env.VirtualNetworkId60 + # New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $env.ResourceGroupName -VirtualNetworkId $virtualNetworkId -Location $env.ResourceLocation -SubscriptionId $env.SubscriptionId + # $virtualNetworkName = ExtractArmResourceName -ResourceId $virtualNetworkId + # $numberOfInboundEndpointForGet = 3 + # $inboundEndpointNamePrefixForGet = "inboundEndpointNameForGet" + # $null = $env.Add("NumberOfInboundEndpointForGet", $numberOfInboundEndpointForGet); + # $null = $env.Add("DnsResolverNameForInboundEndpointGet", $dnsResolverName); + # $null = $env.Add("InboundEndpointNamePrefixForGet", $inboundEndpointNamePrefixForGet); + # For($i=0; $i -lt $numberOfInboundEndpointForGet; $i++){ + # $subnetName = "subnetNameForGet" + (RandomString -allChars $false -len 6) + # $subnetid = (CreateSubnet -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName -SubnetName $subnetName).id + # $privateIp = RandomIp + # $inboundEndpointName = "inboundEndpointNameForGet" + (RandomString -allChars $false -len 6) + # $null = $env.Add("InboundEndpointNamePrefixForGet" + $i, $inboundEndpointName); + # $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress $privateIp -PrivateIPAllocationMethod Static -SubnetId $subnetid + # write-host "creating test Inbound Endpoint for get ...name = " + $inboundEndpointName + # # New-AzDnsResolverInboundEndpoint -DnsResolverName $dnsResolverName -Name $inboundEndpointName -ResourceGroupName $env.ResourceGroupName -IPConfiguration $ipConfiguration -SubscriptionId $env.SubscriptionId + # } $envFile = 'env.json' diff --git a/src/DnsResolver/DnsResolver.Autorest/tools/Resources/.gitattributes b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/.gitattributes new file mode 100644 index 000000000000..2125666142eb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/.gitattributes @@ -0,0 +1 @@ +* text=auto \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/tools/Resources/README.md b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/README.md new file mode 100644 index 000000000000..13499727bd60 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/README.md @@ -0,0 +1,438 @@ + +# Az.Resources.TestSupport +This directory contains the PowerShell module for the Resources service. + +--- +## Info +- Modifiable: yes +- Generated: all +- Committed: yes +- Packaged: yes + +--- +## Detail +This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. + +## Module Requirements +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater + +## Authentication +AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. + +## Development +For information on how to develop for `Az.Resources.TestSupport`, see [how-to.md](how-to.md). + + +--- +## Generation Requirements +Use of the beta version of `autorest.powershell` generator requires the following: +- [NodeJS LTS](https://nodejs.org) (10.15.x LTS preferred) + - **Note**: It *will not work* with Node < 10.x. Using 11.x builds may cause issues as they may introduce instability or breaking changes. +> If you want an easy way to install and update Node, [NVS - Node Version Switcher](../nodejs/installing-via-nvs.md) or [NVM - Node Version Manager](../nodejs/installing-via-nvm.md) is recommended. +- [AutoRest](https://aka.ms/autorest) v3
`npm install -g autorest`
  +- PowerShell 6.0 or greater + - If you don't have it installed, you can use the cross-platform npm package
`npm install -g pwsh`
  +- .NET Core SDK 2.0 or greater + - If you don't have it installed, you can use the cross-platform npm package
`npm install -g dotnet-sdk-2.2`
  + +## Run Generation +In this directory, run AutoRest: +> `autorest` + +--- +### AutoRest Configuration +> see https://aka.ms/autorest + +> Values +``` yaml +azure: true +powershell: true +branch: master +repo: https://github.com/Azure/azure-rest-api-specs/blob/master +metadata: + authors: Microsoft Corporation + owners: Microsoft Corporation + copyright: Microsoft Corporation. All rights reserved. + companyName: Microsoft Corporation + requireLicenseAcceptance: true + licenseUri: https://aka.ms/azps-license + projectUri: https://github.com/Azure/azure-powershell +``` + +> Names +``` yaml +prefix: Az +``` + +> Folders +``` yaml +clear-output-folder: true +``` + +``` yaml +input-file: + - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/resources/resource-manager/Microsoft.Resources/stable/2018-05-01/resources.json +module-name: Az.Resources.TestSupport +namespace: Microsoft.Azure.PowerShell.Cmdlets.Resources + +subject-prefix: '' +module-version: 0.0.1 +title: Resources + +directive: + - remove-operation: Deployments_CreateOrUpdateAtSubscriptionScope + - where: + subject: Operation + hide: true + - where: + parameter-name: SubscriptionId + set: + default: + script: '(Get-AzContext).Subscription.Id' + - from: swagger-document + where: $..parameters[?(@.name=='$filter')] + transform: $['x-ms-skip-url-encoding'] = true + - from: swagger-document + where: $..[?( /Resources_(CreateOrUpdate|Update|Delete|Get|GetById|CheckExistence|CheckExistenceById)/g.exec(@.operationId))] + transform: "$.parameters = $.parameters.map( each => { each.name = each.name === 'api-version' ? 'explicit-api-version' : each.name; return each; } );" + - from: source-file-csharp + where: $ + transform: $ = $.replace(/explicit-api-version/g, 'api-version'); + - where: + parameter-name: ExplicitApiVersion + set: + parameter-name: ApiVersion + - from: source-file-csharp + where: $ + transform: > + $ = $.replace(/result.OdataNextLink/g,'nextLink' ); + return $.replace( /(^\s*)(if\s*\(\s*nextLink\s*!=\s*null\s*\))/gm, '$1var nextLink = Module.Instance.FixNextLink(responseMessage, result.OdataNextLink);\n$1$2' ); + - from: swagger-document + where: + - $..DeploymentProperties.properties.template + - $..DeploymentProperties.properties.parameters + - $..ResourceGroupExportResult.properties.template + - $..PolicyDefinitionProperties.properties.policyRule + transform: $.additionalProperties = true; + - where: + verb: Set + subject: Resource + remove: true + - where: + verb: Set + subject: Deployment + remove: true + - where: + subject: Resource + parameter-name: GroupName + set: + parameter-name: ResourceGroupName + clear-alias: true + - where: + subject: Resource + parameter-name: Id + set: + parameter-name: ResourceId + clear-alias: true + - where: + subject: Resource + parameter-name: Type + set: + parameter-name: ResourceType + clear-alias: true + - where: + subject: Appliance* + remove: true + - where: + verb: Test + subject: CheckNameAvailability + set: + subject: NameAvailability + - where: + verb: Export + subject: ResourceGroupTemplate + set: + subject: ResourceGroup + alias: Export-AzResourceGroupTemplate + - where: + parameter-name: Filter + set: + alias: ODataQuery + - where: + verb: Test + subject: ResourceGroupExistence + set: + subject: ResourceGroup + alias: Test-AzResourceGroupExistence + - where: + verb: Export + subject: DeploymentTemplate + set: + alias: [Save-AzDeploymentTemplate, Save-AzResourceGroupDeploymentTemplate] + - where: + subject: Deployment + set: + alias: ${verb}-AzResourceGroupDeployment + - where: + verb: Get + subject: DeploymentOperation + set: + alias: Get-AzResourceGroupDeploymentOperation + - where: + verb: New + subject: Deployment + variant: Create.*Expanded.* + parameter-name: Parameter + set: + parameter-name: DeploymentPropertyParameter + - where: + verb: New + subject: Deployment + hide: true + - where: + verb: Test + subject: Deployment + variant: Validate.*Expanded.* + parameter-name: Parameter + set: + parameter-name: DeploymentPropertyParameter + - where: + verb: New + subject: Deployment + parameter-name: DebugSettingDetailLevel + set: + parameter-name: DeploymentDebugLogLevel + - where: + subject: Provider + set: + subject: ResourceProvider + - where: + subject: ProviderFeature|ResourceProvider|ResourceLock + parameter-name: ResourceProviderNamespace + set: + alias: ProviderNamespace + - where: + verb: Update + subject: ResourceGroup + parameter-name: Name + clear-alias: true + - where: + parameter-name: UpnOrObjectId + set: + alias: ['UserPrincipalName', 'Upn', 'ObjectId'] + - where: + subject: Deployment + variant: (.*)Expanded(.*) + parameter-name: Parameter + set: + parameter-name: DeploymentParameter + # Format output + - where: + model-name: GenericResource + set: + format-table: + properties: + - Name + - ResourceGroupName + - Type + - Location + labels: + Type: ResourceType + - where: + model-name: ResourceGroup + set: + format-table: + properties: + - Name + - Location + - ProvisioningState + - where: + model-name: DeploymentExtended + set: + format-table: + properties: + - Name + - ProvisioningState + - Timestamp + - Mode + - where: + model-name: PolicyAssignment + set: + format-table: + properties: + - Name + - DisplayName + - Id + - where: + model-name: PolicyDefinition + set: + format-table: + properties: + - Name + - DisplayName + - Id + - where: + model-name: PolicySetDefinition + set: + format-table: + properties: + - Name + - DisplayName + - Id + - where: + model-name: Provider + set: + format-table: + properties: + - Namespace + - RegistrationState + - where: + model-name: ProviderResourceType + set: + format-table: + properties: + - ResourceType + - Location + - ApiVersion + - where: + model-name: FeatureResult + set: + format-table: + properties: + - Name + - State + - where: + model-name: TagDetails + set: + format-table: + properties: + - TagName + - CountValue + - where: + model-name: Application + set: + format-table: + properties: + - DisplayName + - ObjectId + - AppId + - Homepage + - AvailableToOtherTenant + - where: + model-name: KeyCredential + set: + format-table: + properties: + - StartDate + - EndDate + - KeyId + - Type + - where: + model-name: PasswordCredential + set: + format-table: + properties: + - StartDate + - EndDate + - KeyId + - where: + model-name: User + set: + format-table: + properties: + - PrincipalName + - DisplayName + - ObjectId + - Type + - where: + model-name: AdGroup + set: + format-table: + properties: + - DisplayName + - Mail + - ObjectId + - SecurityEnabled + - where: + model-name: ServicePrincipal + set: + format-table: + properties: + - DisplayName + - ObjectId + - AppDisplayName + - AppId + - where: + model-name: Location + set: + format-table: + properties: + - Name + - DisplayName + - where: + model-name: ManagementLockObject + set: + format-table: + properties: + - Name + - Level + - ResourceId + - where: + model-name: RoleAssignment + set: + format-table: + properties: + - DisplayName + - ObjectId + - ObjectType + - RoleDefinitionName + - Scope + - where: + model-name: RoleDefinition + set: + format-table: + properties: + - RoleName + - Name + - Action +# To remove cmdlets not used in the test frame + - where: + subject: Operation + remove: true + - where: + subject: Deployment + variant: (.*)1|Cancel(.*)|Validate(.*)|Export(.*)|List(.*)|Delete(.*)|Check(.*)|Calculate(.*) + remove: true + - where: + subject: ResourceProvider + variant: Register(.*)|Unregister(.*)|Get(.*) + remove: true + - where: + subject: ResourceGroup + variant: List(.*)|Update(.*)|Export(.*)|Move(.*) + remove: true + - where: + subject: Resource + remove: true + - where: + subject: Tag|TagValue + remove: true + - where: + subject: DeploymentOperation + remove: true + - where: + subject: DeploymentTemplate + remove: true + - where: + subject: Calculate(.*) + remove: true + - where: + subject: ResourceExistence + remove: true + - where: + subject: ResourceMoveResource + remove: true + - where: + subject: DeploymentExistence + remove: true +``` diff --git a/src/DnsResolver/DnsResolver.Autorest/tools/Resources/custom/New-AzDeployment.ps1 b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/custom/New-AzDeployment.ps1 new file mode 100644 index 000000000000..131b39a02d7f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/custom/New-AzDeployment.ps1 @@ -0,0 +1,231 @@ +function New-AzDeployment { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Resources.Models.Api20180501.IDeploymentExtended')] + [CmdletBinding(DefaultParameterSetName='CreateWithTemplateFileParameterFile', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Description('You can provide the template and parameters directly in the request or link to JSON files.')] + param( + [Parameter(HelpMessage='The name of the deployment. If not provided, the name of the template file will be used. If a template file is not used, a random GUID will be used for the name.')] + [Alias('DeploymentName')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Runtime.Info(SerializedName='deploymentName', Required, PossibleTypes=([System.String]), Description='The name of the deployment.')] + [System.String] + # The name of the deployment. If not provided, the name of the template file will be used. If a template file is not used, a random GUID will be used for the name. + ${Name}, + + [Parameter(Mandatory, HelpMessage='The ID of the target subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Runtime.Info(SerializedName='subscriptionId', Required, PossibleTypes=([System.String]), Description='The ID of the target subscription.')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateRGWithTemplateFileParameterFile', Mandatory, HelpMessage='The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.')] + [Parameter(ParameterSetName='CreateRGWithTemplateFileParameterJson', Mandatory, HelpMessage='The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.')] + [Parameter(ParameterSetName='CreateRGWithTemplateFileParameterObject', Mandatory, HelpMessage='The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.')] + [Parameter(ParameterSetName='CreateRGWithTemplateJsonParameterFile', Mandatory, HelpMessage='The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.')] + [Parameter(ParameterSetName='CreateRGWithTemplateJsonParameterJson', Mandatory, HelpMessage='The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.')] + [Parameter(ParameterSetName='CreateRGWithTemplateJsonParameterObject', Mandatory, HelpMessage='The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.')] + [Parameter(ParameterSetName='CreateRGWithTemplateObjectParameterFile', Mandatory, HelpMessage='The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.')] + [Parameter(ParameterSetName='CreateRGWithTemplateObjectParameterJson', Mandatory, HelpMessage='The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.')] + [Parameter(ParameterSetName='CreateRGWithTemplateObjectParameterObject', Mandatory, HelpMessage='The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Runtime.Info(SerializedName='resourceGroupName', Required, PossibleTypes=([System.String]), Description='The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.')] + [System.String] + # The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CreateWithTemplateFileParameterFile', Mandatory, HelpMessage='Local path to the JSON template file.')] + [Parameter(ParameterSetName='CreateWithTemplateFileParameterJson', Mandatory, HelpMessage='Local path to the JSON template file.')] + [Parameter(ParameterSetName='CreateWithTemplateFileParameterObject', Mandatory, HelpMessage='Local path to the JSON template file.')] + [Parameter(ParameterSetName='CreateRGWithTemplateFileParameterFile', Mandatory, HelpMessage='Local path to the JSON template file.')] + [Parameter(ParameterSetName='CreateRGWithTemplateFileParameterJson', Mandatory, HelpMessage='Local path to the JSON template file.')] + [Parameter(ParameterSetName='CreateRGWithTemplateFileParameterObject', Mandatory, HelpMessage='Local path to the JSON template file.')] + [System.String] + # Local path to the JSON template file. + ${TemplateFile}, + + [Parameter(ParameterSetName='CreateWithTemplateJsonParameterFile', Mandatory, HelpMessage='The string representation of the JSON template.')] + [Parameter(ParameterSetName='CreateWithTemplateJsonParameterJson', Mandatory, HelpMessage='The string representation of the JSON template.')] + [Parameter(ParameterSetName='CreateWithTemplateJsonParameterObject', Mandatory, HelpMessage='The string representation of the JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateJsonParameterFile', Mandatory, HelpMessage='The string representation of the JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateJsonParameterJson', Mandatory, HelpMessage='The string representation of the JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateJsonParameterObject', Mandatory, HelpMessage='The string representation of the JSON template.')] + [System.String] + # The string representation of the JSON template. + ${TemplateJson}, + + [Parameter(ParameterSetName='CreateWithTemplateObjectParameterFile', Mandatory, HelpMessage='The hashtable representation of the JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateObjectParameterFile', Mandatory, HelpMessage='The hashtable representation of the JSON template.')] + [Parameter(ParameterSetName='CreateWithTemplateObjectParameterJson', Mandatory, HelpMessage='The hashtable representation of the JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateObjectParameterJson', Mandatory, HelpMessage='The hashtable representation of the JSON template.')] + [Parameter(ParameterSetName='CreateWithTemplateObjectParameterObject', Mandatory, HelpMessage='The hashtable representation of the JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateObjectParameterObject', Mandatory, HelpMessage='The hashtable representation of the JSON template.')] + [System.Collections.Hashtable] + # The hashtable representation of the JSON template. + ${TemplateObject}, + + [Parameter(ParameterSetName='CreateWithTemplateFileParameterFile', Mandatory, HelpMessage='Local path to the parameter JSON template file.')] + [Parameter(ParameterSetName='CreateWithTemplateJsonParameterFile', Mandatory, HelpMessage='Local path to the parameter JSON template file.')] + [Parameter(ParameterSetName='CreateWithTemplateObjectParameterFile', Mandatory, HelpMessage='Local path to the parameter JSON template file.')] + [Parameter(ParameterSetName='CreateRGWithTemplateFileParameterFile', Mandatory, HelpMessage='Local path to the parameter JSON template file.')] + [Parameter(ParameterSetName='CreateRGWithTemplateJsonParameterFile', Mandatory, HelpMessage='Local path to the parameter JSON template file.')] + [Parameter(ParameterSetName='CreateRGWithTemplateObjectParameterFile', Mandatory, HelpMessage='Local path to the parameter JSON template file.')] + [System.String] + # Local path to the parameter JSON template file. + ${TemplateParameterFile}, + + [Parameter(ParameterSetName='CreateWithTemplateFileParameterJson', Mandatory, HelpMessage='The string representation of the parameter JSON template.')] + [Parameter(ParameterSetName='CreateWithTemplateJsonParameterJson', Mandatory, HelpMessage='The string representation of the parameter JSON template.')] + [Parameter(ParameterSetName='CreateWithTemplateObjectParameterJson', Mandatory, HelpMessage='The string representation of the parameter JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateFileParameterJson', Mandatory, HelpMessage='The string representation of the parameter JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateJsonParameterJson', Mandatory, HelpMessage='The string representation of the parameter JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateObjectParameterJson', Mandatory, HelpMessage='The string representation of the parameter JSON template.')] + [System.String] + # The string representation of the parameter JSON template. + ${TemplateParameterJson}, + + [Parameter(ParameterSetName='CreateWithTemplateFileParameterObject', Mandatory, HelpMessage='The hashtable representation of the parameter JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateFileParameterObject', Mandatory, HelpMessage='The hashtable representation of the parameter JSON template.')] + [Parameter(ParameterSetName='CreateWithTemplateJsonParameterObject', Mandatory, HelpMessage='The hashtable representation of the parameter JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateJsonParameterObject', Mandatory, HelpMessage='The hashtable representation of the parameter JSON template.')] + [Parameter(ParameterSetName='CreateWithTemplateObjectParameterObject', Mandatory, HelpMessage='The hashtable representation of the parameter JSON template.')] + [Parameter(ParameterSetName='CreateRGWithTemplateObjectParameterObject', Mandatory, HelpMessage='The hashtable representation of the parameter JSON template.')] + [System.Collections.Hashtable] + # The hashtable representation of the parameter JSON template. + ${TemplateParameterObject}, + + [Parameter(Mandatory, HelpMessage='The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources.')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Resources.Support.DeploymentMode])] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Runtime.Info(SerializedName='mode', Required, PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Resources.Support.DeploymentMode]), Description='The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources.')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Support.DeploymentMode] + # The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. + ${Mode}, + + [Parameter(HelpMessage='Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations.')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Runtime.Info(SerializedName='detailLevel', PossibleTypes=([System.String]), Description='Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations.')] + [System.String] + # Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations. + ${DeploymentDebugLogLevel}, + + [Parameter(HelpMessage='The location to store the deployment data.')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Runtime.Info(SerializedName='location', PossibleTypes=([System.String]), Description='The location to store the deployment data.')] + [System.String] + # The location to store the deployment data. + ${Location}, + + [Parameter(HelpMessage='The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(HelpMessage='Run the command as a job')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(HelpMessage='Run the command asynchronously')] + [Microsoft.Azure.PowerShell.Cmdlets.Resources.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait} + + ) + + process { + if ($PSBoundParameters.ContainsKey("TemplateFile")) + { + if (!(Test-Path -Path $TemplateFile)) + { + throw "Unable to find template file '$TemplateFile'." + } + + if (!$PSBoundParameters.ContainsKey("Name")) + { + $DeploymentName = (Get-Item -Path $TemplateFile).BaseName + $null = $PSBoundParameters.Add("Name", $DeploymentName) + } + + $TemplateJson = [System.IO.File]::ReadAllText($TemplateFile) + $null = $PSBoundParameters.Add("Template", $TemplateJson) + $null = $PSBoundParameters.Remove("TemplateFile") + } + elseif ($PSBoundParameters.ContainsKey("TemplateJson")) + { + $null = $PSBoundParameters.Add("Template", $TemplateJson) + $null = $PSBoundParameters.Remove("TemplateJson") + } + elseif ($PSBoundParameters.ContainsKey("TemplateObject")) + { + $TemplateJson = ConvertTo-Json -InputObject $TemplateObject + $null = $PSBoundParameters.Add("Template", $TemplateJson) + $null = $PSBoundParameters.Remove("TemplateObject") + } + + if ($PSBoundParameters.ContainsKey("TemplateParameterFile")) + { + if (!(Test-Path -Path $TemplateParameterFile)) + { + throw "Unable to find template parameter file '$TemplateParameterFile'." + } + + $ParameterJson = [System.IO.File]::ReadAllText($TemplateParameterFile) + $ParameterObject = ConvertFrom-Json -InputObject $ParameterJson + $ParameterHashtable = @{} + $ParameterObject.PSObject.Properties | ForEach-Object { $ParameterHashtable[$_.Name] = $_.Value } + $ParameterHashtable.Remove("`$schema") + $ParameterHashtable.Remove("contentVersion") + $NestedValues = $ParameterHashtable.parameters + if ($null -ne $NestedValues) + { + $ParameterHashtable.Remove("parameters") + $NestedValues.PSObject.Properties | ForEach-Object { $ParameterHashtable[$_.Name] = $_.Value } + } + + $ParameterJson = ConvertTo-Json -InputObject $ParameterHashtable + $null = $PSBoundParameters.Add("DeploymentPropertyParameter", $ParameterJson) + $null = $PSBoundParameters.Remove("TemplateParameterFile") + } + elseif ($PSBoundParameters.ContainsKey("TemplateParameterJson")) + { + $null = $PSBoundParameters.Add("DeploymentPropertyParameter", $TemplateParameterJson) + $null = $PSBoundParameters.Remove("TemplateParameterJson") + } + elseif ($PSBoundParameters.ContainsKey("TemplateParameterObject")) + { + $TemplateParameterObject.Remove("`$schema") + $TemplateParameterObject.Remove("contentVersion") + $NestedValues = $TemplateParameterObject.parameters + if ($null -ne $NestedValues) + { + $TemplateParameterObject.Remove("parameters") + $NestedValues.PSObject.Properties | ForEach-Object { $TemplateParameterObject[$_.Name] = $_.Value } + } + + $TemplateParameterJson = ConvertTo-Json -InputObject $TemplateParameterObject + $null = $PSBoundParameters.Add("DeploymentPropertyParameter", $TemplateParameterJson) + $null = $PSBoundParameters.Remove("TemplateParameterObject") + } + + if (!$PSBoundParameters.ContainsKey("Name")) + { + $DeploymentName = (New-Guid).Guid + $null = $PSBoundParameters.Add("Name", $DeploymentName) + } + + if ($PSBoundParameters.ContainsKey("ResourceGroupName")) + { + Az.Resources.TestSupport.private\New-AzDeployment_CreateExpanded @PSBoundParameters + } + else + { + Az.Resources.TestSupport.private\New-AzDeployment_CreateExpanded @PSBoundParameters + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/tools/Resources/docs/README.md b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/docs/README.md new file mode 100644 index 000000000000..3b56cb561c1f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/docs/README.md @@ -0,0 +1,11 @@ +# Docs +This directory contains the documentation of the cmdlets for the `Az.Resources` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overriden on regeneration*. To update documentation examples, please use the `..\examples` folder. + +## Info +- Modifiable: no +- Generated: all +- Committed: yes +- Packaged: yes + +## Details +The process of documentation generation loads `Az.Resources` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/tools/Resources/examples/README.md b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/examples/README.md new file mode 100644 index 000000000000..ac871d71fc72 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/examples/README.md @@ -0,0 +1,11 @@ +# Examples +This directory contains examples from the exported cmdlets of the module. When `build-module.ps1` is ran, example stub files will be generated here. If your module support Azure Profiles, the example stubs will be in individual profile folders. These example stubs should be updated to show how the cmdlet is used. The examples are imported into the documentation when `generate-help.ps1` is ran. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: no + +## Purpose +This separates the example documentation details from the generated documentation information provided directly from the generated cmdlets. Since the cmdlets don't have examples from the REST spec, this provides a means to add examples easily. The example stubs provide the markdown format that is required. The 3 core elements are: the name of the example, the code information of the example, and the description of the example. That information, if the markdown format is followed, will be available to documentation generation and be part of the documents in the `..\docs` folder. \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/tools/Resources/how-to.md b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/how-to.md new file mode 100644 index 000000000000..129cad12cc31 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/how-to.md @@ -0,0 +1,60 @@ +# How-To +This document describes how to develop for `Az.Resources`. + +## Building `Az.Resources` +To build, run the `build-module.ps1` at the root of the module directory. This will generate the proxy script cmdlets that are the cmdlets being exported by this module. After the build completes, the proxy script cmdlets will be output to the `exports` folder. To read more about the proxy script cmdlets, look at the [README.md](exports/README.md) in the `exports` folder. + +## Creating custom cmdlets +To add cmdlets that were not generated by the REST specification, use the `custom` folder. This folder allows you to add handwritten `.ps1` and `.cs` files. Currently, we support using `.ps1` scripts as new cmdlets or as additional low-level variants (via `ParameterSet`), and `.cs` files as low-level (variants) cmdlets that the exported script cmdlets call. We do not support exporting any `.cs` (dll) cmdlets directly. To read more about custom cmdlets, look at the [README.md](custom/README.md) in the `custom` folder. + +## Generating documentation +To generate documentation, the process is now integrated into the `build-module.ps1` script. If you don't want to run this process as part of `build-module.ps1`, you can provide the `-NoDocs` switch. If you want to run documentation generation after the build process, you may still run the `generate-help.ps1` script. Overall, the process will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [README.md](examples/README.md) in the `examples` folder. To read more about documentation, look at the [README.md](docs/README.md) in the `docs` folder. + +## Testing `Az.Resources` +To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [README.md](examples/README.md) in the `examples` folder. + +## Packing `Az.Resources` +To pack `Az.Resources` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://learn.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. + +## Module Script Details +There are multiple scripts created for performing different actions for developing `Az.Resources`. +- `build-module.ps1` + - Builds the module DLL (`./bin/Az.Resources.private.dll`), creates the exported cmdlets and documentation, generates custom cmdlet test stubs and exported cmdlet example stubs, and updates `./Az.Resources.psd1` with Azure profile information. + - **Parameters**: [`Switch` parameters] + - `-Run`: After building, creates an isolated PowerShell session and loads `Az.Resources`. + - `-Test`: After building, runs the `Pester` tests defined in the `test` folder. + - `-Docs`: After building, generates the Markdown documents for the modules into the `docs` folder. + - `-Pack`: After building, packages the module into a `.nupkg`. + - `-Code`: After building, opens a VSCode window with the module's directory and runs (see `-Run`) the module. + - `-Release`: Builds the module in `Release` configuration (as opposed to `Debug` configuration). + - `-NoDocs`: Supresses writing the documentation markdown files as part of the cmdlet exporting process. + - `-Debugger`: Used when attaching the debugger in Visual Studio to the PowerShell session, and running the build process without recompiling the DLL. This suppresses running the script as an isolated process. +- `run-module.ps1` + - Creates an isolated PowerShell session and loads `Az.Resources` into the session. + - Same as `-Run` in `build-module.ps1`. + - **Parameters**: [`Switch` parameters] + - `-Code`: Opens a VSCode window with the module's directory. + - Same as `-Code` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. +- `test-module.ps1` + - Runs the `Pester` tests defined in the `test` folder. + - Same as `-Test` in `build-module.ps1`. +- `pack-module.ps1` + - Packages the module into a `.nupkg` for distribution. + - Same as `-Pack` in `build-module.ps1`. +- `generate-help.ps1` + - Generates the Markdown documents for the modules into the `docs` folder. + - Same as `-Docs` in `build-module.ps1`. + - This process is now integrated into `build-module.ps1` automatically. To disable, use `-NoDocs` when running `build-module.ps1`. +- `generate-portal-ux.ps1` + - Generates a folder dedicated to Azure-specific content and includes metadata files essential for enhancing the user experience (UX) within the Azure portal. +- `export-surface.ps1` + - Generates Markdown documents for both the cmdlet surface and the model (class) surface of the module. + - These files are placed into the `resources` folder. + - Used for investigating the surface of your module. These are *not* documentation for distribution. +- `check-dependencies.ps1` + - Used in `run-module.ps1` and `test-module.ps1` to verify dependent modules are available to run those tasks. + - It will download local (within the module's directory structure) versions of those modules as needed. + - This script *does not* need to be ran by-hand. \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/tools/Resources/license.txt b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/license.txt new file mode 100644 index 000000000000..3d3f8f90d5d7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/license.txt @@ -0,0 +1,203 @@ +MICROSOFT SOFTWARE LICENSE TERMS + +MICROSOFT AZURE POWERSHELL + +These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. + +BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. + + +-----------------START OF LICENSE-------------------------- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +-------------------END OF LICENSE------------------------------------------ + + +----------------START OF THIRD PARTY NOTICE-------------------------------- + +The software includes Newtonsoft.Json. The MIT License set out below is provided for informational purposes only. It is not the license that governs any part of the software. + +Newtonsoft.Json + +The MIT License (MIT) +Copyright (c) 2007 James Newton-King +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +-------------END OF THIRD PARTY NOTICE---------------------------------------- + diff --git a/src/DnsResolver/DnsResolver.Autorest/tools/Resources/resources/CmdletSurface-latest-2019-04-30.md b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/resources/CmdletSurface-latest-2019-04-30.md new file mode 100644 index 000000000000..278ea694e0fa --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/resources/CmdletSurface-latest-2019-04-30.md @@ -0,0 +1,598 @@ +### AzADApplication [Get, New, Remove, Update] `IApplication, Boolean` + - TenantId `String` + - ObjectId `String` + - IncludeDeleted `SwitchParameter` + - InputObject `IResourcesIdentity` + - HardDelete `SwitchParameter` + - Filter `String` + - IdentifierUri `String` + - DisplayNameStartWith `String` + - DisplayName `String` + - ApplicationId `String` + - AllowGuestsSignIn `SwitchParameter` + - AllowPassthroughUser `SwitchParameter` + - AppLogoUrl `String` + - AppPermission `String[]` + - AppRole `IAppRole[]` + - AvailableToOtherTenants `SwitchParameter` + - ErrorUrl `String` + - GroupMembershipClaim `GroupMembershipClaimTypes` + - Homepage `String` + - InformationalUrlMarketing `String` + - InformationalUrlPrivacy `String` + - InformationalUrlSupport `String` + - InformationalUrlTermsOfService `String` + - IsDeviceOnlyAuthSupported `SwitchParameter` + - KeyCredentials `IKeyCredential[]` + - KnownClientApplication `String[]` + - LogoutUrl `String` + - Oauth2AllowImplicitFlow `SwitchParameter` + - Oauth2AllowUrlPathMatching `SwitchParameter` + - Oauth2Permission `IOAuth2Permission[]` + - Oauth2RequirePostResponse `SwitchParameter` + - OptionalClaimAccessToken `IOptionalClaim[]` + - OptionalClaimIdToken `IOptionalClaim[]` + - OptionalClaimSamlToken `IOptionalClaim[]` + - OrgRestriction `String[]` + - PasswordCredentials `IPasswordCredential[]` + - PreAuthorizedApplication `IPreAuthorizedApplication[]` + - PublicClient `SwitchParameter` + - PublisherDomain `String` + - ReplyUrl `String[]` + - RequiredResourceAccess `IRequiredResourceAccess[]` + - SamlMetadataUrl `String` + - SignInAudience `String` + - WwwHomepage `String` + - Parameter `IApplicationCreateParameters` + - PassThru `SwitchParameter` + - AvailableToOtherTenant `SwitchParameter` + +### AzADApplicationOwner [Add, Get, Remove] `Boolean, IDirectoryObject` + - ObjectId `String` + - TenantId `String` + - InputObject `IResourcesIdentity` + - OwnerObjectId `String` + - AdditionalProperties `Hashtable` + - Url `String` + - Parameter `IAddOwnerParameters` + +### AzADDeletedApplication [Restore] `IApplication` + - ObjectId `String` + - TenantId `String` + - InputObject `IResourcesIdentity` + +### AzADGroup [Get, New, Remove] `IAdGroup, Boolean` + - TenantId `String` + - ObjectId `String` + - InputObject `IResourcesIdentity` + - Filter `String` + - DisplayNameStartsWith `String` + - DisplayName `String` + - AdditionalProperties `Hashtable` + - MailNickname `String` + - Parameter `IGroupCreateParameters` + - PassThru `SwitchParameter` + +### AzADGroupMember [Add, Get, Remove, Test] `Boolean, IDirectoryObject, SwitchParameter` + - GroupObjectId `String` + - TenantId `String` + - MemberObjectId `String[]` + - MemberUserPrincipalName `String[]` + - GroupObject `IAdGroup` + - GroupDisplayName `String` + - InputObject `IResourcesIdentity` + - ObjectId `String` + - ShowOwner `SwitchParameter` + - PassThru `SwitchParameter` + - AdditionalProperties `Hashtable` + - Url `String` + - Parameter `IGroupAddMemberParameters` + - DisplayName `String` + - GroupId `String` + - MemberId `String` + +### AzADGroupMemberGroup [Get] `String` + - ObjectId `String` + - TenantId `String` + - InputObject `IResourcesIdentity` + - AdditionalProperties `Hashtable` + - SecurityEnabledOnly `SwitchParameter` + - Parameter `IGroupGetMemberGroupsParameters` + +### AzADGroupOwner [Add, Remove] `Boolean` + - ObjectId `String` + - TenantId `String` + - GroupObjectId `String` + - MemberObjectId `String[]` + - InputObject `IResourcesIdentity` + - OwnerObjectId `String` + - PassThru `SwitchParameter` + - AdditionalProperties `Hashtable` + - Url `String` + - Parameter `IAddOwnerParameters` + +### AzADObject [Get] `IDirectoryObject` + - TenantId `String` + - InputObject `IResourcesIdentity` + - AdditionalProperties `Hashtable` + - IncludeDirectoryObjectReference `SwitchParameter` + - ObjectId `String[]` + - Type `String[]` + - Parameter `IGetObjectsParameters` + +### AzADServicePrincipal [Get, New, Remove, Update] `IServicePrincipal, Boolean` + - TenantId `String` + - ObjectId `String` + - InputObject `IResourcesIdentity` + - Filter `String` + - ApplicationObject `IApplication` + - ServicePrincipalName `String` + - DisplayNameBeginsWith `String` + - DisplayName `String` + - ApplicationId `String` + - AccountEnabled `SwitchParameter` + - AppId `String` + - AppRoleAssignmentRequired `SwitchParameter` + - KeyCredentials `IKeyCredential[]` + - PasswordCredentials `IPasswordCredential[]` + - ServicePrincipalType `String` + - Tag `String[]` + - Parameter `IServicePrincipalCreateParameters` + - PassThru `SwitchParameter` + +### AzADServicePrincipalOwner [Get] `IDirectoryObject` + - ObjectId `String` + - TenantId `String` + +### AzADUser [Get, New, Remove, Update] `IUser, Boolean` + - TenantId `String` + - UpnOrObjectId `String` + - InputObject `IResourcesIdentity` + - Filter `String` + - DisplayName `String` + - StartsWith `String` + - Mail `String` + - MailNickname `String` + - Parameter `IUserCreateParameters` + - AccountEnabled `SwitchParameter` + - GivenName `String` + - ImmutableId `String` + - PasswordProfile `IPasswordProfile` + - Surname `String` + - UsageLocation `String` + - UserPrincipalName `String` + - UserType `UserType` + - PassThru `SwitchParameter` + - EnableAccount `SwitchParameter` + +### AzADUserMemberGroup [Get] `String` + - ObjectId `String` + - TenantId `String` + - InputObject `IResourcesIdentity` + - AdditionalProperties `Hashtable` + - SecurityEnabledOnly `SwitchParameter` + - Parameter `IUserGetMemberGroupsParameters` + +### AzApplicationKeyCredentials [Get, Update] `IKeyCredential, Boolean` + - ObjectId `String` + - TenantId `String` + - InputObject `IResourcesIdentity` + - Parameter `IKeyCredentialsUpdateParameters` + - Value `IKeyCredential[]` + +### AzApplicationPasswordCredentials [Get, Update] `IPasswordCredential, Boolean` + - ObjectId `String` + - TenantId `String` + - InputObject `IResourcesIdentity` + - Parameter `IPasswordCredentialsUpdateParameters` + - Value `IPasswordCredential[]` + +### AzAuthorizationOperation [Get] `IOperation` + +### AzClassicAdministrator [Get] `IClassicAdministrator` + - SubscriptionId `String[]` + +### AzDenyAssignment [Get] `IDenyAssignment` + - Id `String` + - Scope `String` + - InputObject `IResourcesIdentity` + - ParentResourcePath `String` + - ResourceGroupName `String` + - ResourceName `String` + - ResourceProviderNamespace `String` + - ResourceType `String` + - SubscriptionId `String[]` + - Filter `String` + +### AzDeployment [Get, New, Remove, Set, Stop, Test] `IDeploymentExtended, Boolean, IDeploymentValidateResult` + - SubscriptionId `String[]` + - Name `String` + - ResourceGroupName `String` + - Id `String` + - InputObject `IResourcesIdentity` + - Filter `String` + - Top `Int32` + - Parameter `IDeployment` + - DebugSettingDetailLevel `String` + - Location `String` + - Mode `DeploymentMode` + - OnErrorDeploymentName `String` + - OnErrorDeploymentType `OnErrorDeploymentType` + - ParameterLinkContentVersion `String` + - ParameterLinkUri `String` + - Template `IDeploymentPropertiesTemplate` + - TemplateLinkContentVersion `String` + - TemplateLinkUri `String` + - PassThru `SwitchParameter` + +### AzDeploymentExistence [Test] `Boolean` + - DeploymentName `String` + - SubscriptionId `String` + - ResourceGroupName `String` + - InputObject `IResourcesIdentity` + +### AzDeploymentOperation [Get] `IDeploymentOperation` + - DeploymentName `String` + - SubscriptionId `String[]` + - ResourceGroupName `String` + - OperationId `String` + - DeploymentObject `IDeploymentExtended` + - InputObject `IResourcesIdentity` + - Top `Int32` + +### AzDeploymentTemplate [Export] `IDeploymentExportResultTemplate` + - DeploymentName `String` + - SubscriptionId `String` + - ResourceGroupName `String` + - InputObject `IResourcesIdentity` + +### AzDomain [Get] `IDomain` + - TenantId `String` + - Name `String` + - InputObject `IResourcesIdentity` + - Filter `String` + +### AzElevateGlobalAdministratorAccess [Invoke] `Boolean` + +### AzEntity [Get] `IEntityInfo` + - Filter `String` + - GroupName `String` + - Search `String` + - Select `String` + - Skip `Int32` + - Skiptoken `String` + - Top `Int32` + - View `String` + - CacheControl `String` + +### AzManagedApplication [Get, New, Remove, Set, Update] `IApplication, Boolean` + - Id `String` + - Name `String` + - ResourceGroupName `String` + - SubscriptionId `String[]` + - InputObject `IResourcesIdentity` + - Parameter `IApplication` + - ApplicationDefinitionId `String` + - IdentityType `ResourceIdentityType` + - Kind `String` + - Location `String` + - ManagedBy `String` + - ManagedResourceGroupId `String` + - PlanName `String` + - PlanProduct `String` + - PlanPromotionCode `String` + - PlanPublisher `String` + - PlanVersion `String` + - SkuCapacity `Int32` + - SkuFamily `String` + - SkuModel `String` + - SkuName `String` + - SkuSize `String` + - SkuTier `String` + - Tag `Hashtable` + +### AzManagedApplicationDefinition [Get, New, Remove, Set] `IApplicationDefinition, Boolean` + - Id `String` + - Name `String` + - ResourceGroupName `String` + - SubscriptionId `String[]` + - InputObject `IResourcesIdentity` + - Parameter `IApplicationDefinition` + - Artifact `IApplicationArtifact[]` + - Authorization `IApplicationProviderAuthorization[]` + - CreateUiDefinition `IApplicationDefinitionPropertiesCreateUiDefinition` + - Description `String` + - DisplayName `String` + - IdentityType `ResourceIdentityType` + - IsEnabled `String` + - Location `String` + - LockLevel `ApplicationLockLevel` + - MainTemplate `IApplicationDefinitionPropertiesMainTemplate` + - ManagedBy `String` + - PackageFileUri `String` + - SkuCapacity `Int32` + - SkuFamily `String` + - SkuModel `String` + - SkuName `String` + - SkuSize `String` + - SkuTier `String` + - Tag `Hashtable` + +### AzManagementGroup [Get, New, Remove, Set, Update] `IManagementGroup, IManagementGroupInfo, Boolean` + - GroupId `String` + - InputObject `IResourcesIdentity` + - Skiptoken `String` + - Expand `String` + - Filter `String` + - Recurse `SwitchParameter` + - CacheControl `String` + - DisplayName `String` + - Name `String` + - ParentId `String` + - CreateManagementGroupRequest `ICreateManagementGroupRequest` + - PatchGroupRequest `IPatchManagementGroupRequest` + +### AzManagementGroupDescendant [Get] `IDescendantInfo` + - GroupId `String` + - InputObject `IResourcesIdentity` + - Skiptoken `String` + - Top `Int32` + +### AzManagementGroupSubscription [New, Remove] `Boolean` + - GroupId `String` + - SubscriptionId `String` + - InputObject `IResourcesIdentity` + - CacheControl `String` + +### AzManagementLock [Get, New, Remove, Set] `IManagementLockObject, Boolean` + - SubscriptionId `String[]` + - LockName `String` + - ResourceGroupName `String` + - ParentResourcePath `String` + - ResourceName `String` + - ResourceProviderNamespace `String` + - ResourceType `String` + - Scope `String` + - InputObject `IResourcesIdentity` + - Filter `String` + - Level `LockLevel` + - Note `String` + - Owner `IManagementLockOwner[]` + - Parameter `IManagementLockObject` + +### AzNameAvailability [Test] `ICheckNameAvailabilityResult` + - Name `String` + - Type `Type` + - CheckNameAvailabilityRequest `ICheckNameAvailabilityRequest` + +### AzOAuth2PermissionGrant [Get, New, Remove] `IOAuth2PermissionGrant, Boolean` + - TenantId `String` + - InputObject `IResourcesIdentity` + - Filter `String` + - ClientId `String` + - ConsentType `ConsentType` + - ExpiryTime `String` + - ObjectId `String` + - OdataType `String` + - PrincipalId `String` + - ResourceId `String` + - Scope `String` + - StartTime `String` + - Body `IOAuth2PermissionGrant` + +### AzPermission [Get] `IPermission` + - ResourceGroupName `String` + - SubscriptionId `String[]` + - ParentResourcePath `String` + - ResourceName `String` + - ResourceProviderNamespace `String` + - ResourceType `String` + +### AzPolicyAssignment [Get, New, Remove] `IPolicyAssignment` + - Id `String` + - Name `String` + - Scope `String` + - InputObject `IResourcesIdentity` + - ParentResourcePath `String` + - ResourceGroupName `String` + - ResourceName `String` + - ResourceProviderNamespace `String` + - ResourceType `String` + - SubscriptionId `String[]` + - PolicyDefinitionId `String` + - IncludeDescendent `SwitchParameter` + - Filter `String` + - Parameter `IPolicyAssignment` + - Description `String` + - DisplayName `String` + - IdentityType `ResourceIdentityType` + - Location `String` + - Metadata `IPolicyAssignmentPropertiesMetadata` + - NotScope `String[]` + - SkuName `String` + - SkuTier `String` + - PropertiesScope `String` + +### AzPolicyDefinition [Get, New, Remove, Set] `IPolicyDefinition, Boolean` + - SubscriptionId `String[]` + - Name `String` + - ManagementGroupName `String` + - Id `String` + - InputObject `IResourcesIdentity` + - BuiltIn `SwitchParameter` + - Parameter `IPolicyDefinition` + - Description `String` + - DisplayName `String` + - Metadata `IPolicyDefinitionPropertiesMetadata` + - Mode `PolicyMode` + - PolicyRule `IPolicyDefinitionPropertiesPolicyRule` + - PolicyType `PolicyType` + - PassThru `SwitchParameter` + +### AzPolicySetDefinition [Get, New, Remove, Set] `IPolicySetDefinition, Boolean` + - SubscriptionId `String[]` + - Name `String` + - ManagementGroupName `String` + - Id `String` + - InputObject `IResourcesIdentity` + - BuiltIn `SwitchParameter` + - Parameter `IPolicySetDefinition` + - Description `String` + - DisplayName `String` + - Metadata `IPolicySetDefinitionPropertiesMetadata` + - PolicyDefinition `IPolicyDefinitionReference[]` + - PolicyType `PolicyType` + - PassThru `SwitchParameter` + +### AzProviderFeature [Get, Register] `IFeatureResult` + - SubscriptionId `String[]` + - Name `String` + - ResourceProviderNamespace `String` + - InputObject `IResourcesIdentity` + +### AzProviderOperationsMetadata [Get] `IProviderOperationsMetadata` + - ResourceProviderNamespace `String` + - InputObject `IResourcesIdentity` + - Expand `String` + +### AzResource [Get, Move, New, Remove, Set, Test, Update] `IGenericResource, Boolean` + - ResourceId `String` + - Name `String` + - ParentResourcePath `String` + - ProviderNamespace `String` + - ResourceGroupName `String` + - ResourceType `String` + - SubscriptionId `String[]` + - InputObject `IResourcesIdentity` + - SourceResourceGroupName `String` + - ResourceName `String` + - ResourceProviderNamespace `String` + - Expand `String` + - Top `Int32` + - TagName `String` + - TagValue `String` + - Tag `Hashtable` + - Filter `String` + - PassThru `SwitchParameter` + - Resource `String[]` + - TargetResourceGroup `String` + - TargetSubscriptionId `String` + - TargetResourceGroupName `String` + - Parameter `IResourcesMoveInfo` + - IdentityType `ResourceIdentityType` + - IdentityUserAssignedIdentity `Hashtable` + - Kind `String` + - Location `String` + - ManagedBy `String` + - PlanName `String` + - PlanProduct `String` + - PlanPromotionCode `String` + - PlanPublisher `String` + - PlanVersion `String` + - Property `IGenericResourceProperties` + - SkuCapacity `Int32` + - SkuFamily `String` + - SkuModel `String` + - SkuName `String` + - SkuSize `String` + - SkuTier `String` + +### AzResourceGroup [Export, Get, New, Remove, Set, Test, Update] `IResourceGroupExportResult, IResourceGroup, Boolean` + - ResourceGroupName `String` + - SubscriptionId `String` + - InputObject `IResourcesIdentity` + - Name `String` + - Id `String` + - Filter `String` + - Top `Int32` + - TagName `String` + - TagValue `String` + - Tag `Hashtable` + - Option `String` + - Resource `String[]` + - Parameter `IExportTemplateRequest` + - Location `String` + - ManagedBy `String` + +### AzResourceLink [Get, New, Remove, Set] `IResourceLink, Boolean` + - ResourceId `String` + - InputObject `IResourcesIdentity` + - SubscriptionId `String[]` + - Scope `String` + - FilterById `String` + - FilterByScope `Filter` + - Note `String` + - TargetId `String` + - Parameter `IResourceLink` + +### AzResourceMove [Test] `Boolean` + - SourceResourceGroupName `String` + - SubscriptionId `String` + - InputObject `IResourcesIdentity` + - PassThru `SwitchParameter` + - Resource `String[]` + - TargetResourceGroup `String` + - TargetSubscriptionId `String` + - TargetResourceGroupName `String` + - Parameter `IResourcesMoveInfo` + +### AzResourceProvider [Get, Register, Unregister] `IProvider` + - SubscriptionId `String[]` + - ResourceProviderNamespace `String` + - InputObject `IResourcesIdentity` + - Expand `String` + - Top `Int32` + +### AzResourceProviderOperationDetail [Get] `IResourceProviderOperationDefinition` + - ResourceProviderNamespace `String` + +### AzRoleAssignment [Get, New, Remove] `IRoleAssignment` + - Id `String` + - Name `String` + - Scope `String` + - RoleId `String` + - InputObject `IResourcesIdentity` + - ParentResourceId `String` + - ResourceGroupName `String` + - ResourceName `String` + - ResourceProviderNamespace `String` + - ResourceType `String` + - SubscriptionId `String[]` + - ExpandPrincipalGroups `String` + - ServicePrincipalName `String` + - SignInName `String` + - Filter `String` + - CanDelegate `SwitchParameter` + - PrincipalId `String` + - RoleDefinitionId `String` + - Parameter `IRoleAssignmentCreateParameters` + - PrincipalType `PrincipalType` + +### AzRoleDefinition [Get, New, Remove, Set] `IRoleDefinition` + - Id `String` + - Scope `String` + - InputObject `IResourcesIdentity` + - Name `String` + - Custom `SwitchParameter` + - Filter `String` + - AssignableScope `String[]` + - Description `String` + - Permission `IPermission[]` + - RoleName `String` + - RoleType `String` + - RoleDefinition `IRoleDefinition` + +### AzSubscriptionLocation [Get] `ILocation` + - SubscriptionId `String[]` + +### AzTag [Get, New, Remove] `ITagDetails, Boolean` + - SubscriptionId `String[]` + - Name `String` + - Value `String` + - InputObject `IResourcesIdentity` + - PassThru `SwitchParameter` + +### AzTenantBackfill [Start] `ITenantBackfillStatusResult` + +### AzTenantBackfillStatus [Invoke] `ITenantBackfillStatusResult` + diff --git a/src/DnsResolver/DnsResolver.Autorest/tools/Resources/resources/ModelSurface.md b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/resources/ModelSurface.md new file mode 100644 index 000000000000..378e3ec418a8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/resources/ModelSurface.md @@ -0,0 +1,1645 @@ +### AddOwnerParameters \ [Api16] + - Url `String` + +### AdGroup \ [Api16] + - DeletionTimestamp `DateTime?` **{MinValue, MaxValue}** + - DisplayName `String` + - Mail `String` + - MailEnabled `Boolean?` + - MailNickname `String` + - ObjectId `String` + - ObjectType `String` + - SecurityEnabled `Boolean?` + +### AliasPathType [Api20180501] + - ApiVersion `String[]` + - Path `String` + +### AliasType [Api20180501] + - Name `String` + - Path `IAliasPathType[]` + +### Appliance [Api20160901Preview] + - DefinitionId `String` + - Id `String` + - Identity `IIdentity` + - IdentityPrincipalId `String` + - IdentityTenantId `String` + - IdentityType `ResourceIdentityType?` **{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}** + - Kind `String` + - Location `String` + - ManagedBy `String` + - ManagedResourceGroupId `String` + - Name `String` + - Output `IAppliancePropertiesOutputs` + - Parameter `IAppliancePropertiesParameters` + - PlanName `String` + - PlanProduct `String` + - PlanPromotionCode `String` + - PlanPublisher `String` + - PlanVersion `String` + - ProvisioningState `String` + - Sku `ISku` + - SkuCapacity `Int32?` + - SkuFamily `String` + - SkuModel `String` + - SkuName `String` + - SkuSize `String` + - SkuTier `String` + - Tag `IResourceTags ` + - Type `String` + - UiDefinitionUri `String` + +### ApplianceArtifact [Api20160901Preview] + - Name `String` + - Type `ApplianceArtifactType?` **{Custom, Template}** + - Uri `String` + +### ApplianceDefinition [Api20160901Preview] + - Artifact `IApplianceArtifact[]` + - Authorization `IApplianceProviderAuthorization[]` + - Description `String` + - DisplayName `String` + - Id `String` + - Identity `IIdentity` + - IdentityPrincipalId `String` + - IdentityTenantId `String` + - IdentityType `ResourceIdentityType?` **{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}** + - Location `String` + - LockLevel `ApplianceLockLevel` **{CanNotDelete, None, ReadOnly}** + - ManagedBy `String` + - Name `String` + - PackageFileUri `String` + - Sku `ISku` + - SkuCapacity `Int32?` + - SkuFamily `String` + - SkuModel `String` + - SkuName `String` + - SkuSize `String` + - SkuTier `String` + - Tag `IResourceTags ` + - Type `String` + +### ApplianceDefinitionListResult [Api20160901Preview] + - NextLink `String` + - Value `IApplianceDefinition[]` + +### ApplianceDefinitionProperties [Api20160901Preview] + - Artifact `IApplianceArtifact[]` + - Authorization `IApplianceProviderAuthorization[]` + - Description `String` + - DisplayName `String` + - LockLevel `ApplianceLockLevel` **{CanNotDelete, None, ReadOnly}** + - PackageFileUri `String` + +### ApplianceListResult [Api20160901Preview] + - NextLink `String` + - Value `IAppliance[]` + +### AppliancePatchable [Api20160901Preview] + - ApplianceDefinitionId `String` + - Id `String` + - Identity `IIdentity` + - IdentityPrincipalId `String` + - IdentityTenantId `String` + - IdentityType `ResourceIdentityType?` **{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}** + - Kind `String` + - Location `String` + - ManagedBy `String` + - ManagedResourceGroupId `String` + - Name `String` + - Output `IAppliancePropertiesPatchableOutputs` + - Parameter `IAppliancePropertiesPatchableParameters` + - PlanName `String` + - PlanProduct `String` + - PlanPromotionCode `String` + - PlanPublisher `String` + - PlanVersion `String` + - ProvisioningState `String` + - Sku `ISku` + - SkuCapacity `Int32?` + - SkuFamily `String` + - SkuModel `String` + - SkuName `String` + - SkuSize `String` + - SkuTier `String` + - Tag `IResourceTags ` + - Type `String` + - UiDefinitionUri `String` + +### ApplianceProperties [Api20160901Preview] + - ApplianceDefinitionId `String` + - ManagedResourceGroupId `String` + - Output `IAppliancePropertiesOutputs` + - Parameter `IAppliancePropertiesParameters` + - ProvisioningState `String` + - UiDefinitionUri `String` + +### AppliancePropertiesPatchable [Api20160901Preview] + - ApplianceDefinitionId `String` + - ManagedResourceGroupId `String` + - Output `IAppliancePropertiesPatchableOutputs` + - Parameter `IAppliancePropertiesPatchableParameters` + - ProvisioningState `String` + - UiDefinitionUri `String` + +### ApplianceProviderAuthorization [Api20160901Preview] + - PrincipalId `String` + - RoleDefinitionId `String` + +### Application \ [Api16, Api20170901, Api20180601] + - AllowGuestsSignIn `Boolean?` + - AllowPassthroughUser `Boolean?` + - AppId `String` + - AppLogoUrl `String` + - AppPermission `String[]` + - AppRole `IAppRole[]` + - AvailableToOtherTenant `Boolean?` + - DefinitionId `String` + - DeletionTimestamp `DateTime?` **{MinValue, MaxValue}** + - DisplayName `String` + - ErrorUrl `String` + - GroupMembershipClaim `GroupMembershipClaimTypes?` **{All, None, SecurityGroup}** + - Homepage `String` + - Id `String` + - IdentifierUri `String[]` + - Identity `IIdentity` + - IdentityPrincipalId `String` + - IdentityTenantId `String` + - IdentityType `ResourceIdentityType?` **{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}** + - InformationalUrlMarketing `String` + - InformationalUrlPrivacy `String` + - InformationalUrlSupport `String` + - InformationalUrlTermsOfService `String` + - IsDeviceOnlyAuthSupported `Boolean?` + - KeyCredentials `IKeyCredential[]` + - Kind `String` + - KnownClientApplication `String[]` + - Location `String` + - LogoutUrl `String` + - ManagedBy `String` + - ManagedResourceGroupId `String` + - Name `String` + - Oauth2AllowImplicitFlow `Boolean?` + - Oauth2AllowUrlPathMatching `Boolean?` + - Oauth2Permission `IOAuth2Permission[]` + - Oauth2RequirePostResponse `Boolean?` + - ObjectId `String` + - ObjectType `String` + - OptionalClaimAccessToken `IOptionalClaim[]` + - OptionalClaimIdToken `IOptionalClaim[]` + - OptionalClaimSamlToken `IOptionalClaim[]` + - OrgRestriction `String[]` + - Output `IApplicationPropertiesOutputs` + - Parameter `IApplicationPropertiesParameters` + - PasswordCredentials `IPasswordCredential[]` + - PlanName `String` + - PlanProduct `String` + - PlanPromotionCode `String` + - PlanPublisher `String` + - PlanVersion `String` + - PreAuthorizedApplication `IPreAuthorizedApplication[]` + - ProvisioningState `String` + - PublicClient `Boolean?` + - PublisherDomain `String` + - ReplyUrl `String[]` + - RequiredResourceAccess `IRequiredResourceAccess[]` + - SamlMetadataUrl `String` + - SignInAudience `String` + - Sku `ISku` + - SkuCapacity `Int32?` + - SkuFamily `String` + - SkuModel `String` + - SkuName `String` + - SkuSize `String` + - SkuTier `String` + - Tag `IResourceTags ` + - Type `String` + - UiDefinitionUri `String` + - WwwHomepage `String` + +### ApplicationArtifact [Api20170901] + - Name `String` + - Type `ApplicationArtifactType?` **{Custom, Template}** + - Uri `String` + +### ApplicationBase [Api16] + - AllowGuestsSignIn `Boolean?` + - AllowPassthroughUser `Boolean?` + - AppLogoUrl `String` + - AppPermission `String[]` + - AppRole `IAppRole[]` + - AvailableToOtherTenant `Boolean?` + - ErrorUrl `String` + - GroupMembershipClaim `GroupMembershipClaimTypes?` **{All, None, SecurityGroup}** + - Homepage `String` + - InformationalUrlMarketing `String` + - InformationalUrlPrivacy `String` + - InformationalUrlSupport `String` + - InformationalUrlTermsOfService `String` + - IsDeviceOnlyAuthSupported `Boolean?` + - KeyCredentials `IKeyCredential[]` + - KnownClientApplication `String[]` + - LogoutUrl `String` + - Oauth2AllowImplicitFlow `Boolean?` + - Oauth2AllowUrlPathMatching `Boolean?` + - Oauth2Permission `IOAuth2Permission[]` + - Oauth2RequirePostResponse `Boolean?` + - OptionalClaimAccessToken `IOptionalClaim[]` + - OptionalClaimIdToken `IOptionalClaim[]` + - OptionalClaimSamlToken `IOptionalClaim[]` + - OrgRestriction `String[]` + - PasswordCredentials `IPasswordCredential[]` + - PreAuthorizedApplication `IPreAuthorizedApplication[]` + - PublicClient `Boolean?` + - PublisherDomain `String` + - ReplyUrl `String[]` + - RequiredResourceAccess `IRequiredResourceAccess[]` + - SamlMetadataUrl `String` + - SignInAudience `String` + - WwwHomepage `String` + +### ApplicationCreateParameters [Api16] + - AllowGuestsSignIn `Boolean?` + - AllowPassthroughUser `Boolean?` + - AppLogoUrl `String` + - AppPermission `String[]` + - AppRole `IAppRole[]` + - AvailableToOtherTenant `Boolean?` + - DisplayName `String` + - ErrorUrl `String` + - GroupMembershipClaim `GroupMembershipClaimTypes?` **{All, None, SecurityGroup}** + - Homepage `String` + - IdentifierUri `String[]` + - InformationalUrl `IInformationalUrl` + - InformationalUrlMarketing `String` + - InformationalUrlPrivacy `String` + - InformationalUrlSupport `String` + - InformationalUrlTermsOfService `String` + - IsDeviceOnlyAuthSupported `Boolean?` + - KeyCredentials `IKeyCredential[]` + - KnownClientApplication `String[]` + - LogoutUrl `String` + - Oauth2AllowImplicitFlow `Boolean?` + - Oauth2AllowUrlPathMatching `Boolean?` + - Oauth2Permission `IOAuth2Permission[]` + - Oauth2RequirePostResponse `Boolean?` + - OptionalClaim `IOptionalClaims` + - OptionalClaimAccessToken `IOptionalClaim[]` + - OptionalClaimIdToken `IOptionalClaim[]` + - OptionalClaimSamlToken `IOptionalClaim[]` + - OrgRestriction `String[]` + - PasswordCredentials `IPasswordCredential[]` + - PreAuthorizedApplication `IPreAuthorizedApplication[]` + - PublicClient `Boolean?` + - PublisherDomain `String` + - ReplyUrl `String[]` + - RequiredResourceAccess `IRequiredResourceAccess[]` + - SamlMetadataUrl `String` + - SignInAudience `String` + - WwwHomepage `String` + +### ApplicationDefinition [Api20170901] + - Artifact `IApplicationArtifact[]` + - Authorization `IApplicationProviderAuthorization[]` + - CreateUiDefinition `IApplicationDefinitionPropertiesCreateUiDefinition` + - Description `String` + - DisplayName `String` + - Id `String` + - Identity `IIdentity` + - IdentityPrincipalId `String` + - IdentityTenantId `String` + - IdentityType `ResourceIdentityType?` **{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}** + - IsEnabled `String` + - Location `String` + - LockLevel `ApplicationLockLevel` **{CanNotDelete, None, ReadOnly}** + - MainTemplate `IApplicationDefinitionPropertiesMainTemplate` + - ManagedBy `String` + - Name `String` + - PackageFileUri `String` + - Sku `ISku` + - SkuCapacity `Int32?` + - SkuFamily `String` + - SkuModel `String` + - SkuName `String` + - SkuSize `String` + - SkuTier `String` + - Tag `IResourceTags ` + - Type `String` + +### ApplicationDefinitionListResult [Api20180601] + - NextLink `String` + - Value `IApplicationDefinition[]` + +### ApplicationDefinitionProperties [Api20170901] + - Artifact `IApplicationArtifact[]` + - Authorization `IApplicationProviderAuthorization[]` + - CreateUiDefinition `IApplicationDefinitionPropertiesCreateUiDefinition` + - Description `String` + - DisplayName `String` + - IsEnabled `String` + - LockLevel `ApplicationLockLevel` **{CanNotDelete, None, ReadOnly}** + - MainTemplate `IApplicationDefinitionPropertiesMainTemplate` + - PackageFileUri `String` + +### ApplicationListResult [Api16, Api20180601] + - NextLink `String` + - OdataNextLink `String` + - Value `IApplication[]` + +### ApplicationPatchable [Api20170901, Api20180601] + - ApplicationDefinitionId `String` + - Id `String` + - Identity `IIdentity` + - IdentityPrincipalId `String` + - IdentityTenantId `String` + - IdentityType `ResourceIdentityType?` **{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}** + - Kind `String` + - Location `String` + - ManagedBy `String` + - ManagedResourceGroupId `String` + - Name `String` + - Output `IApplicationPropertiesPatchableOutputs` + - Parameter `IApplicationPropertiesPatchableParameters` + - PlanName `String` + - PlanProduct `String` + - PlanPromotionCode `String` + - PlanPublisher `String` + - PlanVersion `String` + - ProvisioningState `String` + - Sku `ISku` + - SkuCapacity `Int32?` + - SkuFamily `String` + - SkuModel `String` + - SkuName `String` + - SkuSize `String` + - SkuTier `String` + - Tag `IResourceTags ` + - Type `String` + - UiDefinitionUri `String` + +### ApplicationProperties [Api20170901, Api20180601] + - ApplicationDefinitionId `String` + - ManagedResourceGroupId `String` + - Output `IApplicationPropertiesOutputs` + - Parameter `IApplicationPropertiesParameters` + - ProvisioningState `String` + - UiDefinitionUri `String` + +### ApplicationPropertiesPatchable [Api20170901, Api20180601] + - ApplicationDefinitionId `String` + - ManagedResourceGroupId `String` + - Output `IApplicationPropertiesPatchableOutputs` + - Parameter `IApplicationPropertiesPatchableParameters` + - ProvisioningState `String` + - UiDefinitionUri `String` + +### ApplicationProviderAuthorization [Api20170901] + - PrincipalId `String` + - RoleDefinitionId `String` + +### ApplicationUpdateParameters [Api16] + - AllowGuestsSignIn `Boolean?` + - AllowPassthroughUser `Boolean?` + - AppLogoUrl `String` + - AppPermission `String[]` + - AppRole `IAppRole[]` + - AvailableToOtherTenant `Boolean?` + - DisplayName `String` + - ErrorUrl `String` + - GroupMembershipClaim `GroupMembershipClaimTypes?` **{All, None, SecurityGroup}** + - Homepage `String` + - IdentifierUri `String[]` + - InformationalUrl `IInformationalUrl` + - InformationalUrlMarketing `String` + - InformationalUrlPrivacy `String` + - InformationalUrlSupport `String` + - InformationalUrlTermsOfService `String` + - IsDeviceOnlyAuthSupported `Boolean?` + - KeyCredentials `IKeyCredential[]` + - KnownClientApplication `String[]` + - LogoutUrl `String` + - Oauth2AllowImplicitFlow `Boolean?` + - Oauth2AllowUrlPathMatching `Boolean?` + - Oauth2Permission `IOAuth2Permission[]` + - Oauth2RequirePostResponse `Boolean?` + - OptionalClaim `IOptionalClaims` + - OptionalClaimAccessToken `IOptionalClaim[]` + - OptionalClaimIdToken `IOptionalClaim[]` + - OptionalClaimSamlToken `IOptionalClaim[]` + - OrgRestriction `String[]` + - PasswordCredentials `IPasswordCredential[]` + - PreAuthorizedApplication `IPreAuthorizedApplication[]` + - PublicClient `Boolean?` + - PublisherDomain `String` + - ReplyUrl `String[]` + - RequiredResourceAccess `IRequiredResourceAccess[]` + - SamlMetadataUrl `String` + - SignInAudience `String` + - WwwHomepage `String` + +### AppRole [Api16] + - AllowedMemberType `String[]` + - Description `String` + - DisplayName `String` + - Id `String` + - IsEnabled `Boolean?` + - Value `String` + +### BasicDependency [Api20180501] + - Id `String` + - ResourceName `String` + - ResourceType `String` + +### CheckGroupMembershipParameters \ [Api16] + - GroupId `String` + - MemberId `String` + +### CheckGroupMembershipResult \ [Api16] + - Value `Boolean?` + +### CheckNameAvailabilityRequest [Api20180301Preview] + - Name `String` + - Type `Type?` **{ProvidersMicrosoftManagementGroups}** + +### CheckNameAvailabilityResult [Api20180301Preview] + - Message `String` + - NameAvailable `Boolean?` + - Reason `Reason?` **{AlreadyExists, Invalid}** + +### ClassicAdministrator [Api20150701] + - EmailAddress `String` + - Id `String` + - Name `String` + - Role `String` + - Type `String` + +### ClassicAdministratorListResult [Api20150701] + - NextLink `String` + - Value `IClassicAdministrator[]` + +### ClassicAdministratorProperties [Api20150701] + - EmailAddress `String` + - Role `String` + +### ComponentsSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties [Api20180501] + - ClientId `String` + - PrincipalId `String` + +### CreateManagementGroupChildInfo [Api20180301Preview] + - Child `ICreateManagementGroupChildInfo[]` + - DisplayName `String` + - Id `String` + - Name `String` + - Role `String[]` + - Type `String` + +### CreateManagementGroupDetails [Api20180301Preview] + - ParentDisplayName `String` + - ParentId `String` + - ParentName `String` + - UpdatedBy `String` + - UpdatedTime `DateTime?` **{MinValue, MaxValue}** + - Version `Single?` + +### CreateManagementGroupProperties [Api20180301Preview] + - Child `ICreateManagementGroupChildInfo[]` + - DetailUpdatedBy `String` + - DetailUpdatedTime `DateTime?` **{MinValue, MaxValue}** + - DetailVersion `Single?` + - DisplayName `String` + - ParentDisplayName `String` + - ParentId `String` + - ParentName `String` + - Role `String[]` + - TenantId `String` + +### CreateManagementGroupRequest [Api20180301Preview] + - Child `ICreateManagementGroupChildInfo[]` + - DetailUpdatedBy `String` + - DetailUpdatedTime `DateTime?` **{MinValue, MaxValue}** + - DetailVersion `Single?` + - DisplayName `String` + - Id `String` + - Name `String` + - ParentDisplayName `String` + - ParentId `String` + - ParentName `String` + - Role `String[]` + - TenantId `String` + - Type `String` + +### CreateParentGroupInfo [Api20180301Preview] + - DisplayName `String` + - Id `String` + - Name `String` + +### DebugSetting [Api20180501] + - DetailLevel `String` + +### DenyAssignment [Api20180701Preview] + - DenyAssignmentName `String` + - Description `String` + - DoNotApplyToChildScope `Boolean?` + - ExcludePrincipal `IPrincipal[]` + - Id `String` + - IsSystemProtected `Boolean?` + - Name `String` + - Permission `IDenyAssignmentPermission[]` + - Principal `IPrincipal[]` + - Scope `String` + - Type `String` + +### DenyAssignmentListResult [Api20180701Preview] + - NextLink `String` + - Value `IDenyAssignment[]` + +### DenyAssignmentPermission [Api20180701Preview] + - Action `String[]` + - DataAction `String[]` + - NotAction `String[]` + - NotDataAction `String[]` + +### DenyAssignmentProperties [Api20180701Preview] + - DenyAssignmentName `String` + - Description `String` + - DoNotApplyToChildScope `Boolean?` + - ExcludePrincipal `IPrincipal[]` + - IsSystemProtected `Boolean?` + - Permission `IDenyAssignmentPermission[]` + - Principal `IPrincipal[]` + - Scope `String` + +### Dependency [Api20180501] + - DependsOn `IBasicDependency[]` + - Id `String` + - ResourceName `String` + - ResourceType `String` + +### Deployment [Api20180501] + - DebugSettingDetailLevel `String` + - Location `String` + - Mode `DeploymentMode` **{Complete, Incremental}** + - OnErrorDeploymentName `String` + - OnErrorDeploymentType `OnErrorDeploymentType?` **{LastSuccessful, SpecificDeployment}** + - Parameter `IDeploymentPropertiesParameters` + - ParameterLinkContentVersion `String` + - ParameterLinkUri `String` + - Template `IDeploymentPropertiesTemplate` + - TemplateLinkContentVersion `String` + - TemplateLinkUri `String` + +### DeploymentExportResult [Api20180501] + - Template `IDeploymentExportResultTemplate` + +### DeploymentExtended [Api20180501] + - CorrelationId `String` + - DebugSettingDetailLevel `String` + - Dependency `IDependency[]` + - Id `String` + - Location `String` + - Mode `DeploymentMode?` **{Complete, Incremental}** + - Name `String` + - OnErrorDeploymentName `String` + - OnErrorDeploymentProvisioningState `String` + - OnErrorDeploymentType `OnErrorDeploymentType?` **{LastSuccessful, SpecificDeployment}** + - Output `IDeploymentPropertiesExtendedOutputs` + - Parameter `IDeploymentPropertiesExtendedParameters` + - ParameterLinkContentVersion `String` + - ParameterLinkUri `String` + - Provider `IProvider[]` + - ProvisioningState `String` + - Template `IDeploymentPropertiesExtendedTemplate` + - TemplateLinkContentVersion `String` + - TemplateLinkUri `String` + - Timestamp `DateTime?` **{MinValue, MaxValue}** + - Type `String` + +### DeploymentListResult [Api20180501] + - NextLink `String` + - Value `IDeploymentExtended[]` + +### DeploymentOperation [Api20180501] + - Id `String` + - OperationId `String` + - ProvisioningState `String` + - RequestContent `IHttpMessageContent` + - ResponseContent `IHttpMessageContent` + - ServiceRequestId `String` + - StatusCode `String` + - StatusMessage `IDeploymentOperationPropertiesStatusMessage` + - TargetResourceId `String` + - TargetResourceName `String` + - TargetResourceType `String` + - Timestamp `DateTime?` **{MinValue, MaxValue}** + +### DeploymentOperationProperties [Api20180501] + - ProvisioningState `String` + - RequestContent `IHttpMessageContent` + - ResponseContent `IHttpMessageContent` + - ServiceRequestId `String` + - StatusCode `String` + - StatusMessage `IDeploymentOperationPropertiesStatusMessage` + - TargetResourceId `String` + - TargetResourceName `String` + - TargetResourceType `String` + - Timestamp `DateTime?` **{MinValue, MaxValue}** + +### DeploymentOperationsListResult [Api20180501] + - NextLink `String` + - Value `IDeploymentOperation[]` + +### DeploymentProperties [Api20180501] + - DebugSettingDetailLevel `String` + - Mode `DeploymentMode` **{Complete, Incremental}** + - OnErrorDeploymentName `String` + - OnErrorDeploymentType `OnErrorDeploymentType?` **{LastSuccessful, SpecificDeployment}** + - Parameter `IDeploymentPropertiesParameters` + - ParameterLinkContentVersion `String` + - ParameterLinkUri `String` + - Template `IDeploymentPropertiesTemplate` + - TemplateLinkContentVersion `String` + - TemplateLinkUri `String` + +### DeploymentPropertiesExtended [Api20180501] + - CorrelationId `String` + - DebugSettingDetailLevel `String` + - Dependency `IDependency[]` + - Mode `DeploymentMode?` **{Complete, Incremental}** + - OnErrorDeploymentName `String` + - OnErrorDeploymentProvisioningState `String` + - OnErrorDeploymentType `OnErrorDeploymentType?` **{LastSuccessful, SpecificDeployment}** + - Output `IDeploymentPropertiesExtendedOutputs` + - Parameter `IDeploymentPropertiesExtendedParameters` + - ParameterLinkContentVersion `String` + - ParameterLinkUri `String` + - Provider `IProvider[]` + - ProvisioningState `String` + - Template `IDeploymentPropertiesExtendedTemplate` + - TemplateLinkContentVersion `String` + - TemplateLinkUri `String` + - Timestamp `DateTime?` **{MinValue, MaxValue}** + +### DeploymentValidateResult [Api20180501] + - CorrelationId `String` + - DebugSettingDetailLevel `String` + - Dependency `IDependency[]` + - ErrorCode `String` + - ErrorDetail `IResourceManagementErrorWithDetails[]` + - ErrorMessage `String` + - ErrorTarget `String` + - Mode `DeploymentMode?` **{Complete, Incremental}** + - OnErrorDeploymentName `String` + - OnErrorDeploymentProvisioningState `String` + - OnErrorDeploymentType `OnErrorDeploymentType?` **{LastSuccessful, SpecificDeployment}** + - Output `IDeploymentPropertiesExtendedOutputs` + - Parameter `IDeploymentPropertiesExtendedParameters` + - ParameterLinkContentVersion `String` + - ParameterLinkUri `String` + - Provider `IProvider[]` + - ProvisioningState `String` + - Template `IDeploymentPropertiesExtendedTemplate` + - TemplateLinkContentVersion `String` + - TemplateLinkUri `String` + - Timestamp `DateTime?` **{MinValue, MaxValue}** + +### DescendantInfo [Api20180301Preview] + - DisplayName `String` + - Id `String` + - Name `String` + - ParentId `String` + - Type `String` + +### DescendantInfoProperties [Api20180301Preview] + - DisplayName `String` + - ParentId `String` + +### DescendantListResult [Api20180301Preview] + - NextLink `String` + - Value `IDescendantInfo[]` + +### DescendantParentGroupInfo [Api20180301Preview] + - Id `String` + +### DirectoryObject \ [Api16] + - DeletionTimestamp `DateTime?` **{MinValue, MaxValue}** + - ObjectId `String` + - ObjectType `String` + +### DirectoryObjectListResult [Api16] + - OdataNextLink `String` + - Value `IDirectoryObject[]` + +### Domain \ [Api16] + - AuthenticationType `String` + - IsDefault `Boolean?` + - IsVerified `Boolean?` + - Name `String` + +### DomainListResult [Api16] + - Value `IDomain[]` + +### EntityInfo [Api20180301Preview] + - DisplayName `String` + - Id `String` + - InheritedPermission `String` + - Name `String` + - NumberOfChild `Int32?` + - NumberOfChildGroup `Int32?` + - NumberOfDescendant `Int32?` + - ParentDisplayNameChain `String[]` + - ParentId `String` + - ParentNameChain `String[]` + - Permission `String` + - TenantId `String` + - Type `String` + +### EntityInfoProperties [Api20180301Preview] + - DisplayName `String` + - InheritedPermission `String` + - NumberOfChild `Int32?` + - NumberOfChildGroup `Int32?` + - NumberOfDescendant `Int32?` + - ParentDisplayNameChain `String[]` + - ParentId `String` + - ParentNameChain `String[]` + - Permission `String` + - TenantId `String` + +### EntityListResult [Api20180301Preview] + - Count `Int32?` + - NextLink `String` + - Value `IEntityInfo[]` + +### EntityParentGroupInfo [Api20180301Preview] + - Id `String` + +### ErrorDetails [Api20180301Preview] + - Code `String` + - Detail `String` + - Message `String` + +### ErrorMessage [Api16] + - Message `String` + +### ErrorResponse [Api20160901Preview, Api20180301Preview] + - ErrorCode `String` + - ErrorDetail `String` + - ErrorMessage `String` + - HttpStatus `String` + +### ExportTemplateRequest [Api20180501] + - Option `String` + - Resource `String[]` + +### FeatureOperationsListResult [Api20151201] + - NextLink `String` + - Value `IFeatureResult[]` + +### FeatureProperties [Api20151201] + - State `String` + +### FeatureResult [Api20151201] + - Id `String` + - Name `String` + - State `String` + - Type `String` + +### GenericResource [Api20160901Preview, Api20180501] + - Id `String` + - IdentityPrincipalId `String` + - IdentityTenantId `String` + - IdentityType `ResourceIdentityType?` **{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}** + - IdentityUserAssignedIdentity `IIdentityUserAssignedIdentities ` + - Kind `String` + - Location `String` + - ManagedBy `String` + - Name `String` + - PlanName `String` + - PlanProduct `String` + - PlanPromotionCode `String` + - PlanPublisher `String` + - PlanVersion `String` + - Property `IGenericResourceProperties` + - SkuCapacity `Int32?` + - SkuFamily `String` + - SkuModel `String` + - SkuName `String` + - SkuSize `String` + - SkuTier `String` + - Tag `IResourceTags ` + - Type `String` + +### GetObjectsParameters \ [Api16] + - IncludeDirectoryObjectReference `Boolean?` + - ObjectId `String[]` + - Type `String[]` + +### GraphError [Api16] + - ErrorMessageValueMessage `String` + - OdataErrorCode `String` + +### GroupAddMemberParameters \ [Api16] + - Url `String` + +### GroupCreateParameters \ [Api16] + - DisplayName `String` + - MailEnabled `Boolean` + - MailNickname `String` + - SecurityEnabled `Boolean` + +### GroupGetMemberGroupsParameters \ [Api16] + - SecurityEnabledOnly `Boolean` + +### GroupGetMemberGroupsResult [Api16] + - Value `String[]` + +### GroupListResult [Api16] + - OdataNextLink `String` + - Value `IAdGroup[]` + +### HttpMessage [Api20180501] + - Content `IHttpMessageContent` + +### Identity [Api20160901Preview, Api20180501] + - PrincipalId `String` + - TenantId `String` + - Type `ResourceIdentityType?` **{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}** + - UserAssignedIdentity `IIdentityUserAssignedIdentities ` + +### Identity1 [Api20180501] + - PrincipalId `String` + - TenantId `String` + - Type `ResourceIdentityType?` **{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}** + +### InformationalUrl [Api16] + - Marketing `String` + - Privacy `String` + - Support `String` + - TermsOfService `String` + +### KeyCredential \ [Api16] + - CustomKeyIdentifier `String` + - EndDate `DateTime?` **{MinValue, MaxValue}** + - KeyId `String` + - StartDate `DateTime?` **{MinValue, MaxValue}** + - Type `String` + - Usage `String` + - Value `String` + +### KeyCredentialListResult [Api16] + - Value `IKeyCredential[]` + +### KeyCredentialsUpdateParameters [Api16] + - Value `IKeyCredential[]` + +### Location [Api20160601] + - DisplayName `String` + - Id `String` + - Latitude `String` + - Longitude `String` + - Name `String` + - SubscriptionId `String` + +### LocationListResult [Api20160601] + - Value `ILocation[]` + +### ManagementGroup [Api20180301Preview] + - Child `IManagementGroupChildInfo[]` + - DetailUpdatedBy `String` + - DetailUpdatedTime `DateTime?` **{MinValue, MaxValue}** + - DetailVersion `Single?` + - DisplayName `String` + - Id `String` + - Name `String` + - ParentDisplayName `String` + - ParentId `String` + - ParentName `String` + - Role `String[]` + - TenantId `String` + - Type `String` + +### ManagementGroupChildInfo [Api20180301Preview] + - Child `IManagementGroupChildInfo[]` + - DisplayName `String` + - Id `String` + - Name `String` + - Role `String[]` + - Type `String` + +### ManagementGroupDetails [Api20180301Preview] + - ParentDisplayName `String` + - ParentId `String` + - ParentName `String` + - UpdatedBy `String` + - UpdatedTime `DateTime?` **{MinValue, MaxValue}** + - Version `Single?` + +### ManagementGroupInfo [Api20180301Preview] + - DisplayName `String` + - Id `String` + - Name `String` + - TenantId `String` + - Type `String` + +### ManagementGroupInfoProperties [Api20180301Preview] + - DisplayName `String` + - TenantId `String` + +### ManagementGroupListResult [Api20180301Preview] + - NextLink `String` + - Value `IManagementGroupInfo[]` + +### ManagementGroupProperties [Api20180301Preview] + - Child `IManagementGroupChildInfo[]` + - DetailUpdatedBy `String` + - DetailUpdatedTime `DateTime?` **{MinValue, MaxValue}** + - DetailVersion `Single?` + - DisplayName `String` + - ParentDisplayName `String` + - ParentId `String` + - ParentName `String` + - Role `String[]` + - TenantId `String` + +### ManagementLockListResult [Api20160901] + - NextLink `String` + - Value `IManagementLockObject[]` + +### ManagementLockObject [Api20160901] + - Id `String` + - Level `LockLevel` **{CanNotDelete, NotSpecified, ReadOnly}** + - Name `String` + - Note `String` + - Owner `IManagementLockOwner[]` + - Type `String` + +### ManagementLockOwner [Api20160901] + - ApplicationId `String` + +### ManagementLockProperties [Api20160901] + - Level `LockLevel` **{CanNotDelete, NotSpecified, ReadOnly}** + - Note `String` + - Owner `IManagementLockOwner[]` + +### OAuth2Permission [Api16] + - AdminConsentDescription `String` + - AdminConsentDisplayName `String` + - Id `String` + - IsEnabled `Boolean?` + - Type `String` + - UserConsentDescription `String` + - UserConsentDisplayName `String` + - Value `String` + +### OAuth2PermissionGrant [Api16] + - ClientId `String` + - ConsentType `ConsentType?` **{AllPrincipals, Principal}** + - ExpiryTime `String` + - ObjectId `String` + - OdataType `String` + - PrincipalId `String` + - ResourceId `String` + - Scope `String` + - StartTime `String` + +### OAuth2PermissionGrantListResult [Api16] + - OdataNextLink `String` + - Value `IOAuth2PermissionGrant[]` + +### OdataError [Api16] + - Code `String` + - ErrorMessageValueMessage `String` + +### OnErrorDeployment [Api20180501] + - DeploymentName `String` + - Type `OnErrorDeploymentType?` **{LastSuccessful, SpecificDeployment}** + +### OnErrorDeploymentExtended [Api20180501] + - DeploymentName `String` + - ProvisioningState `String` + - Type `OnErrorDeploymentType?` **{LastSuccessful, SpecificDeployment}** + +### Operation [Api20151201, Api20180301Preview] + - DisplayDescription `String` + - DisplayOperation `String` + - DisplayProvider `String` + - DisplayResource `String` + - Name `String` + +### OperationDisplay [Api20151201] + - Operation `String` + - Provider `String` + - Resource `String` + +### OperationDisplayProperties [Api20180301Preview] + - Description `String` + - Operation `String` + - Provider `String` + - Resource `String` + +### OperationListResult [Api20151201, Api20180301Preview] + - NextLink `String` + - Value `IOperation[]` + +### OperationResults [Api20180301Preview] + - Id `String` + - Name `String` + - ProvisioningState `String` + - Type `String` + +### OperationResultsProperties [Api20180301Preview] + - ProvisioningState `String` + +### OptionalClaim [Api16] + - AdditionalProperty `IOptionalClaimAdditionalProperties` + - Essential `Boolean?` + - Name `String` + - Source `String` + +### OptionalClaims [Api16] + - AccessToken `IOptionalClaim[]` + - IdToken `IOptionalClaim[]` + - SamlToken `IOptionalClaim[]` + +### ParametersLink [Api20180501] + - ContentVersion `String` + - Uri `String` + +### ParentGroupInfo [Api20180301Preview] + - DisplayName `String` + - Id `String` + - Name `String` + +### PasswordCredential \ [Api16] + - CustomKeyIdentifier `Byte[]` + - EndDate `DateTime?` **{MinValue, MaxValue}** + - KeyId `String` + - StartDate `DateTime?` **{MinValue, MaxValue}** + - Value `String` + +### PasswordCredentialListResult [Api16] + - Value `IPasswordCredential[]` + +### PasswordCredentialsUpdateParameters [Api16] + - Value `IPasswordCredential[]` + +### PasswordProfile \ [Api16] + - ForceChangePasswordNextLogin `Boolean?` + - Password `String` + +### PatchManagementGroupRequest [Api20180301Preview] + - DisplayName `String` + - ParentId `String` + +### Permission [Api20150701, Api201801Preview] + - Action `String[]` + - DataAction `String[]` + - NotAction `String[]` + - NotDataAction `String[]` + +### PermissionGetResult [Api20150701, Api201801Preview] + - NextLink `String` + - Value `IPermission[]` + +### Plan [Api20160901Preview, Api20180501] + - Name `String` + - Product `String` + - PromotionCode `String` + - Publisher `String` + - Version `String` + +### PlanPatchable [Api20160901Preview] + - Name `String` + - Product `String` + - PromotionCode `String` + - Publisher `String` + - Version `String` + +### PolicyAssignment [Api20151101, Api20161201, Api20180501] + - Description `String` + - DisplayName `String` + - Id `String` + - IdentityPrincipalId `String` + - IdentityTenantId `String` + - IdentityType `ResourceIdentityType?` **{None, SystemAssigned, SystemAssignedUserAssigned, UserAssigned}** + - Location `String` + - Metadata `IPolicyAssignmentPropertiesMetadata` + - Name `String` + - NotScope `String[]` + - Parameter `IPolicyAssignmentPropertiesParameters` + - PolicyDefinitionId `String` + - Scope `String` + - SkuName `String` + - SkuTier `String` + - Type `String` + +### PolicyAssignmentListResult [Api20151101, Api20161201, Api20180501] + - NextLink `String` + - Value `IPolicyAssignment[]` + +### PolicyAssignmentProperties [Api20151101, Api20161201, Api20180501] + - Description `String` + - DisplayName `String` + - Metadata `IPolicyAssignmentPropertiesMetadata` + - NotScope `String[]` + - Parameter `IPolicyAssignmentPropertiesParameters` + - PolicyDefinitionId `String` + - Scope `String` + +### PolicyDefinition [Api20161201, Api20180501] + - Description `String` + - DisplayName `String` + - Id `String` + - Metadata `IPolicyDefinitionPropertiesMetadata` + - Mode `PolicyMode?` **{All, Indexed, NotSpecified}** + - Name `String` + - Parameter `IPolicyDefinitionPropertiesParameters` + - PolicyRule `IPolicyDefinitionPropertiesPolicyRule` + - PolicyType `PolicyType?` **{BuiltIn, Custom, NotSpecified}** + - Property `IPolicyDefinitionProperties` + - Type `String` + +### PolicyDefinitionListResult [Api20161201, Api20180501] + - NextLink `String` + - Value `IPolicyDefinition[]` + +### PolicyDefinitionProperties [Api20161201] + - Description `String` + - DisplayName `String` + - Metadata `IPolicyDefinitionPropertiesMetadata` + - Mode `PolicyMode?` **{All, Indexed, NotSpecified}** + - Parameter `IPolicyDefinitionPropertiesParameters` + - PolicyRule `IPolicyDefinitionPropertiesPolicyRule` + - PolicyType `PolicyType?` **{BuiltIn, Custom, NotSpecified}** + +### PolicyDefinitionReference [Api20180501] + - Parameter `IPolicyDefinitionReferenceParameters` + - PolicyDefinitionId `String` + +### PolicySetDefinition [Api20180501] + - Description `String` + - DisplayName `String` + - Id `String` + - Metadata `IPolicySetDefinitionPropertiesMetadata` + - Name `String` + - Parameter `IPolicySetDefinitionPropertiesParameters` + - PolicyDefinition `IPolicyDefinitionReference[]` + - PolicyType `PolicyType?` **{BuiltIn, Custom, NotSpecified}** + - Type `String` + +### PolicySetDefinitionListResult [Api20180501] + - NextLink `String` + - Value `IPolicySetDefinition[]` + +### PolicySetDefinitionProperties [Api20180501] + - Description `String` + - DisplayName `String` + - Metadata `IPolicySetDefinitionPropertiesMetadata` + - Parameter `IPolicySetDefinitionPropertiesParameters` + - PolicyDefinition `IPolicyDefinitionReference[]` + - PolicyType `PolicyType?` **{BuiltIn, Custom, NotSpecified}** + +### PolicySku [Api20180501] + - Name `String` + - Tier `String` + +### PreAuthorizedApplication [Api16] + - AppId `String` + - Extension `IPreAuthorizedApplicationExtension[]` + - Permission `IPreAuthorizedApplicationPermission[]` + +### PreAuthorizedApplicationExtension [Api16] + - Condition `String[]` + +### PreAuthorizedApplicationPermission [Api16] + - AccessGrant `String[]` + - DirectAccessGrant `Boolean?` + +### Principal [Api20180701Preview] + - Id `String` + - Type `String` + +### Provider [Api20180501] + - Id `String` + - Namespace `String` + - RegistrationState `String` + - ResourceType `IProviderResourceType[]` + +### ProviderListResult [Api20180501] + - NextLink `String` + - Value `IProvider[]` + +### ProviderOperation [Api20150701, Api201801Preview] + - Description `String` + - DisplayName `String` + - IsDataAction `Boolean?` + - Name `String` + - Origin `String` + - Property `IProviderOperationProperties` + +### ProviderOperationsMetadata [Api20150701, Api201801Preview] + - DisplayName `String` + - Id `String` + - Name `String` + - Operation `IProviderOperation[]` + - ResourceType `IResourceType[]` + - Type `String` + +### ProviderOperationsMetadataListResult [Api20150701, Api201801Preview] + - NextLink `String` + - Value `IProviderOperationsMetadata[]` + +### ProviderResourceType [Api20180501] + - Alias `IAliasType[]` + - ApiVersion `String[]` + - Location `String[]` + - Property `IProviderResourceTypeProperties ` + - ResourceType `String` + +### RequiredResourceAccess \ [Api16] + - ResourceAccess `IResourceAccess[]` + - ResourceAppId `String` + +### Resource [Api20160901Preview] + - Id `String` + - Location `String` + - Name `String` + - Tag `IResourceTags ` + - Type `String` + +### ResourceAccess \ [Api16] + - Id `String` + - Type `String` + +### ResourceGroup [Api20180501] + - Id `String` + - Location `String` + - ManagedBy `String` + - Name `String` + - ProvisioningState `String` + - Tag `IResourceGroupTags ` + - Type `String` + +### ResourceGroupExportResult [Api20180501] + - ErrorCode `String` + - ErrorDetail `IResourceManagementErrorWithDetails[]` + - ErrorMessage `String` + - ErrorTarget `String` + - Template `IResourceGroupExportResultTemplate` + +### ResourceGroupListResult [Api20180501] + - NextLink `String` + - Value `IResourceGroup[]` + +### ResourceGroupPatchable [Api20180501] + - ManagedBy `String` + - Name `String` + - ProvisioningState `String` + - Tag `IResourceGroupPatchableTags ` + +### ResourceGroupProperties [Api20180501] + - ProvisioningState `String` + +### ResourceLink [Api20160901] + - Id `String` + - Name `String` + - Note `String` + - SourceId `String` + - TargetId `String` + - Type `IResourceLinkType` + +### ResourceLinkProperties [Api20160901] + - Note `String` + - SourceId `String` + - TargetId `String` + +### ResourceLinkResult [Api20160901] + - NextLink `String` + - Value `IResourceLink[]` + +### ResourceListResult [Api20180501] + - NextLink `String` + - Value `IGenericResource[]` + +### ResourceManagementErrorWithDetails [Api20180501] + - Code `String` + - Detail `IResourceManagementErrorWithDetails[]` + - Message `String` + - Target `String` + +### ResourceProviderOperationDefinition [Api20151101] + - DisplayDescription `String` + - DisplayOperation `String` + - DisplayProvider `String` + - DisplayPublisher `String` + - DisplayResource `String` + - Name `String` + +### ResourceProviderOperationDetailListResult [Api20151101] + - NextLink `String` + - Value `IResourceProviderOperationDefinition[]` + +### ResourceProviderOperationDisplayProperties [Api20151101] + - Description `String` + - Operation `String` + - Provider `String` + - Publisher `String` + - Resource `String` + +### ResourcesIdentity [Models] + - ApplianceDefinitionId `String` + - ApplianceDefinitionName `String` + - ApplianceId `String` + - ApplianceName `String` + - ApplicationDefinitionId `String` + - ApplicationDefinitionName `String` + - ApplicationId `String` + - ApplicationId1 `String` + - ApplicationName `String` + - ApplicationObjectId `String` + - DenyAssignmentId `String` + - DeploymentName `String` + - DomainName `String` + - FeatureName `String` + - GroupId `String` + - GroupObjectId `String` + - Id `String` + - LinkId `String` + - LockName `String` + - ManagementGroupId `String` + - MemberObjectId `String` + - ObjectId `String` + - OperationId `String` + - OwnerObjectId `String` + - ParentResourcePath `String` + - PolicyAssignmentId `String` + - PolicyAssignmentName `String` + - PolicyDefinitionName `String` + - PolicySetDefinitionName `String` + - ResourceGroupName `String` + - ResourceId `String` + - ResourceName `String` + - ResourceProviderNamespace `String` + - ResourceType `String` + - RoleAssignmentId `String` + - RoleAssignmentName `String` + - RoleDefinitionId `String` + - RoleId `String` + - Scope `String` + - SourceResourceGroupName `String` + - SubscriptionId `String` + - TagName `String` + - TagValue `String` + - TenantId `String` + - UpnOrObjectId `String` + +### ResourcesMoveInfo [Api20180501] + - Resource `String[]` + - TargetResourceGroup `String` + +### ResourceType [Api20150701, Api201801Preview] + - DisplayName `String` + - Name `String` + - Operation `IProviderOperation[]` + +### RoleAssignment [Api20150701, Api20171001Preview, Api20180901Preview] + - CanDelegate `Boolean?` + - Id `String` + - Name `String` + - PrincipalId `String` + - PrincipalType `PrincipalType?` **{Application, DirectoryObjectOrGroup, DirectoryRoleTemplate, Everyone, ForeignGroup, Group, Msi, ServicePrincipal, Unknown, User}** + - RoleDefinitionId `String` + - Scope `String` + - Type `String` + +### RoleAssignmentCreateParameters [Api20150701, Api20171001Preview, Api20180901Preview] + - CanDelegate `Boolean?` + - PrincipalId `String` + - PrincipalType `PrincipalType?` **{Application, DirectoryObjectOrGroup, DirectoryRoleTemplate, Everyone, ForeignGroup, Group, Msi, ServicePrincipal, Unknown, User}** + - RoleDefinitionId `String` + +### RoleAssignmentListResult [Api20150701, Api20180901Preview] + - NextLink `String` + - Value `IRoleAssignment[]` + +### RoleAssignmentProperties [Api20150701, Api20171001Preview, Api20180901Preview] + - CanDelegate `Boolean?` + - PrincipalId `String` + - PrincipalType `PrincipalType?` **{Application, DirectoryObjectOrGroup, DirectoryRoleTemplate, Everyone, ForeignGroup, Group, Msi, ServicePrincipal, Unknown, User}** + - RoleDefinitionId `String` + +### RoleAssignmentPropertiesWithScope [Api20150701, Api20171001Preview, Api20180901Preview] + - CanDelegate `Boolean?` + - PrincipalId `String` + - PrincipalType `PrincipalType?` **{Application, DirectoryObjectOrGroup, DirectoryRoleTemplate, Everyone, ForeignGroup, Group, Msi, ServicePrincipal, Unknown, User}** + - RoleDefinitionId `String` + - Scope `String` + +### RoleDefinition [Api20150701, Api201801Preview] + - AssignableScope `String[]` + - Description `String` + - Id `String` + - Name `String` + - Permission `IPermission[]` + - RoleName `String` + - RoleType `String` + - Type `String` + +### RoleDefinitionListResult [Api20150701, Api201801Preview] + - NextLink `String` + - Value `IRoleDefinition[]` + +### RoleDefinitionProperties [Api20150701, Api201801Preview] + - AssignableScope `String[]` + - Description `String` + - Permission `IPermission[]` + - RoleName `String` + - RoleType `String` + +### ServicePrincipal \ [Api16] + - AccountEnabled `Boolean?` + - AlternativeName `String[]` + - AppDisplayName `String` + - AppId `String` + - AppOwnerTenantId `String` + - AppRole `IAppRole[]` + - AppRoleAssignmentRequired `Boolean?` + - DeletionTimestamp `DateTime?` **{MinValue, MaxValue}** + - DisplayName `String` + - ErrorUrl `String` + - Homepage `String` + - KeyCredentials `IKeyCredential[]` + - LogoutUrl `String` + - Name `String[]` + - Oauth2Permission `IOAuth2Permission[]` + - ObjectId `String` + - ObjectType `String` + - PasswordCredentials `IPasswordCredential[]` + - PreferredTokenSigningKeyThumbprint `String` + - PublisherName `String` + - ReplyUrl `String[]` + - SamlMetadataUrl `String` + - Tag `String[]` + - Type `String` + +### ServicePrincipalBase [Api16] + - AccountEnabled `Boolean?` + - AppRoleAssignmentRequired `Boolean?` + - KeyCredentials `IKeyCredential[]` + - PasswordCredentials `IPasswordCredential[]` + - ServicePrincipalType `String` + - Tag `String[]` + +### ServicePrincipalCreateParameters [Api16] + - AccountEnabled `Boolean?` + - AppId `String` + - AppRoleAssignmentRequired `Boolean?` + - KeyCredentials `IKeyCredential[]` + - PasswordCredentials `IPasswordCredential[]` + - ServicePrincipalType `String` + - Tag `String[]` + +### ServicePrincipalListResult [Api16] + - OdataNextLink `String` + - Value `IServicePrincipal[]` + +### ServicePrincipalObjectResult [Api16] + - OdataMetadata `String` + - Value `String` + +### ServicePrincipalUpdateParameters [Api16] + - AccountEnabled `Boolean?` + - AppRoleAssignmentRequired `Boolean?` + - KeyCredentials `IKeyCredential[]` + - PasswordCredentials `IPasswordCredential[]` + - ServicePrincipalType `String` + - Tag `String[]` + +### SignInName \ [Api16] + - Type `String` + - Value `String` + +### Sku [Api20160901Preview, Api20180501] + - Capacity `Int32?` + - Family `String` + - Model `String` + - Name `String` + - Size `String` + - Tier `String` + +### Subscription [Api20160601] + - AuthorizationSource `String` + - DisplayName `String` + - Id `String` + - PolicyLocationPlacementId `String` + - PolicyQuotaId `String` + - PolicySpendingLimit `SpendingLimit?` **{CurrentPeriodOff, Off, On}** + - State `SubscriptionState?` **{Deleted, Disabled, Enabled, PastDue, Warned}** + - SubscriptionId `String` + +### SubscriptionPolicies [Api20160601] + - LocationPlacementId `String` + - QuotaId `String` + - SpendingLimit `SpendingLimit?` **{CurrentPeriodOff, Off, On}** + +### TagCount [Api20180501] + - Type `String` + - Value `Int32?` + +### TagDetails [Api20180501] + - CountType `String` + - CountValue `Int32?` + - Id `String` + - TagName `String` + - Value `ITagValue[]` + +### TagsListResult [Api20180501] + - NextLink `String` + - Value `ITagDetails[]` + +### TagValue [Api20180501] + - CountType `String` + - CountValue `Int32?` + - Id `String` + - TagValue1 `String` + +### TargetResource [Api20180501] + - Id `String` + - ResourceName `String` + - ResourceType `String` + +### TemplateLink [Api20180501] + - ContentVersion `String` + - Uri `String` + +### TenantBackfillStatusResult [Api20180301Preview] + - Status `Status?` **{Cancelled, Completed, Failed, NotStarted, NotStartedButGroupsExist, Started}** + - TenantId `String` + +### TenantIdDescription [Api20160601] + - Id `String` + - TenantId `String` + +### TenantListResult [Api20160601] + - NextLink `String` + - Value `ITenantIdDescription[]` + +### User \ [Api16] + - AccountEnabled `Boolean?` + - DeletionTimestamp `DateTime?` **{MinValue, MaxValue}** + - DisplayName `String` + - GivenName `String` + - ImmutableId `String` + - Mail `String` + - MailNickname `String` + - ObjectId `String` + - ObjectType `String` + - PrincipalName `String` + - SignInName `ISignInName[]` + - Surname `String` + - Type `UserType?` **{Guest, Member}** + - UsageLocation `String` + +### UserBase \ [Api16] + - GivenName `String` + - ImmutableId `String` + - Surname `String` + - UsageLocation `String` + - UserType `UserType?` **{Guest, Member}** + +### UserCreateParameters \ [Api16] + - AccountEnabled `Boolean` + - DisplayName `String` + - GivenName `String` + - ImmutableId `String` + - Mail `String` + - MailNickname `String` + - PasswordProfile `IPasswordProfile ` + - Surname `String` + - UsageLocation `String` + - UserPrincipalName `String` + - UserType `UserType?` **{Guest, Member}** + +### UserGetMemberGroupsParameters \ [Api16] + - SecurityEnabledOnly `Boolean` + +### UserGetMemberGroupsResult [Api16] + - Value `String[]` + +### UserListResult [Api16] + - OdataNextLink `String` + - Value `IUser[]` + +### UserUpdateParameters \ [Api16] + - AccountEnabled `Boolean?` + - DisplayName `String` + - GivenName `String` + - ImmutableId `String` + - MailNickname `String` + - PasswordProfile `IPasswordProfile ` + - Surname `String` + - UsageLocation `String` + - UserPrincipalName `String` + - UserType `UserType?` **{Guest, Member}** + diff --git a/src/DnsResolver/DnsResolver.Autorest/tools/Resources/resources/README.md b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/tools/Resources/test/README.md b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/test/README.md new file mode 100644 index 000000000000..7c752b4c8c43 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/tools/Resources/test/README.md @@ -0,0 +1,17 @@ +# Test +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: no + +## Details +We allow three testing modes: *live*, *record*, and *playback*. These can be selected using the `-Live`, `-Record`, and `-Playback` switches respectively on the `test-module.ps1` script. This script will run through any `.Tests.ps1` scripts in the `test` folder. If you choose the *record* mode, it will create a `.Recording.json` file of the REST calls between the client and server. Then, when you choose *playback* mode, it will use the `.Recording.json` file to mock the communication between server and client. The *live* mode runs the same as the *record* mode; however, it doesn't create the `.Recording.json` file. + +## Purpose +Custom cmdlets generally encompass additional functionality not described in the REST specification, or combines functionality generated from the REST spec. To validate this functionality continues to operate as intended, creating tests that can be ran and re-ran against custom cmdlets is part of the framework. + +## Usage +To execute tests, run the `test-module.ps1`. To write tests, [this example](https://github.com/pester/Pester/blob/8b9cf4248315e44f1ac6673be149f7e0d7f10466/Examples/Planets/Get-Planet.Tests.ps1#L1) from the Pester repository is very useful for getting started. \ No newline at end of file